All of lore.kernel.org
 help / color / mirror / Atom feed
* [vishal:cxl-osc 1/3] include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
@ 2022-03-31 10:05 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-31 10:05 UTC (permalink / raw)
  To: Vishal Verma; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vishal/linux.git cxl-osc
head:   1b14cb29c313c4288f576c2480ba62a7721a2e9b
commit: c2618c3e767f53a8a62b82eaa919082378c925e5 [1/3] acpi: add a helper for retrieving _OSC Control DWORDs
config: arc-randconfig-r031-20220331 (https://download.01.org/0day-ci/archive/20220331/202203311740.yZ2pqEBy-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/vishal/linux.git/commit/?id=c2618c3e767f53a8a62b82eaa919082378c925e5
        git remote add vishal https://git.kernel.org/pub/scm/linux/kernel/git/vishal/linux.git
        git fetch --no-tags vishal cxl-osc
        git checkout c2618c3e767f53a8a62b82eaa919082378c925e5
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/iio/light/

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

All warnings (new ones prefixed by >>):

   In file included from include/linux/i2c.h:13,
                    from drivers/iio/light/adjd_s311.c:15:
>> include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
    1013 | static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
         |                                                       ^~~~~~~~~~~~~~~~
--
   In file included from include/linux/i2c.h:13,
                    from drivers/iio/light/max44009.c:18:
>> include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
    1013 | static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
         |                                                       ^~~~~~~~~~~~~~~~
   drivers/iio/light/max44009.c:546:34: warning: 'max44009_of_match' defined but not used [-Wunused-const-variable=]
     546 | static const struct of_device_id max44009_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~
--
   In file included from drivers/iio/light/pa12203001.c:12:
>> include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
    1013 | static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
         |                                                       ^~~~~~~~~~~~~~~~
   drivers/iio/light/pa12203001.c:454:36: warning: 'pa12203001_acpi_match' defined but not used [-Wunused-const-variable=]
     454 | static const struct acpi_device_id pa12203001_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/iio/light/stk3310.c:10:
>> include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
    1013 | static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
         |                                                       ^~~~~~~~~~~~~~~~
   drivers/iio/light/stk3310.c:674:36: warning: 'stk3310_acpi_id' defined but not used [-Wunused-const-variable=]
     674 | static const struct acpi_device_id stk3310_acpi_id[] = {
         |                                    ^~~~~~~~~~~~~~~
--
   In file included from drivers/iio/light/us5182d.c:12:
>> include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration
    1013 | static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
         |                                                       ^~~~~~~~~~~~~~~~
   drivers/iio/light/us5182d.c:949:36: warning: 'us5182d_acpi_match' defined but not used [-Wunused-const-variable=]
     949 | static const struct acpi_device_id us5182d_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~


vim +1013 include/linux/acpi.h

  1009	
  1010	static inline void acpi_unregister_wakeup_handler(
  1011		bool (*wakeup)(void *context), void *context) { }
  1012	
> 1013	static inline u32 acpi_osc_ctx_get_pci_control(struct acpi_osc_context *context)
  1014	{
  1015		return 0;
  1016	}
  1017	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-31 10:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-31 10:05 [vishal:cxl-osc 1/3] include/linux/acpi.h:1013:55: warning: 'struct acpi_osc_context' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.