[hwmon:hwmon-next 3/3] include/acpi/acpi_bus.h:52:20: error: conflicting types for 'acpi_evaluate_dsm'

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head:   47b0952d60828200779a75c213fc963791e1a6e5
commit: 47b0952d60828200779a75c213fc963791e1a6e5 [3/3] hwmon: (lm70) Add support for ACPI
config: nios2-randconfig-a001-20200426 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 47b0952d60828200779a75c213fc963791e1a6e5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=nios2 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

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

   In file included from drivers/hwmon/lm70.c:29:
>> include/acpi/acpi_bus.h:52:20: error: conflicting types for 'acpi_evaluate_dsm'
      52 | union acpi_object *acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid,
         |                    ^~~~~~~~~~~~~~~~~
   In file included from drivers/hwmon/lm70.c:28:
   include/linux/acpi.h:866:34: note: previous definition of 'acpi_evaluate_dsm' was here
     866 | static inline union acpi_object *acpi_evaluate_dsm(acpi_handle handle,
         |                                  ^~~~~~~~~~~~~~~~~
   In file included from drivers/hwmon/lm70.c:30:
>> include/acpi/acpi_drivers.h:89:43: warning: 'struct acpi_pci_root' declared inside parameter list will not be visible outside of this definition or declaration
      89 | struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
         |                                           ^~~~~~~~~~~~~
   drivers/hwmon/lm70.c: In function 'lm70_probe':
>> drivers/hwmon/lm70.c:189:34: error: 'lm70_acpi_ids' undeclared (first use in this function); did you mean 'lm70_of_ids'?
     189 |   acpi_match = acpi_match_device(lm70_acpi_ids, &spi->dev);
         |                                  ^~~~~~~~~~~~~
         |                                  lm70_of_ids
   drivers/hwmon/lm70.c:189:34: note: each undeclared identifier is reported only once for each function it appears in

vim +/acpi_evaluate_dsm +52 include/acpi/acpi_bus.h

952c63e9512b63 Jiang Liu       2013-06-29  50  
94116f8126de97 Andy Shevchenko 2017-06-05  51  bool acpi_check_dsm(acpi_handle handle, const guid_t *guid, u64 rev, u64 funcs);
94116f8126de97 Andy Shevchenko 2017-06-05 @52  union acpi_object *acpi_evaluate_dsm(acpi_handle handle, const guid_t *guid,
c7e16e5257ec46 Jerry Hoemann   2016-04-11  53  			u64 rev, u64 func, union acpi_object *argv4);
a65ac52041ccca Jiang Liu       2013-12-19  54  

:::::: The code at line 52 was first introduced by commit
:::::: 94116f8126de9762751fd92731581b73b56292e5 ACPI: Switch to use generic guid_t in acpi_evaluate_dsm()

:::::: TO: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
:::::: CC: Christoph Hellwig <hch@xxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux