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: <202205160759.pkycZ4CI-lkp@intel.com>
Date:   Mon, 16 May 2022 07:47:27 +0800
From:   kernel test robot <lkp@...el.com>
To:     Geert Uytterhoeven <geert+renesas@...der.be>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Jonathan Cameron <Jonathan.Cameron@...wei.com>,
        Simon Horman <horms+renesas@...ge.net.au>
Subject: drivers/iio/adc/rcar-gyroadc.c:300:34: warning:
 'rcar_gyroadc_child_match' defined but not used

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0cdd776ec92c0fec768c7079331804d3e52d4b27
commit: af5d716a90ba55635bbdcbf145465b5fdc5a5530 iio: adc: rcar-gyroadc: Enable compile-testing on non-ARM
date:   4 years, 7 months ago
config: i386-buildonly-randconfig-r001-20220516 (https://download.01.org/0day-ci/archive/20220516/202205160759.pkycZ4CI-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=af5d716a90ba55635bbdcbf145465b5fdc5a5530
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout af5d716a90ba55635bbdcbf145465b5fdc5a5530
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/bcma/ drivers/i2c/busses/ drivers/iio/adc/ drivers/regulator/ drivers/soc/mediatek/

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/workqueue.h:8,
                    from include/linux/srcu.h:34,
                    from include/linux/notifier.h:15,
                    from include/linux/memory_hotplug.h:6,
                    from include/linux/mmzone.h:779,
                    from include/linux/gfp.h:5,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:22,
                    from include/linux/module.h:13,
                    from drivers/iio/adc/rcar-gyroadc.c:17:
   include/linux/timer.h: In function 'timer_setup':
   include/linux/timer.h:178:30: warning: cast between incompatible function types from 'void (*)(struct timer_list *)' to 'void (*)(long unsigned int)' [-Wcast-function-type]
     178 |         __setup_timer(timer, (TIMER_FUNC_TYPE)callback,
         |                              ^
   include/linux/timer.h:143:39: note: in definition of macro '__setup_timer'
     143 |                 (_timer)->function = (_fn);                             \
         |                                       ^~~
   In file included from drivers/iio/adc/rcar-gyroadc.c:17:
   drivers/iio/adc/rcar-gyroadc.c: At top level:
   include/linux/module.h:137:14: warning: 'cleanup_module' specifies less restrictive attribute than its target 'rcar_gyroadc_driver_exit': 'cold' [-Wmissing-attributes]
     137 |         void cleanup_module(void) __attribute__((alias(#exitfn)));
         |              ^~~~~~~~~~~~~~
   include/linux/device.h:1509:1: note: in expansion of macro 'module_exit'
    1509 | module_exit(__driver##_exit);
         | ^~~~~~~~~~~
   include/linux/platform_device.h:228:9: note: in expansion of macro 'module_driver'
     228 |         module_driver(__platform_driver, platform_driver_register, \
         |         ^~~~~~~~~~~~~
   drivers/iio/adc/rcar-gyroadc.c:628:1: note: in expansion of macro 'module_platform_driver'
     628 | module_platform_driver(rcar_gyroadc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/platform_device.h:14,
                    from drivers/iio/adc/rcar-gyroadc.c:18:
   drivers/iio/adc/rcar-gyroadc.c:628:24: note: 'cleanup_module' target declared here
     628 | module_platform_driver(rcar_gyroadc_driver);
         |                        ^~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1505:20: note: in definition of macro 'module_driver'
    1505 | static void __exit __driver##_exit(void) \
         |                    ^~~~~~~~
   drivers/iio/adc/rcar-gyroadc.c:628:1: note: in expansion of macro 'module_platform_driver'
     628 | module_platform_driver(rcar_gyroadc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/iio/adc/rcar-gyroadc.c:17:
   include/linux/module.h:131:13: warning: 'init_module' specifies less restrictive attribute than its target 'rcar_gyroadc_driver_init': 'cold' [-Wmissing-attributes]
     131 |         int init_module(void) __attribute__((alias(#initfn)));
         |             ^~~~~~~~~~~
   include/linux/device.h:1504:1: note: in expansion of macro 'module_init'
    1504 | module_init(__driver##_init); \
         | ^~~~~~~~~~~
   include/linux/platform_device.h:228:9: note: in expansion of macro 'module_driver'
     228 |         module_driver(__platform_driver, platform_driver_register, \
         |         ^~~~~~~~~~~~~
   drivers/iio/adc/rcar-gyroadc.c:628:1: note: in expansion of macro 'module_platform_driver'
     628 | module_platform_driver(rcar_gyroadc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/platform_device.h:14,
                    from drivers/iio/adc/rcar-gyroadc.c:18:
   drivers/iio/adc/rcar-gyroadc.c:628:24: note: 'init_module' target declared here
     628 | module_platform_driver(rcar_gyroadc_driver);
         |                        ^~~~~~~~~~~~~~~~~~~
   include/linux/device.h:1500:19: note: in definition of macro 'module_driver'
    1500 | static int __init __driver##_init(void) \
         |                   ^~~~~~~~
   drivers/iio/adc/rcar-gyroadc.c:628:1: note: in expansion of macro 'module_platform_driver'
     628 | module_platform_driver(rcar_gyroadc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
>> drivers/iio/adc/rcar-gyroadc.c:300:34: warning: 'rcar_gyroadc_child_match' defined but not used [-Wunused-const-variable=]
     300 | static const struct of_device_id rcar_gyroadc_child_match[] = {
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/rcar_gyroadc_child_match +300 drivers/iio/adc/rcar-gyroadc.c

059c53b3232960 Marek Vasut 2017-01-28  299  
059c53b3232960 Marek Vasut 2017-01-28 @300  static const struct of_device_id rcar_gyroadc_child_match[] = {
059c53b3232960 Marek Vasut 2017-01-28  301  	/* Mode 1 ADCs */
059c53b3232960 Marek Vasut 2017-01-28  302  	{
059c53b3232960 Marek Vasut 2017-01-28  303  		.compatible	= "fujitsu,mb88101a",
059c53b3232960 Marek Vasut 2017-01-28  304  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_1_MB88101A,
059c53b3232960 Marek Vasut 2017-01-28  305  	},
059c53b3232960 Marek Vasut 2017-01-28  306  	/* Mode 2 ADCs */
059c53b3232960 Marek Vasut 2017-01-28  307  	{
059c53b3232960 Marek Vasut 2017-01-28  308  		.compatible	= "ti,adcs7476",
059c53b3232960 Marek Vasut 2017-01-28  309  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_2_ADCS7476,
059c53b3232960 Marek Vasut 2017-01-28  310  	}, {
059c53b3232960 Marek Vasut 2017-01-28  311  		.compatible	= "ti,adc121",
059c53b3232960 Marek Vasut 2017-01-28  312  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_2_ADCS7476,
059c53b3232960 Marek Vasut 2017-01-28  313  	}, {
059c53b3232960 Marek Vasut 2017-01-28  314  		.compatible	= "adi,ad7476",
059c53b3232960 Marek Vasut 2017-01-28  315  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_2_ADCS7476,
059c53b3232960 Marek Vasut 2017-01-28  316  	},
059c53b3232960 Marek Vasut 2017-01-28  317  	/* Mode 3 ADCs */
059c53b3232960 Marek Vasut 2017-01-28  318  	{
059c53b3232960 Marek Vasut 2017-01-28  319  		.compatible	= "maxim,max1162",
059c53b3232960 Marek Vasut 2017-01-28  320  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_3_MAX1162,
059c53b3232960 Marek Vasut 2017-01-28  321  	}, {
059c53b3232960 Marek Vasut 2017-01-28  322  		.compatible	= "maxim,max11100",
059c53b3232960 Marek Vasut 2017-01-28  323  		.data		= (void *)RCAR_GYROADC_MODE_SELECT_3_MAX1162,
059c53b3232960 Marek Vasut 2017-01-28  324  	},
059c53b3232960 Marek Vasut 2017-01-28  325  	{ /* sentinel */ }
059c53b3232960 Marek Vasut 2017-01-28  326  };
059c53b3232960 Marek Vasut 2017-01-28  327  

:::::: The code at line 300 was first introduced by commit
:::::: 059c53b3232960cfd38cc46de0a7bedd642021f5 iio: adc: Add Renesas GyroADC driver

:::::: TO: Marek Vasut <marek.vasut+renesas@...il.com>
:::::: CC: Jonathan Cameron <jic23@...nel.org>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ