Re: [PATCH v2 6/8] acpi: bus: Enable HWP CPPC objects
From: Srinivas Pandruvada
Date: Thu Sep 01 2016 - 19:46:23 EST
On Fri, 2016-09-02 at 07:15 +0800, kbuild test robot wrote:
> Hi Srinivas,
>
> [auto build test ERROR on tip/sched/core]
> [also build test ERROR on v4.8-rc4 next-20160825]
> [cannot apply to tip/x86/core]
> [if your patch is applied to the wrong git tree, please drop us a
> note to help improve the system]
> [Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --
> base=auto for convenience) to record what (public, well-known) commit
> your patch series was built on]
> [Check https://git-scm.com/docs/git-format-patch for more
> information]
>
> url:ÂÂÂÂhttps://github.com/0day-ci/linux/commits/Srinivas-Pandruvada/
> Support-Intel-Turbo-Boost-Max-Technology-3-0/20160902-053224
> config: arm64-allmodconfig (attached as .config)
> compiler: aarch64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
> reproduce:
> ÂÂÂÂÂÂÂÂwget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tes
> ts.git/plain/sbin/make.cross -O ~/bin/make.cross
> ÂÂÂÂÂÂÂÂchmod +x ~/bin/make.cross
> ÂÂÂÂÂÂÂÂ# save the attached .config to linux build tree
> ÂÂÂÂÂÂÂÂmake.cross ARCH=arm64Â
>
> All errors (new ones prefixed by >>):
>
> ÂÂÂdrivers/acpi/bus.c: In function 'acpi_bus_osc_support':
> >
> > >
> > > drivers/acpi/bus.c:333:32: error: implicit declaration of
> > > function 'boot_cpu_has' [-Werror=implicit-function-declaration]
> ÂÂÂÂÂif (IS_ENABLED(CONFIG_X86) && boot_cpu_has(X86_FEATURE_HWP)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^
I have to change back toÂ
#ifdef CONFIG_X86
Âif (boot_cpu_has(X86_FEATURE_HWP)) {
I will submit an update.
> >
> > >
> > > drivers/acpi/bus.c:333:45: error: 'X86_FEATURE_HWP' undeclared
> > > (first use in this function)
> ÂÂÂÂÂif (IS_ENABLED(CONFIG_X86) && boot_cpu_has(X86_FEATURE_HWP)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ^
> ÂÂÂdrivers/acpi/bus.c:333:45: note: each undeclared identifier is
> reported only once for each function it appears in
> ÂÂÂcc1: some warnings being treated as errors
>
> vim +/boot_cpu_has +333 drivers/acpi/bus.c
>
> ÂÂÂ327 if (IS_ENABLED(CONFIG_ACPI_PROCESSOR))
> ÂÂÂ328 capbuf[OSC_SUPPORT_DWORD] |=
> OSC_SB_PPC_OST_SUPPORT;
> ÂÂÂ329
> ÂÂÂ330 capbuf[OSC_SUPPORT_DWORD] |=
> OSC_SB_HOTPLUG_OST_SUPPORT;
> ÂÂÂ331 capbuf[OSC_SUPPORT_DWORD] |=
> OSC_SB_PCLPI_SUPPORT;
> ÂÂÂ332
> Â> 333 if (IS_ENABLED(CONFIG_X86) &&
> boot_cpu_has(X86_FEATURE_HWP)) {
> ÂÂÂ334 capbuf[OSC_SUPPORT_DWORD] |=
> OSC_SB_CPC_SUPPORT;
> ÂÂÂ335 capbuf[OSC_SUPPORT_DWORD] |=
> OSC_SB_CPCV2_SUPPORT;
> ÂÂÂ336 }
>
> ---
> 0-DAY kernel test infrastructureÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂOpen Source
> Technology Center
> https://lists.01.org/pipermail/kbuild-allÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂIntel
> Corporation