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: <202311190738.gldzuIXo-lkp@intel.com>
Date:   Sun, 19 Nov 2023 07:04:23 +0800
From:   kernel test robot <lkp@...el.com>
To:     Adriana Reus <adriana.reus@...el.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Jonathan Cameron <jic23@...nel.org>
Subject: drivers/iio/light/us5182d.c:479:36: warning: 'us5182d_acpi_match'
 defined but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b8f1fa2419c19c81bc386a6b350879ba54a573e1
commit: c14f8abe5304ba46b898cd381a0857fd61f87200 iio: light: Add support for UPISEMI uS5182d als and proximity sensor
date:   8 years ago
config: x86_64-buildonly-randconfig-003-20230823 (https://download.01.org/0day-ci/archive/20231119/202311190738.gldzuIXo-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231119/202311190738.gldzuIXo-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311190738.gldzuIXo-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/kobject.h:21,
                    from include/linux/module.h:17,
                    from drivers/iio/light/us5182d.c:19:
   include/linux/sysfs.h: In function 'sysfs_get_dirent':
   include/linux/sysfs.h:496:44: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign]
     496 |         return kernfs_find_and_get(parent, name);
         |                                            ^~~~
         |                                            |
         |                                            const unsigned char *
   In file included from include/linux/sysfs.h:15:
   include/linux/kernfs.h:424:57: note: expected 'const char *' but argument is of type 'const unsigned char *'
     424 | kernfs_find_and_get(struct kernfs_node *kn, const char *name)
         |                                             ~~~~~~~~~~~~^~~~
   drivers/iio/light/us5182d.c: At top level:
   drivers/iio/light/us5182d.c:480:9: warning: missing initializer for field 'cls' of 'const struct acpi_device_id' [-Wmissing-field-initializers]
     480 |         { "USD5182", 0},
         |         ^
   In file included from include/linux/i2c.h:29,
                    from drivers/iio/light/us5182d.c:22:
   include/linux/mod_devicetable.h:192:15: note: 'cls' declared here
     192 |         __u32 cls;
         |               ^~~
>> drivers/iio/light/us5182d.c:479:36: warning: 'us5182d_acpi_match' defined but not used [-Wunused-const-variable=]
     479 | static const struct acpi_device_id us5182d_acpi_match[] = {
         |                                    ^~~~~~~~~~~~~~~~~~
   drivers/iio/light/us5182d.c:281: warning: Function parameter or member 'data' not described in 'us5182d_update_dark_th'
   drivers/iio/light/us5182d.c:281: warning: Function parameter or member 'index' not described in 'us5182d_update_dark_th'
   drivers/iio/light/us5182d.c:303: warning: Function parameter or member 'data' not described in 'us5182d_apply_scale'
   drivers/iio/light/us5182d.c:303: warning: Function parameter or member 'index' not described in 'us5182d_apply_scale'


vim +/us5182d_acpi_match +479 drivers/iio/light/us5182d.c

   478	
 > 479	static const struct acpi_device_id us5182d_acpi_match[] = {
   480		{ "USD5182", 0},
   481		{}
   482	};
   483	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ