mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Derek Basehore <dbasehore@chromium.org>
Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>,
	Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>,
	x86@kernel.org, platform-driver-x86@vger.kernel.org,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	Len Brown <len.brown@intel.com>,
	linux-pm@vger.kernel.org, Derek Basehore <dbasehore@chromium.org>
Subject: Re: [PATCH v5 5/5] intel_idle: Add S0ix validation
Date: Sun, 9 Jul 2017 15:13:35 +0800	[thread overview]
Message-ID: <201707091521.d9tvoGhb%fengguang.wu@intel.com> (raw)
In-Reply-To: <20170708000303.21863-5-dbasehore@chromium.org>

[-- Attachment #1: Type: text/plain, Size: 7015 bytes --]

Hi Derek,

[auto build test ERROR on pm/linux-next]
[also build test ERROR on next-20170707]
[cannot apply to v4.12]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Derek-Basehore/x86-stub-out-pmc-function/20170709-134714
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
config: x86_64-randconfig-x015-201728 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/idle/intel_idle.c: In function 'intel_idle_freeze_and_check':
>> drivers/idle/intel_idle.c:1022:9: error: implicit declaration of function 'tick_set_freeze_event' [-Werror=implicit-function-declaration]
      ret = tick_set_freeze_event(cpu, ktime_set(slp_s0_seconds, 0));
            ^~~~~~~~~~~~~~~~~~~~~
>> drivers/idle/intel_idle.c:1042:27: error: implicit declaration of function 'tick_clear_freeze_event' [-Werror=implicit-function-declaration]
     if (check_on_this_cpu && tick_clear_freeze_event(cpu))
                              ^~~~~~~~~~~~~~~~~~~~~~~
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:set_bit
   Cyclomatic Complexity 2 arch/x86/include/asm/bitops.h:clear_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:constant_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/bitops.h:variable_test_bit
   Cyclomatic Complexity 1 arch/x86/include/asm/current.h:get_current
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:__cpuid
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_read_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:paravirt_write_msr
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:wrmsrl
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_save_flags
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_restore
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_disable
   Cyclomatic Complexity 1 arch/x86/include/asm/paravirt.h:arch_local_irq_save
   Cyclomatic Complexity 1 arch/x86/include/asm/special_insns.h:clflush
   Cyclomatic Complexity 1 include/linux/math64.h:div64_u64
   Cyclomatic Complexity 1 arch/x86/include/asm/processor.h:cpuid
   Cyclomatic Complexity 3 arch/x86/include/asm/cpufeature.h:_static_cpu_has
   Cyclomatic Complexity 1 include/linux/thread_info.h:set_ti_thread_flag
   Cyclomatic Complexity 1 include/linux/thread_info.h:clear_ti_thread_flag
   Cyclomatic Complexity 2 include/linux/thread_info.h:test_ti_thread_flag
   Cyclomatic Complexity 1 arch/x86/include/asm/preempt.h:set_preempt_need_resched
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_add
   Cyclomatic Complexity 5 arch/x86/include/asm/preempt.h:__preempt_count_sub
   Cyclomatic Complexity 1 include/linux/spinlock.h:spinlock_check
   Cyclomatic Complexity 1 include/linux/spinlock.h:spin_unlock_irqrestore
   Cyclomatic Complexity 2 include/linux/ktime.h:ktime_set
   Cyclomatic Complexity 1 include/linux/sched.h:need_resched
   Cyclomatic Complexity 1 include/linux/tick.h:tick_broadcast_enable
   Cyclomatic Complexity 1 include/linux/tick.h:tick_broadcast_disable
   Cyclomatic Complexity 1 include/linux/tick.h:tick_broadcast_enter
   Cyclomatic Complexity 1 include/linux/tick.h:tick_broadcast_exit
   Cyclomatic Complexity 1 arch/x86/include/asm/mmu.h:leave_mm
   Cyclomatic Complexity 1 include/linux/cpuhotplug.h:cpuhp_setup_state
   Cyclomatic Complexity 1 include/linux/suspend.h:register_pm_notifier
   Cyclomatic Complexity 1 include/linux/suspend.h:unregister_pm_notifier
   Cyclomatic Complexity 1 include/linux/sched/idle.h:__current_set_polling
   Cyclomatic Complexity 1 include/linux/sched/idle.h:current_set_polling_and_test
   Cyclomatic Complexity 1 include/linux/sched/idle.h:__current_clr_polling
   Cyclomatic Complexity 2 include/linux/sched/idle.h:current_clr_polling
   Cyclomatic Complexity 1 arch/x86/include/asm/mwait.h:__monitor
   Cyclomatic Complexity 1 arch/x86/include/asm/mwait.h:__mwait
   Cyclomatic Complexity 5 arch/x86/include/asm/mwait.h:mwait_idle_with_hints
   Cyclomatic Complexity 4 drivers/idle/intel_idle.c:intel_idle
   Cyclomatic Complexity 1 drivers/idle/intel_idle.c:intel_idle_freeze
   Cyclomatic Complexity 2 drivers/idle/intel_idle.c:slp_s0_check_prepare
   Cyclomatic Complexity 2 drivers/idle/intel_idle.c:__setup_broadcast_timer
   Cyclomatic Complexity 1 drivers/idle/intel_idle.c:auto_demotion_disable
   Cyclomatic Complexity 1 drivers/idle/intel_idle.c:c1e_promotion_disable
   Cyclomatic Complexity 5 drivers/idle/intel_idle.c:ivt_idle_state_table_update
   Cyclomatic Complexity 2 drivers/idle/intel_idle.c:irtl_2_usec
   Cyclomatic Complexity 6 drivers/idle/intel_idle.c:bxt_idle_state_table_update
   Cyclomatic Complexity 6 drivers/idle/intel_idle.c:sklh_idle_state_table_update
   Cyclomatic Complexity 4 drivers/idle/intel_idle.c:intel_idle_state_table_update
   Cyclomatic Complexity 4 drivers/idle/intel_idle.c:intel_idle_cpu_init
   Cyclomatic Complexity 3 drivers/idle/intel_idle.c:intel_idle_cpu_online
   Cyclomatic Complexity 7 drivers/idle/intel_idle.c:intel_idle_probe
   Cyclomatic Complexity 3 drivers/idle/intel_idle.c:check_slp_s0
   Cyclomatic Complexity 10 drivers/idle/intel_idle.c:intel_idle_freeze_and_check
   Cyclomatic Complexity 10 drivers/idle/intel_idle.c:intel_idle_cpuidle_driver_init
   Cyclomatic Complexity 2 drivers/idle/intel_idle.c:intel_idle_cpuidle_devices_uninit
   Cyclomatic Complexity 9 drivers/idle/intel_idle.c:intel_idle_init
   cc1: some warnings being treated as errors

vim +/tick_set_freeze_event +1022 drivers/idle/intel_idle.c

  1016		spin_lock_irqsave(&slp_s0_check_lock, flags);
  1017		slp_s0_num_cpus++;
  1018		if (slp_s0_seconds &&
  1019		    slp_s0_num_cpus == num_online_cpus() &&
  1020		    !slp_s0_check_inprogress &&
  1021		    !intel_pmc_slp_s0_counter_read(&slp_s0_saved_count)) {
> 1022			ret = tick_set_freeze_event(cpu, ktime_set(slp_s0_seconds, 0));
  1023			if (ret < 0) {
  1024				spin_unlock_irqrestore(&slp_s0_check_lock, flags);
  1025				goto out;
  1026			}
  1027	
  1028			/*
  1029			 * Make sure check_slp_s0 isn't scheduled on another CPU if it
  1030			 * were to leave freeze and enter it again before this CPU
  1031			 * leaves freeze.
  1032			 */
  1033			slp_s0_check_inprogress = true;
  1034			check_on_this_cpu = true;
  1035		}
  1036		spin_unlock_irqrestore(&slp_s0_check_lock, flags);
  1037	
  1038		ret = intel_idle_freeze(dev, drv, index);
  1039		if (ret < 0)
  1040			goto out;
  1041	
> 1042		if (check_on_this_cpu && tick_clear_freeze_event(cpu))
  1043			ret = check_slp_s0(slp_s0_saved_count);
  1044	
  1045	out:

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24264 bytes --]

  reply	other threads:[~2017-07-09  7:14 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-08  0:02 [PATCH v5 1/5] x86: stub out pmc function Derek Basehore
2017-07-08  0:03 ` [PATCH v5 2/5] tick: Add freeze timer events Derek Basehore
2017-07-08 16:05   ` Andy Shevchenko
2017-07-10 21:11     ` dbasehore .
2017-07-10 12:53   ` Rafael J. Wysocki
2017-07-12 21:25   ` Thomas Gleixner
2017-07-13  1:18     ` dbasehore .
2017-07-13  4:54       ` Thomas Gleixner
2017-07-13  7:32   ` Peter Zijlstra
2017-07-13 15:09     ` Rafael J. Wysocki
2017-07-13 22:58       ` dbasehore .
2017-07-15 12:39         ` Rafael J. Wysocki
2017-07-18  0:30           ` dbasehore .
2017-07-18  1:33             ` Rafael J. Wysocki
2017-07-18  3:52               ` dbasehore .
2017-07-18  6:40                 ` Thomas Gleixner
2017-07-18 20:09                   ` dbasehore .
2017-07-18 21:53                     ` Thomas Gleixner
2017-07-18 22:03                       ` dbasehore .
2017-07-18 22:22                         ` Thomas Gleixner
2017-07-18 22:37                           ` dbasehore .
2017-07-18 22:39                             ` Thomas Gleixner
2017-07-08  0:03 ` [PATCH v5 3/5] x86, apic: Add freeze event support Derek Basehore
2017-07-13  5:13   ` Thomas Gleixner
2017-07-08  0:03 ` [PATCH v5 4/5] freeze: Add error reporting Derek Basehore
2017-07-08  0:03 ` [PATCH v5 5/5] intel_idle: Add S0ix validation Derek Basehore
2017-07-09  7:13   ` kbuild test robot [this message]
2017-07-10 13:33   ` Rafael J. Wysocki
2017-07-10 21:57     ` dbasehore .
2017-07-10 22:09       ` Rafael J. Wysocki
2017-07-10 22:24         ` dbasehore .
2017-07-11 14:57           ` Rafael J. Wysocki
2017-07-11 15:43             ` Len Brown
2017-07-12 22:16   ` Thomas Gleixner
2017-07-12 23:14     ` dbasehore .
2017-07-13  5:11       ` Thomas Gleixner
2017-07-13 22:49         ` dbasehore .
2017-07-13  1:06     ` dbasehore .
2017-07-08 16:00 ` [PATCH v5 1/5] x86: stub out pmc function Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201707091521.d9tvoGhb%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=dbasehore@chromium.org \
    --cc=kbuild-all@01.org \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=rajneesh.bhardwaj@intel.com \
    --cc=rjw@rjwysocki.net \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®