All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7400/15362] drivers/hid/hid-logitech-headset.c:139:17: sparse: sparse: Initializer entry defined twice
@ 2026-12-03 22:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03 22:08 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "sparse: Initializer entry defined twice"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: "Méven Car" <meven29@gmail.com>
CC: Jiri Kosina <jikos@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0b5bb03d26a268f2606e3f574b277a1105136328
commit: eaefbfc33fc582a8a2daf4106b8305496831e5f8 [7400/15362] HID: logitech-headset: add a battery driver for the PRO X 2
:::::: branch date: 3 hours ago
:::::: commit date: 2 weeks ago
config: parisc-randconfig-r2301-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203230801.GuFm2lDG-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.5.0
sparse: v0.6.5-rc1-94-g0d159c10
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203230801.GuFm2lDG-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/r/20261203230801.GuFm2lDG-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/hid/hid-logitech-headset.c:139:17: sparse: sparse: Initializer entry defined twice
   drivers/hid/hid-logitech-headset.c:139:17: sparse:   also defined here

vim +139 drivers/hid/hid-logitech-headset.c

eaefbfc33fc582 Méven Car 2026-10-16  133  
eaefbfc33fc582 Méven Car 2026-10-16  134  static int logi_headset_ask(struct logi_headset *headset)
eaefbfc33fc582 Méven Car 2026-10-16  135  {
eaefbfc33fc582 Méven Car 2026-10-16  136  	u8 *frame;
eaefbfc33fc582 Méven Car 2026-10-16  137  	int ret;
eaefbfc33fc582 Méven Car 2026-10-16  138  
eaefbfc33fc582 Méven Car 2026-10-16 @139  	frame = kzalloc(LOGI_HEADSET_FRAME_SIZE, GFP_KERNEL);
eaefbfc33fc582 Méven Car 2026-10-16  140  	if (!frame)
eaefbfc33fc582 Méven Car 2026-10-16  141  		return -ENOMEM;
eaefbfc33fc582 Méven Car 2026-10-16  142  
eaefbfc33fc582 Méven Car 2026-10-16  143  	memcpy(frame, logi_headset_battery_request,
eaefbfc33fc582 Méven Car 2026-10-16  144  	       sizeof(logi_headset_battery_request));
eaefbfc33fc582 Méven Car 2026-10-16  145  
eaefbfc33fc582 Méven Car 2026-10-16  146  	/* Same fallback as hidraw, for a device without an interrupt out endpoint. */
eaefbfc33fc582 Méven Car 2026-10-16  147  	ret = hid_hw_output_report(headset->hdev, frame, LOGI_HEADSET_FRAME_SIZE);
eaefbfc33fc582 Méven Car 2026-10-16  148  	if (ret == -ENOSYS)
eaefbfc33fc582 Méven Car 2026-10-16  149  		ret = hid_hw_raw_request(headset->hdev, frame[0], frame,
eaefbfc33fc582 Méven Car 2026-10-16  150  					 LOGI_HEADSET_FRAME_SIZE,
eaefbfc33fc582 Méven Car 2026-10-16  151  					 HID_OUTPUT_REPORT, HID_REQ_SET_REPORT);
eaefbfc33fc582 Méven Car 2026-10-16  152  	kfree(frame);
eaefbfc33fc582 Méven Car 2026-10-16  153  
eaefbfc33fc582 Méven Car 2026-10-16  154  	return ret;
eaefbfc33fc582 Méven Car 2026-10-16  155  }
eaefbfc33fc582 Méven Car 2026-10-16  156  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-03 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 22:08 [linux-next:master 7400/15362] drivers/hid/hid-logitech-headset.c:139:17: sparse: sparse: Initializer entry defined twice kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.