[pm:bleeding-edge 47/52] drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c:233:32: error: 'ACPI_NAME_SIZE' undeclared; did you mean 'APR_NAME_SIZE'?

[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:   ea3d77d1940b15ef51a4f4936d05e99fab4cecff
commit: 756ae0e33ac30984626b5f570c21c2bd1defac4d [47/52] ACPICA: Rename nameseg length macro/define for clarity
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 756ae0e33ac30984626b5f570c21c2bd1defac4d
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c: In function 'get_single_name':
>> drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c:233:32: error: 'ACPI_NAME_SIZE' undeclared (first use in this function); did you mean 'APR_NAME_SIZE'?
      memcpy(name, buffer.pointer, ACPI_NAME_SIZE);
                                   ^~~~~~~~~~~~~~
                                   APR_NAME_SIZE
   drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c:233:32: note: each undeclared identifier is reported only once for each function it appears in

vim +233 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c

52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  223  
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  224  
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  225  /* get device name from acpi handle */
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  226  static void get_single_name(acpi_handle handle, char *name)
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  227  {
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  228  	struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER};
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  229  
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  230  	if (ACPI_FAILURE(acpi_get_name(handle, ACPI_SINGLE_NAME, &buffer)))
1820142f5 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Sumeet Pawnikar 2017-08-04  231  		pr_warn("Failed to get device name from acpi handle\n");
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  232  	else {
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03 @233  		memcpy(name, buffer.pointer, ACPI_NAME_SIZE);
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  234  		kfree(buffer.pointer);
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  235  	}
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  236  }
52b1c69d7 drivers/thermal/int340x_thermal/acpi_thermal_rel.c Jacob Pan       2014-09-03  237  

:::::: The code at line 233 was first introduced by commit
:::::: 52b1c69d7e3cd8bdba0e55bde24093f0779bb29d Thermal: int340x_thermal: expose acpi thermal relationship tables

:::::: TO: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
:::::: CC: Zhang Rui <rui.zhang@xxxxxxxxx>

---
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