From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com
Subject: [linux-next:master 7400/15362] drivers/hid/hid-logitech-headset.c:139:17: sparse: sparse: Initializer entry defined twice
Date: Thu, 03 Dec 2026 23:08:44 +0100 [thread overview]
Message-ID: <20261203230801.GuFm2lDG-lkp@intel.com> (raw)
::::::
:::::: 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
reply other threads:[~2026-12-03 22:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203230801.GuFm2lDG-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.