Linux-PM Archive on lore.kernel.org
 help / color / Atom feed
* [pm:bleeding-edge 51/55] drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
@ 2019-06-18 10:29 kbuild test robot
  2019-06-18 12:38 ` Bhardwaj, Rajneesh
  0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2019-06-18 10:29 UTC (permalink / raw)
  To: Rajneesh Bhardwaj
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   02f436aad250841d42baf9a3c47ad5646eb4ad31
commit: d2658d7b4985a4fdbdab02e0e651a5778ccfcf1c [51/55] powercap: rapl: Add Ice Lake NNPI support to RAPL driver
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout d2658d7b4985a4fdbdab02e0e651a5778ccfcf1c
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All error/warnings (new ones prefixed by >>):

   In file included from drivers//powercap/intel_rapl.c:25:0:
>> arch/x86/include/asm/intel-family.h:97:23: error: 'INTEL_FAM6_ICELAKE_NNPI' undeclared here (not in a function); did you mean 'INTEL_FAM6_ICELAKE_X'?
     INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
                          ^
   arch/x86/include/asm/intel-family.h:91:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
     .model  = _model,    \
               ^~~~~~
>> drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
     INTEL_CPU_FAM6(ICELAKE_NNPI,  rapl_defaults_core),
     ^~~~~~~~~~~~~~
--
   In file included from drivers/powercap/intel_rapl.c:25:0:
>> arch/x86/include/asm/intel-family.h:97:23: error: 'INTEL_FAM6_ICELAKE_NNPI' undeclared here (not in a function); did you mean 'INTEL_FAM6_ICELAKE_X'?
     INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
                          ^
   arch/x86/include/asm/intel-family.h:91:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
     .model  = _model,    \
               ^~~~~~
   drivers/powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
     INTEL_CPU_FAM6(ICELAKE_NNPI,  rapl_defaults_core),
     ^~~~~~~~~~~~~~

vim +/INTEL_CPU_FAM6 +1148 drivers//powercap/intel_rapl.c

  1123	
  1124	static const struct x86_cpu_id rapl_ids[] __initconst = {
  1125		INTEL_CPU_FAM6(SANDYBRIDGE,		rapl_defaults_core),
  1126		INTEL_CPU_FAM6(SANDYBRIDGE_X,		rapl_defaults_core),
  1127	
  1128		INTEL_CPU_FAM6(IVYBRIDGE,		rapl_defaults_core),
  1129		INTEL_CPU_FAM6(IVYBRIDGE_X,		rapl_defaults_core),
  1130	
  1131		INTEL_CPU_FAM6(HASWELL_CORE,		rapl_defaults_core),
  1132		INTEL_CPU_FAM6(HASWELL_ULT,		rapl_defaults_core),
  1133		INTEL_CPU_FAM6(HASWELL_GT3E,		rapl_defaults_core),
  1134		INTEL_CPU_FAM6(HASWELL_X,		rapl_defaults_hsw_server),
  1135	
  1136		INTEL_CPU_FAM6(BROADWELL_CORE,		rapl_defaults_core),
  1137		INTEL_CPU_FAM6(BROADWELL_GT3E,		rapl_defaults_core),
  1138		INTEL_CPU_FAM6(BROADWELL_XEON_D,	rapl_defaults_core),
  1139		INTEL_CPU_FAM6(BROADWELL_X,		rapl_defaults_hsw_server),
  1140	
  1141		INTEL_CPU_FAM6(SKYLAKE_DESKTOP,		rapl_defaults_core),
  1142		INTEL_CPU_FAM6(SKYLAKE_MOBILE,		rapl_defaults_core),
  1143		INTEL_CPU_FAM6(SKYLAKE_X,		rapl_defaults_hsw_server),
  1144		INTEL_CPU_FAM6(KABYLAKE_MOBILE,		rapl_defaults_core),
  1145		INTEL_CPU_FAM6(KABYLAKE_DESKTOP,	rapl_defaults_core),
  1146		INTEL_CPU_FAM6(CANNONLAKE_MOBILE,	rapl_defaults_core),
  1147		INTEL_CPU_FAM6(ICELAKE_MOBILE,		rapl_defaults_core),
> 1148		INTEL_CPU_FAM6(ICELAKE_NNPI,		rapl_defaults_core),
  1149	
  1150		INTEL_CPU_FAM6(ATOM_SILVERMONT,		rapl_defaults_byt),
  1151		INTEL_CPU_FAM6(ATOM_AIRMONT,		rapl_defaults_cht),
  1152		INTEL_CPU_FAM6(ATOM_SILVERMONT_MID,	rapl_defaults_tng),
  1153		INTEL_CPU_FAM6(ATOM_AIRMONT_MID,	rapl_defaults_ann),
  1154		INTEL_CPU_FAM6(ATOM_GOLDMONT,		rapl_defaults_core),
  1155		INTEL_CPU_FAM6(ATOM_GOLDMONT_PLUS,	rapl_defaults_core),
  1156		INTEL_CPU_FAM6(ATOM_GOLDMONT_X,		rapl_defaults_core),
  1157		INTEL_CPU_FAM6(ATOM_TREMONT_X,		rapl_defaults_core),
  1158	
  1159		INTEL_CPU_FAM6(XEON_PHI_KNL,		rapl_defaults_hsw_server),
  1160		INTEL_CPU_FAM6(XEON_PHI_KNM,		rapl_defaults_hsw_server),
  1161		{}
  1162	};
  1163	MODULE_DEVICE_TABLE(x86cpu, rapl_ids);
  1164	

---
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: 68821 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [pm:bleeding-edge 51/55] drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
  2019-06-18 10:29 [pm:bleeding-edge 51/55] drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6' kbuild test robot
@ 2019-06-18 12:38 ` Bhardwaj, Rajneesh
  0 siblings, 0 replies; 2+ messages in thread
From: Bhardwaj, Rajneesh @ 2019-06-18 12:38 UTC (permalink / raw)
  To: kbuild test robot
  Cc: kbuild-all, linux-acpi, devel, linux-pm, Rafael J. Wysocki


On 18-Jun-19 3:59 PM, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
> head:   02f436aad250841d42baf9a3c47ad5646eb4ad31
> commit: d2658d7b4985a4fdbdab02e0e651a5778ccfcf1c [51/55] powercap: rapl: Add Ice Lake NNPI support to RAPL driver
> config: x86_64-allyesconfig (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>          git checkout d2658d7b4985a4fdbdab02e0e651a5778ccfcf1c
>          # save the attached .config to linux build tree
>          make ARCH=x86_64
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@intel.com>
>
> All error/warnings (new ones prefixed by >>):
>
>     In file included from drivers//powercap/intel_rapl.c:25:0:
>>> arch/x86/include/asm/intel-family.h:97:23: error: 'INTEL_FAM6_ICELAKE_NNPI' undeclared here (not in a function); did you mean 'INTEL_FAM6_ICELAKE_X'?

This patch depends on 
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=e32d045cd4ba06b59878323e434bad010e78e658 
and that patch is already accepted.


>       INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
>                            ^
>     arch/x86/include/asm/intel-family.h:91:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
>       .model  = _model,    \
>                 ^~~~~~
>>> drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
>       INTEL_CPU_FAM6(ICELAKE_NNPI,  rapl_defaults_core),
>       ^~~~~~~~~~~~~~
> --
>     In file included from drivers/powercap/intel_rapl.c:25:0:
>>> arch/x86/include/asm/intel-family.h:97:23: error: 'INTEL_FAM6_ICELAKE_NNPI' undeclared here (not in a function); did you mean 'INTEL_FAM6_ICELAKE_X'?
>       INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
>                            ^
>     arch/x86/include/asm/intel-family.h:91:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
>       .model  = _model,    \
>                 ^~~~~~
>     drivers/powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6'
>       INTEL_CPU_FAM6(ICELAKE_NNPI,  rapl_defaults_core),
>       ^~~~~~~~~~~~~~
>
> vim +/INTEL_CPU_FAM6 +1148 drivers//powercap/intel_rapl.c
>
>    1123	
>    1124	static const struct x86_cpu_id rapl_ids[] __initconst = {
>    1125		INTEL_CPU_FAM6(SANDYBRIDGE,		rapl_defaults_core),
>    1126		INTEL_CPU_FAM6(SANDYBRIDGE_X,		rapl_defaults_core),
>    1127	
>    1128		INTEL_CPU_FAM6(IVYBRIDGE,		rapl_defaults_core),
>    1129		INTEL_CPU_FAM6(IVYBRIDGE_X,		rapl_defaults_core),
>    1130	
>    1131		INTEL_CPU_FAM6(HASWELL_CORE,		rapl_defaults_core),
>    1132		INTEL_CPU_FAM6(HASWELL_ULT,		rapl_defaults_core),
>    1133		INTEL_CPU_FAM6(HASWELL_GT3E,		rapl_defaults_core),
>    1134		INTEL_CPU_FAM6(HASWELL_X,		rapl_defaults_hsw_server),
>    1135	
>    1136		INTEL_CPU_FAM6(BROADWELL_CORE,		rapl_defaults_core),
>    1137		INTEL_CPU_FAM6(BROADWELL_GT3E,		rapl_defaults_core),
>    1138		INTEL_CPU_FAM6(BROADWELL_XEON_D,	rapl_defaults_core),
>    1139		INTEL_CPU_FAM6(BROADWELL_X,		rapl_defaults_hsw_server),
>    1140	
>    1141		INTEL_CPU_FAM6(SKYLAKE_DESKTOP,		rapl_defaults_core),
>    1142		INTEL_CPU_FAM6(SKYLAKE_MOBILE,		rapl_defaults_core),
>    1143		INTEL_CPU_FAM6(SKYLAKE_X,		rapl_defaults_hsw_server),
>    1144		INTEL_CPU_FAM6(KABYLAKE_MOBILE,		rapl_defaults_core),
>    1145		INTEL_CPU_FAM6(KABYLAKE_DESKTOP,	rapl_defaults_core),
>    1146		INTEL_CPU_FAM6(CANNONLAKE_MOBILE,	rapl_defaults_core),
>    1147		INTEL_CPU_FAM6(ICELAKE_MOBILE,		rapl_defaults_core),
>> 1148		INTEL_CPU_FAM6(ICELAKE_NNPI,		rapl_defaults_core),
>    1149	
>    1150		INTEL_CPU_FAM6(ATOM_SILVERMONT,		rapl_defaults_byt),
>    1151		INTEL_CPU_FAM6(ATOM_AIRMONT,		rapl_defaults_cht),
>    1152		INTEL_CPU_FAM6(ATOM_SILVERMONT_MID,	rapl_defaults_tng),
>    1153		INTEL_CPU_FAM6(ATOM_AIRMONT_MID,	rapl_defaults_ann),
>    1154		INTEL_CPU_FAM6(ATOM_GOLDMONT,		rapl_defaults_core),
>    1155		INTEL_CPU_FAM6(ATOM_GOLDMONT_PLUS,	rapl_defaults_core),
>    1156		INTEL_CPU_FAM6(ATOM_GOLDMONT_X,		rapl_defaults_core),
>    1157		INTEL_CPU_FAM6(ATOM_TREMONT_X,		rapl_defaults_core),
>    1158	
>    1159		INTEL_CPU_FAM6(XEON_PHI_KNL,		rapl_defaults_hsw_server),
>    1160		INTEL_CPU_FAM6(XEON_PHI_KNM,		rapl_defaults_hsw_server),
>    1161		{}
>    1162	};
>    1163	MODULE_DEVICE_TABLE(x86cpu, rapl_ids);
>    1164	
>
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18 10:29 [pm:bleeding-edge 51/55] drivers//powercap/intel_rapl.c:1148:2: note: in expansion of macro 'INTEL_CPU_FAM6' kbuild test robot
2019-06-18 12:38 ` Bhardwaj, Rajneesh

Linux-PM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-pm/0 linux-pm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-pm linux-pm/ https://lore.kernel.org/linux-pm \
		linux-pm@vger.kernel.org linux-pm@archiver.kernel.org
	public-inbox-index linux-pm


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-pm


AGPL code for this site: git clone https://public-inbox.org/ public-inbox