lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201601281751.ld31D5aS%fengguang.wu@intel.com>
Date:	Thu, 28 Jan 2016 17:41:06 +0800
From:	kbuild test robot <lkp@...el.com>
To:	Borislav Petkov <bp@...en8.de>
Cc:	kbuild-all@...org, Huang Rui <ray.huang@....com>,
	Borislav Petkov <bp@...e.de>,
	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...nel.org>,
	Andy Lutomirski <luto@...capital.net>,
	Thomas Gleixner <tglx@...utronix.de>,
	Robert Richter <rric@...nel.org>,
	Jacob Shin <jacob.w.shin@...il.com>,
	John Stultz <john.stultz@...aro.org>,
	Frédéric Weisbecker <fweisbec@...il.com>,
	linux-kernel@...r.kernel.org, spg_linux_kernel@....com,
	x86@...nel.org, Guenter Roeck <linux@...ck-us.net>,
	Andreas Herrmann <herrmann.der.user@...glemail.com>,
	Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
	Aravind Gopalakrishnan <Aravind.Gopalakrishnan@....com>,
	Fengguang Wu <fengguang.wu@...el.com>,
	Aaron Lu <aaron.lu@...el.com>
Subject: Re: [PATCH] perf/x86/amd/power: Add AMD accumulated power reporting

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: i386-randconfig-s0-201604 (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   In file included from arch/x86/include/asm/alternative.h:158:0,
                    from arch/x86/include/asm/bitops.h:16,
                    from include/linux/bitops.h:36,
                    from include/linux/kernel.h:10,
                    from include/linux/list.h:8,
                    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))
                       ^
   arch/x86/include/asm/cpufeature.h:319:24: note: in definition of macro 'cpu_has'
     (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
                           ^
>> 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))
                       ^
   arch/x86/include/asm/cpufeature.h:319:24: note: in definition of macro 'cpu_has'
     (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
                           ^
>> 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 +/boot_cpu_has +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

Download attachment ".config.gz" of type "application/octet-stream" (23262 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ