All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Borislav Petkov <bp@alien8.de>
Cc: kbuild-all@01.org, "Huang Rui" <ray.huang@amd.com>,
	"Borislav Petkov" <bp@suse.de>,
	"Peter Zijlstra" <peterz@infradead.org>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Andy Lutomirski" <luto@amacapital.net>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Robert Richter" <rric@kernel.org>,
	"Jacob Shin" <jacob.w.shin@gmail.com>,
	"John Stultz" <john.stultz@linaro.org>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>,
	linux-kernel@vger.kernel.org, spg_linux_kernel@amd.com,
	x86@kernel.org, "Guenter Roeck" <linux@roeck-us.net>,
	"Andreas Herrmann" <herrmann.der.user@googlemail.com>,
	"Suravee Suthikulpanit" <suravee.suthikulpanit@amd.com>,
	"Aravind Gopalakrishnan" <Aravind.Gopalakrishnan@amd.com>,
	"Fengguang Wu" <fengguang.wu@intel.com>,
	"Aaron Lu" <aaron.lu@intel.com>
Subject: Re: [PATCH] perf/x86/amd/power: Add AMD accumulated power reporting
Date: Thu, 28 Jan 2016 18:04:36 +0800	[thread overview]
Message-ID: <201601281835.XM5YrSe4%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160128090314.GB14274@pd.tnic>

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

Hi Borislav,

[auto build test WARNING on tip/x86/core]
[also build test WARNING on v4.5-rc1 next-20160128]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Borislav-Petkov/perf-x86-amd-power-Add-AMD-accumulated-power-reporting/20160128-170527
config: x86_64-randconfig-i0-01270829 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   In file included from include/uapi/linux/stddef.h:1:0,
                    from include/linux/stddef.h:4,
                    from include/uapi/linux/posix_types.h:4,
                    from include/uapi/linux/types.h:13,
                    from include/linux/types.h:5,
                    from include/linux/list.h:4,
                    from include/linux/module.h:9,
                    from arch/x86/kernel/cpu/perf_event_amd_power.c:13:
   arch/x86/kernel/cpu/perf_event_amd_power.c: In function 'amd_power_pmu_init':
   arch/x86/kernel/cpu/perf_event_amd_power.c:432:20: error: 'X86_FEATURE_ACC_POWER' undeclared (first use in this function)
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
                       ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> arch/x86/kernel/cpu/perf_event_amd_power.c:432:2: note: in expansion of macro 'if'
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
     ^
   arch/x86/include/asm/cpufeature.h:338:27: note: in expansion of macro 'cpu_has'
    #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
                              ^
   arch/x86/kernel/cpu/perf_event_amd_power.c:432:7: note: in expansion of macro 'boot_cpu_has'
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
          ^
   arch/x86/kernel/cpu/perf_event_amd_power.c:432:20: note: each undeclared identifier is reported only once for each function it appears in
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
                       ^
   include/linux/compiler.h:147:28: note: in definition of macro '__trace_if'
     if (__builtin_constant_p((cond)) ? !!(cond) :   \
                               ^
>> arch/x86/kernel/cpu/perf_event_amd_power.c:432:2: note: in expansion of macro 'if'
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
     ^
   arch/x86/include/asm/cpufeature.h:338:27: note: in expansion of macro 'cpu_has'
    #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit)
                              ^
   arch/x86/kernel/cpu/perf_event_amd_power.c:432:7: note: in expansion of macro 'boot_cpu_has'
     if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
          ^
   arch/x86/kernel/cpu/perf_event_amd_power.c:435:17: error: implicit declaration of function 'amd_get_cores_per_cu' [-Werror=implicit-function-declaration]
     cores_per_cu = amd_get_cores_per_cu();
                    ^
   cc1: some warnings being treated as errors

vim +/if +432 arch/x86/kernel/cpu/perf_event_amd_power.c

   416		return NOTIFY_OK;
   417	}
   418	
   419	static const struct x86_cpu_id cpu_match[] = {
   420		{ .vendor = X86_VENDOR_AMD, .family = 0x15 },
   421		{},
   422	};
   423	
   424	static int __init amd_power_pmu_init(void)
   425	{
   426		int i, ret;
   427		u64 tmp;
   428	
   429		if (!x86_match_cpu(cpu_match))
   430			return 0;
   431	
 > 432		if (!boot_cpu_has(X86_FEATURE_ACC_POWER))
   433			return -ENODEV;
   434	
   435		cores_per_cu = amd_get_cores_per_cu();
   436		cu_num = boot_cpu_data.x86_max_cores / cores_per_cu;
   437	
   438		if (WARN_ON_ONCE(cu_num > MAX_CUS))
   439			return -EINVAL;
   440	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 20607 bytes --]

  parent reply	other threads:[~2016-01-28 10:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-28  6:38 [PATCH v4] perf/x86/amd/power: Add AMD accumulated power reporting mechanism Huang Rui
2016-01-28  9:03 ` Borislav Petkov
2016-01-28  9:39   ` [PATCH] perf/x86/amd/power: Add AMD accumulated power reporting kbuild test robot
2016-01-28  9:41   ` kbuild test robot
2016-01-28 10:01   ` [PATCH v4] perf/x86/amd/power: Add AMD accumulated power reporting mechanism Huang Rui
2016-01-28 12:42     ` Borislav Petkov
2016-01-28 14:54       ` Borislav Petkov
2016-01-28 10:04   ` kbuild test robot [this message]
2016-01-28 15:28   ` Peter Zijlstra
2016-01-29  8:18     ` Huang Rui

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=201601281835.XM5YrSe4%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=Aravind.Gopalakrishnan@amd.com \
    --cc=aaron.lu@intel.com \
    --cc=bp@alien8.de \
    --cc=bp@suse.de \
    --cc=fengguang.wu@intel.com \
    --cc=fweisbec@gmail.com \
    --cc=herrmann.der.user@googlemail.com \
    --cc=jacob.w.shin@gmail.com \
    --cc=john.stultz@linaro.org \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=luto@amacapital.net \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=ray.huang@amd.com \
    --cc=rric@kernel.org \
    --cc=spg_linux_kernel@amd.com \
    --cc=suravee.suthikulpanit@amd.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.