lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203311740.yZ2pqEBy-lkp@intel.com>
Date:   Thu, 31 Mar 2022 18:05:39 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vishal Verma <vishal.l.verma@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ