[pm:bleeding-edge 124/125] drivers//acpi/x86/utils.c:55:25: error: implicit declaration of function 'INTEL_CPU_FAM6_NODATA'; did you mean 'INTEL_CPU_FAM_ANY'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head:   a7bd624d55825520984461c8abe93aebbe955242
commit: cb2ed44786c43d6c96eb8bee39604bd1b949c9df [124/125] ACPI / x86: utils: Get rid of custom ICPU() macro
config: x86_64-randconfig-x019-201836 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout cb2ed44786c43d6c96eb8bee39604bd1b949c9df
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

>> drivers//acpi/x86/utils.c:55:25: error: implicit declaration of function 'INTEL_CPU_FAM6_NODATA'; did you mean 'INTEL_CPU_FAM_ANY'? [-Werror=implicit-function-declaration]
     ENTRY("80860F09", "1", INTEL_CPU_FAM6_NODATA(ATOM_SILVERMONT1), {}),
                            ^
   drivers//acpi/x86/utils.c:45:4: note: in definition of macro 'ENTRY'
     { cpu_models, {} },      \
       ^~~~~~~~~~
>> drivers//acpi/x86/utils.c:55:47: error: 'ATOM_SILVERMONT1' undeclared here (not in a function)
     ENTRY("80860F09", "1", INTEL_CPU_FAM6_NODATA(ATOM_SILVERMONT1), {}),
                                                  ^
   drivers//acpi/x86/utils.c:45:4: note: in definition of macro 'ENTRY'
     { cpu_models, {} },      \
       ^~~~~~~~~~
>> drivers//acpi/x86/utils.c:56:47: error: 'ATOM_AIRMONT' undeclared here (not in a function); did you mean 'ATOM_SILVERMONT1'?
     ENTRY("80862288", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {}),
                                                  ^
   drivers//acpi/x86/utils.c:45:4: note: in definition of macro 'ENTRY'
     { cpu_models, {} },      \
       ^~~~~~~~~~
>> drivers//acpi/x86/utils.c:68:47: error: 'HASWELL_ULT' undeclared here (not in a function)
     ENTRY("SYNA7500", "1", INTEL_CPU_FAM6_NODATA(HASWELL_ULT), {
                                                  ^
   drivers//acpi/x86/utils.c:45:4: note: in definition of macro 'ENTRY'
     { cpu_models, {} },      \
       ^~~~~~~~~~
   cc1: some warnings being treated as errors

vim +55 drivers//acpi/x86/utils.c

    42	
    43	#define ENTRY(hid, uid, cpu_models, dmi...) {				\
    44		{ { hid, }, {} },						\
  > 45		{ cpu_models, {} },						\
    46		{ { .matches = dmi }, {} },					\
    47		uid,								\
    48	}
    49	
    50	static const struct always_present_id always_present_ids[] = {
    51		/*
    52		 * Bay / Cherry Trail PWM directly poked by GPU driver in win10,
    53		 * but Linux uses a separate PWM driver, harmless if not used.
    54		 */
  > 55		ENTRY("80860F09", "1", INTEL_CPU_FAM6_NODATA(ATOM_SILVERMONT1), {}),
  > 56		ENTRY("80862288", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {}),
    57		/*
    58		 * The INT0002 device is necessary to clear wakeup interrupt sources
    59		 * on Cherry Trail devices, without it we get nobody cared IRQ msgs.
    60		 */
    61		ENTRY("INT0002", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {}),
    62		/*
    63		 * On the Dell Venue 11 Pro 7130 and 7139, the DSDT hides
    64		 * the touchscreen ACPI device until a certain time
    65		 * after _SB.PCI0.GFX0.LCD.LCD1._ON gets called has passed
    66		 * *and* _STA has been called at least 3 times since.
    67		 */
  > 68		ENTRY("SYNA7500", "1", INTEL_CPU_FAM6_NODATA(HASWELL_ULT), {
    69			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
    70			DMI_MATCH(DMI_PRODUCT_NAME, "Venue 11 Pro 7130"),
    71		      }),
    72		ENTRY("SYNA7500", "1", INTEL_CPU_FAM6_NODATA(HASWELL_ULT), {
    73			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
    74			DMI_MATCH(DMI_PRODUCT_NAME, "Venue 11 Pro 7139"),
    75		      }),
    76	
    77		/*
    78		 * The GPD win BIOS dated 20170221 has disabled the accelerometer, the
    79		 * drivers sometimes cause crashes under Windows and this is how the
    80		 * manufacturer has solved this :| Note that the the DMI data is less
    81		 * generic then it seems, a board_vendor of "AMI Corporation" is quite
    82		 * rare and a board_name of "Default String" also is rare.
    83		 *
    84		 * Unfortunately the GPD pocket also uses these strings and its BIOS
    85		 * was copy-pasted from the GPD win, so it has a disabled KIOX000A
    86		 * node which we should not enable, thus we also check the BIOS date.
    87		 */
    88		ENTRY("KIOX000A", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {
    89			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
    90			DMI_MATCH(DMI_BOARD_NAME, "Default string"),
    91			DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
    92			DMI_MATCH(DMI_BIOS_DATE, "02/21/2017")
    93		      }),
    94		ENTRY("KIOX000A", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {
    95			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
    96			DMI_MATCH(DMI_BOARD_NAME, "Default string"),
    97			DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
    98			DMI_MATCH(DMI_BIOS_DATE, "03/20/2017")
    99		      }),
   100		ENTRY("KIOX000A", "1", INTEL_CPU_FAM6_NODATA(ATOM_AIRMONT), {
   101			DMI_MATCH(DMI_BOARD_VENDOR, "AMI Corporation"),
   102			DMI_MATCH(DMI_BOARD_NAME, "Default string"),
   103			DMI_MATCH(DMI_PRODUCT_NAME, "Default string"),
   104			DMI_MATCH(DMI_BIOS_DATE, "05/25/2017")
   105		      }),
   106	};
   107	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux