Linux Input/HID development
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jiri Kosina <jkosina@suse.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-input@vger.kernel.org
Subject: [hid:for-next 4/10] drivers/hid/hidraw.c:34:8: error: redefinition of 'hidraw'
Date: Fri, 27 Nov 2026 16:38:30 +0100	[thread overview]
Message-ID: <20261127163239.RGvemhVL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next
head:   e61d3737e144924bc27c536a31da8147f1b55554
commit: 3203bc9bc0795c44c25ce7b7762eeb35f73e82c4 [4/10] Merge branch 'for-7.4/upstream-fixes' into for-next
config: hexagon-randconfig-2200-20261127 (https://download.01.org/0day-ci/archive/20261127/20261127163239.RGvemhVL-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 578b1f2d6a9776b63cbb6b86f4cca6208d429f48)
smatch: v0.5.0-9187-g5189e3fb
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127163239.RGvemhVL-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/20261127163239.RGvemhVL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/hid/hidraw.c:34:8: error: redefinition of 'hidraw'
      34 | struct hidraw {
         |        ^
   drivers/hid/hidraw.h:12:8: note: previous definition is here
      12 | struct hidraw {
         |        ^
>> drivers/hid/hidraw.c:45:8: error: redefinition of 'hidraw_report'
      45 | struct hidraw_report {
         |        ^
   drivers/hid/hidraw.h:24:8: note: previous definition is here
      24 | struct hidraw_report {
         |        ^
>> drivers/hid/hidraw.c:50:8: error: redefinition of 'hidraw_list'
      50 | struct hidraw_list {
         |        ^
   drivers/hid/hidraw.h:29:8: note: previous definition is here
      29 | struct hidraw_list {
         |        ^
   3 errors generated.


vim +/hidraw +34 drivers/hid/hidraw.c

bed04b3b8a67df Dmitry Torokhov 2026-10-16  33  
bed04b3b8a67df Dmitry Torokhov 2026-10-16 @34  struct hidraw {
bed04b3b8a67df Dmitry Torokhov 2026-10-16  35  	unsigned int minor;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  36  	int exist;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  37  	int open;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  38  	wait_queue_head_t wait;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  39  	struct hid_device *hid;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  40  	struct device *dev;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  41  	spinlock_t list_lock;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  42  	struct list_head list;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  43  };
bed04b3b8a67df Dmitry Torokhov 2026-10-16  44  
bed04b3b8a67df Dmitry Torokhov 2026-10-16 @45  struct hidraw_report {
bed04b3b8a67df Dmitry Torokhov 2026-10-16  46  	__u8 *value;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  47  	int len;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  48  };
86166b7bcda0bc Jiri Kosina     2007-05-14  49  
bed04b3b8a67df Dmitry Torokhov 2026-10-16 @50  struct hidraw_list {
bed04b3b8a67df Dmitry Torokhov 2026-10-16  51  	struct hidraw_report buffer[HIDRAW_BUFFER_SIZE];
bed04b3b8a67df Dmitry Torokhov 2026-10-16  52  	int head;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  53  	int tail;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  54  	struct fasync_struct *fasync;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  55  	struct hidraw *hidraw;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  56  	struct list_head node;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  57  	struct mutex read_mutex;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  58  	bool revoked;
bed04b3b8a67df Dmitry Torokhov 2026-10-16  59  };
86166b7bcda0bc Jiri Kosina     2007-05-14  60  

:::::: The code at line 34 was first introduced by commit
:::::: bed04b3b8a67dff3fb9157bb92f1ae45343492f7 HID: hidraw: Make hidraw.h private to HID subsystem

:::::: TO: Dmitry Torokhov <dmitry.torokhov@gmail.com>
:::::: CC: Jiri Kosina <jkosina@suse.com>

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

                 reply	other threads:[~2026-11-27 15:38 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=20261127163239.RGvemhVL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jkosina@suse.com \
    --cc=linux-input@vger.kernel.org \
    --cc=oe-kbuild-all@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox