Linux Input/HID development
 help / color / mirror / Atom feed
* [hid:for-next 4/10] drivers/hid/hidraw.c:34:8: error: redefinition of 'hidraw'
@ 2026-11-27 15:38 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-11-27 15:38 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: oe-kbuild-all, linux-input

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

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

only message in thread, other threads:[~2026-11-27 15:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 15:38 [hid:for-next 4/10] drivers/hid/hidraw.c:34:8: error: redefinition of 'hidraw' 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