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: <202312031626.TICxZCaC-lkp@intel.com>
Date:   Sun, 3 Dec 2023 16:35:04 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alan Mizrahi <alan@...rahi.com.ve>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Jacek Anaszewski <jacek.anaszewski@...il.com>
Subject: drivers/leds/leds-apu.c:105:35: warning: 'apu_led_dmi_table' defined
 but not used

Hi Alan,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   968f35f4ab1c0966ceb39af3c89f2e24afedf878
commit: 3faee9423ce07186fc9dcec2981d4eb8af8872bb leds: Add driver for PC Engines APU/APU2 LEDs
date:   6 years ago
config: i386-buildonly-randconfig-001-20231102 (https://download.01.org/0day-ci/archive/20231203/202312031626.TICxZCaC-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/202312031626.TICxZCaC-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/202312031626.TICxZCaC-lkp@intel.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/idr.h:16,
                    from include/linux/kernfs.h:14,
                    from include/linux/sysfs.h:15,
                    from include/linux/kobject.h:21,
                    from include/linux/dmi.h:5,
                    from drivers/leds/leds-apu.c:34:
   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);                             \
         |                                       ^~~
   drivers/leds/leds-apu.c: At top level:
>> drivers/leds/leds-apu.c:105:35: warning: 'apu_led_dmi_table' defined but not used [-Wunused-const-variable=]
     105 | static const struct dmi_system_id apu_led_dmi_table[] __initconst = {
         |                                   ^~~~~~~~~~~~~~~~~


vim +/apu_led_dmi_table +105 drivers/leds/leds-apu.c

   104	
 > 105	static const struct dmi_system_id apu_led_dmi_table[] __initconst = {
   106		{
   107			.ident = "apu",
   108			.matches = {
   109				DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"),
   110				DMI_MATCH(DMI_PRODUCT_NAME, "APU")
   111			}
   112		},
   113		{
   114			.ident = "apu2",
   115			.matches = {
   116				DMI_MATCH(DMI_SYS_VENDOR, "PC Engines"),
   117				DMI_MATCH(DMI_BOARD_NAME, "APU2")
   118			}
   119		},
   120		{}
   121	};
   122	MODULE_DEVICE_TABLE(dmi, apu_led_dmi_table);
   123	

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