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: <202312031846.QS2OB5i6-lkp@intel.com>
Date:   Sun, 3 Dec 2023 19:42:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sean Nyekjaer <sean.nyekjaer@...vas.dk>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Jonathan Cameron <jic23@...nel.org>
Subject: drivers/iio/dac/ad5755.c:786:34: warning: 'ad5755_of_match' defined
 but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   968f35f4ab1c0966ceb39af3c89f2e24afedf878
commit: c947459979c6c9c8aff9c9b5027b31dbf8055106 iio: ad5755: add support for dt bindings
date:   7 years ago
config: x86_64-randconfig-015-20231009 (https://download.01.org/0day-ci/archive/20231203/202312031846.QS2OB5i6-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/20231203/202312031846.QS2OB5i6-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/202312031846.QS2OB5i6-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/kobject.h:21,
                    from include/linux/device.h:17,
                    from drivers/iio/dac/ad5755.c:9:
   include/linux/sysfs.h: In function 'sysfs_get_dirent':
   include/linux/sysfs.h:517:44: warning: pointer targets in passing argument 2 of 'kernfs_find_and_get' differ in signedness [-Wpointer-sign]
     517 |         return kernfs_find_and_get(parent, name);
         |                                            ^~~~
         |                                            |
         |                                            const unsigned char *
   In file included from include/linux/sysfs.h:15:
   include/linux/kernfs.h:437:57: note: expected 'const char *' but argument is of type 'const unsigned char *'
     437 | kernfs_find_and_get(struct kernfs_node *kn, const char *name)
         |                                             ~~~~~~~~~~~~^~~~
   drivers/iio/dac/ad5755.c: At top level:
>> drivers/iio/dac/ad5755.c:786:34: warning: 'ad5755_of_match' defined but not used [-Wunused-const-variable=]
     786 | static const struct of_device_id ad5755_of_match[] = {
         |                                  ^~~~~~~~~~~~~~~


vim +/ad5755_of_match +786 drivers/iio/dac/ad5755.c

   785	
 > 786	static const struct of_device_id ad5755_of_match[] = {
   787		{ .compatible = "adi,ad5755" },
   788		{ .compatible = "adi,ad5755-1" },
   789		{ .compatible = "adi,ad5757" },
   790		{ .compatible = "adi,ad5735" },
   791		{ .compatible = "adi,ad5737" },
   792		{ }
   793	};
   794	MODULE_DEVICE_TABLE(of, ad5755_of_match);
   795	

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