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.h:30:37: error: 'HIDRAW_BUFFER_SIZE' undeclared here (not in a function); did you mean 'HID_MAX_BUFFER_SIZE'?
Date: Fri, 27 Nov 2026 19:14:16 +0100	[thread overview]
Message-ID: <20261127191142.lxhwJp0x-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: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261127/20261127191142.lxhwJp0x-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127191142.lxhwJp0x-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/20261127191142.lxhwJp0x-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/hid/hid-core.c:37:
>> drivers/hid/hidraw.h:30:37: error: 'HIDRAW_BUFFER_SIZE' undeclared here (not in a function); did you mean 'HID_MAX_BUFFER_SIZE'?
      30 |         struct hidraw_report buffer[HIDRAW_BUFFER_SIZE];
         |                                     ^~~~~~~~~~~~~~~~~~
         |                                     HID_MAX_BUFFER_SIZE
--
>> drivers/hid/hidraw.c:34:8: error: redefinition of 'struct hidraw'
      34 | struct hidraw {
         |        ^~~~~~
   In file included from drivers/hid/hidraw.c:32:
   drivers/hid/hidraw.h:12:8: note: originally defined here
      12 | struct hidraw {
         |        ^~~~~~
>> drivers/hid/hidraw.c:45:8: error: redefinition of 'struct hidraw_report'
      45 | struct hidraw_report {
         |        ^~~~~~~~~~~~~
   drivers/hid/hidraw.h:24:8: note: originally defined here
      24 | struct hidraw_report {
         |        ^~~~~~~~~~~~~
>> drivers/hid/hidraw.c:50:8: error: redefinition of 'struct hidraw_list'
      50 | struct hidraw_list {
         |        ^~~~~~~~~~~
   drivers/hid/hidraw.h:29:8: note: originally defined here
      29 | struct hidraw_list {
         |        ^~~~~~~~~~~
   In file included from <command-line>:
   drivers/hid/hidraw.c: In function 'drop_ref':
>> include/linux/stddef.h:16:33: error: 'struct hidraw' has no member named 'rcu'
      16 | #define offsetof(TYPE, MEMBER)  __builtin_offsetof(TYPE, MEMBER)
         |                                 ^~~~~~~~~~~~~~~~~~
   include/linux/compiler_types.h:682:23: note: in definition of macro '__compiletime_assert'
     682 |                 if (!(condition))                                       \
         |                       ^~~~~~~~~
   include/linux/compiler_types.h:702:9: note: in expansion of macro '_compiletime_assert'
     702 |         _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |         ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:40:37: note: in expansion of macro 'compiletime_assert'
      40 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:51:9: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      51 |         BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |         ^~~~~~~~~~~~~~~~
   include/linux/rcupdate.h:1123:17: note: in expansion of macro 'BUILD_BUG_ON'
    1123 |                 BUILD_BUG_ON(offsetof(typeof(*(ptr)), kvrhf) >= 4096);  \
         |                 ^~~~~~~~~~~~
   include/linux/rcupdate.h:1123:30: note: in expansion of macro 'offsetof'
    1123 |                 BUILD_BUG_ON(offsetof(typeof(*(ptr)), kvrhf) >= 4096);  \
         |                              ^~~~~~~~
   include/linux/rcupdate.h:1084:29: note: in expansion of macro 'kvfree_rcu_arg_2'
    1084 | #define kfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf)
         |                             ^~~~~~~~~~~~~~~~
   drivers/hid/hidraw.c:385:25: note: in expansion of macro 'kfree_rcu'
     385 |                         kfree_rcu(hidraw, rcu);
         |                         ^~~~~~~~~
   In file included from include/linux/rbtree.h:24,
                    from include/linux/mm_types.h:11,
                    from include/linux/mmzone.h:22,
                    from include/linux/gfp.h:7,
                    from include/linux/xarray.h:16,
                    from include/linux/list_lru.h:14,
                    from include/linux/fs/super_types.h:7,
                    from include/linux/fs/super.h:5,
                    from include/linux/fs.h:5,
                    from drivers/hid/hidraw.c:16:
>> include/linux/rcupdate.h:1124:61: error: 'struct hidraw' has no member named 'rcu'
    1124 |                 ___head = (struct kvfree_rcu_head *) &(___p)->kvrhf;    \
         |                                                             ^~
   include/linux/rcupdate.h:1084:29: note: in expansion of macro 'kvfree_rcu_arg_2'
    1084 | #define kfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf)
         |                             ^~~~~~~~~~~~~~~~
   drivers/hid/hidraw.c:385:25: note: in expansion of macro 'kfree_rcu'
     385 |                         kfree_rcu(hidraw, rcu);
         |                         ^~~~~~~~~


vim +30 drivers/hid/hidraw.h

86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  28  
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  29  struct hidraw_list {
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14 @30  	struct hidraw_report buffer[HIDRAW_BUFFER_SIZE];
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  31  	int head;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  32  	int tail;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  33  	struct fasync_struct *fasync;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  34  	struct hidraw *hidraw;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  35  	struct list_head node;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  36  	struct mutex read_mutex;
b31c9d9dc343146 include/linux/hidraw.h Peter Hutterer 2024-08-27  37  	bool revoked;
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  38  };
86166b7bcda0bcb include/linux/hidraw.h Jiri Kosina    2007-05-14  39  

:::::: The code at line 30 was first introduced by commit
:::::: 86166b7bcda0bcb53525114fa1c87ac432be478e HID: add hidraw interface

:::::: TO: Jiri Kosina <jkosina@suse.cz>
:::::: CC: Jiri Kosina <jkosina@suse.cz>

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

                 reply	other threads:[~2026-11-27 18:14 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=20261127191142.lxhwJp0x-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