Re: [PATCH 2/2] HID: input: report battery status changes immediately

kernel test robot
2025-08-04T15:35:09Z

Hi José,

kernel test robot noticed the following build warnings:

[auto build test WARNING on hid/for-next]
[also build test WARNING on linus/master v6.16 next-20250804]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Jos-Exp-sito/HID-input-report-battery-status-changes-immediately/20250804-171355
base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
patch link: https://lore.kernel.org/r/20250804091215.6637-2-jose.exposito89%40gmail.com
patch subject: [PATCH 2/2] HID: input: report battery status changes immediately
config: arm-randconfig-004-20250804 (https://download.01.org/0day-ci/archive/20250804/202508042305.PBym6Evd-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250804/202508042305.PBym6Evd-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/202508042305.PBym6Evd-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/hid/hid-input.c:651:13: warning: 'hidinput_update_battery_charge_status' defined but not used [-Wunused-function]
651 | static bool hidinput_update_battery_charge_status(struct hid_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/hidinput_update_battery_charge_status +651 drivers/hid/hid-input.c

581c4484769e69 Dmitry Torokhov 2017-08-01 650
133568dfb5acfa José Expósito 2025-08-04 @651 static bool hidinput_update_battery_charge_status(struct hid_device *dev,
133568dfb5acfa José Expósito 2025-08-04 652 unsigned int usage, int value)
581c4484769e69 Dmitry Torokhov 2017-08-01 653 {
133568dfb5acfa José Expósito 2025-08-04 654 return false;
581c4484769e69 Dmitry Torokhov 2017-08-01 655 }
a608dc1c06397d José Expósito 2022-11-24 656

--
0-DAY CI Kernel Test Service