* drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used
@ 2024-12-28 2:56 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-12-28 2:56 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: oe-kbuild-all, linux-kernel, Lee Jones, Gwendal Grignou
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fd0584d220fe285dc45be43eede55df89ad6a3d9
commit: 47f11e0b40e97f373da4efbacee0a9526c816ed5 mfd / platform: cros_ec: Move cros-ec core driver out from MFD
date: 5 years ago
config: sparc-randconfig-002-20241212 (https://download.01.org/0day-ci/archive/20241228/202412281020.IX2iXHrC-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241228/202412281020.IX2iXHrC-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412281020.IX2iXHrC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used [-Wunused-const-variable=]
261 | static const struct acpi_device_id cbas_ec_acpi_ids[] = {
| ^~~~~~~~~~~~~~~~
--
drivers/power/supply/cros_usbpd-charger.c: In function 'cros_usbpd_charger_probe':
>> drivers/power/supply/cros_usbpd-charger.c:15:49: warning: '%d' directive writing between 1 and 11 bytes into a region of size 5 [-Wformat-overflow=]
15 | #define CHARGER_USBPD_DIR_NAME "CROS_USBPD_CHARGER%d"
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/power/supply/cros_usbpd-charger.c:656:45: note: in expansion of macro 'CHARGER_USBPD_DIR_NAME'
656 | sprintf(port->name, CHARGER_USBPD_DIR_NAME, i);
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/power/supply/cros_usbpd-charger.c:15:68: note: format string is defined here
15 | #define CHARGER_USBPD_DIR_NAME "CROS_USBPD_CHARGER%d"
| ^~
drivers/power/supply/cros_usbpd-charger.c:15:49: note: directive argument in the range [-2147483644, 2147483646]
15 | #define CHARGER_USBPD_DIR_NAME "CROS_USBPD_CHARGER%d"
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/power/supply/cros_usbpd-charger.c:656:45: note: in expansion of macro 'CHARGER_USBPD_DIR_NAME'
656 | sprintf(port->name, CHARGER_USBPD_DIR_NAME, i);
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/power/supply/cros_usbpd-charger.c:656:25: note: 'sprintf' output between 20 and 30 bytes into a destination of size 23
656 | sprintf(port->name, CHARGER_USBPD_DIR_NAME, i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for COMPAT_BINFMT_ELF
Depends on [n]: COMPAT [=y] && BINFMT_ELF [=n]
Selected by [y]:
- COMPAT [=y] && SPARC64 [=y]
vim +/cbas_ec_acpi_ids +261 drivers/hid/hid-google-hammer.c
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 260
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 @261 static const struct acpi_device_id cbas_ec_acpi_ids[] = {
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 262 { "GOOG000B", 0 },
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 263 { }
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 264 };
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 265 MODULE_DEVICE_TABLE(acpi, cbas_ec_acpi_ids);
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 266
:::::: The code at line 261 was first introduced by commit
:::::: eb1aac4c8744f75460c34d71b0c73bebf3e8ee5c HID: google: add support tablet mode switch for Whiskers
:::::: TO: Dmitry Torokhov <dtor@chromium.org>
:::::: CC: Jiri Kosina <jkosina@suse.cz>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used
@ 2025-01-20 3:30 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-01-20 3:30 UTC (permalink / raw)
To: Enric Balletbo i Serra
Cc: oe-kbuild-all, linux-kernel, Lee Jones, Gwendal Grignou
Hi Enric,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ffd294d346d185b70e28b1a28abe367bbfe53c04
commit: 47f11e0b40e97f373da4efbacee0a9526c816ed5 mfd / platform: cros_ec: Move cros-ec core driver out from MFD
date: 5 years ago
config: csky-randconfig-r026-20230823 (https://download.01.org/0day-ci/archive/20250120/202501201141.jctFH5eB-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250120/202501201141.jctFH5eB-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501201141.jctFH5eB-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used [-Wunused-const-variable=]
261 | static const struct acpi_device_id cbas_ec_acpi_ids[] = {
| ^~~~~~~~~~~~~~~~
vim +/cbas_ec_acpi_ids +261 drivers/hid/hid-google-hammer.c
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 260
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 @261 static const struct acpi_device_id cbas_ec_acpi_ids[] = {
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 262 { "GOOG000B", 0 },
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 263 { }
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 264 };
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 265 MODULE_DEVICE_TABLE(acpi, cbas_ec_acpi_ids);
eb1aac4c8744f7 Dmitry Torokhov 2018-10-05 266
:::::: The code at line 261 was first introduced by commit
:::::: eb1aac4c8744f75460c34d71b0c73bebf3e8ee5c HID: google: add support tablet mode switch for Whiskers
:::::: TO: Dmitry Torokhov <dtor@chromium.org>
:::::: CC: Jiri Kosina <jkosina@suse.cz>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-20 3:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-20 3:30 drivers/hid/hid-google-hammer.c:261:36: warning: 'cbas_ec_acpi_ids' defined but not used kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-12-28 2:56 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox