]> git.ipfire.org Git - thirdparty/linux.git/commit
fuse: use private naming for fuse hash size
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Jan 2026 12:25:28 +0000 (05:25 -0700)
committerChristian Brauner <brauner@kernel.org>
Fri, 16 Jan 2026 09:55:44 +0000 (10:55 +0100)
commit4973d95679fb4f8bb4413dcb3bce435ef848285d
tree37449d3239d1bb04028dcf7db78f7904002baecd
parente93b31d0816201f9fd8daeaf69d6db99463d3e05
fuse: use private naming for fuse hash size

With a mix of include dependencies, the compiler warns that:

fs/fuse/dir.c:35:9: warning: ?HASH_BITS? redefined
   35 | #define HASH_BITS       5
      |         ^~~~~~~~~
In file included from ./include/linux/io_uring_types.h:5,
                 from ./include/linux/bpf.h:34,
                 from ./include/linux/security.h:35,
                 from ./include/linux/fs_context.h:14,
                 from fs/fuse/dir.c:13:
./include/linux/hashtable.h:28:9: note: this is the location of the previous definition
   28 | #define HASH_BITS(name) ilog2(HASH_SIZE(name))
      |         ^~~~~~~~~
fs/fuse/dir.c:36:9: warning: ?HASH_SIZE? redefined
   36 | #define HASH_SIZE       (1 << HASH_BITS)
      |         ^~~~~~~~~
./include/linux/hashtable.h:27:9: note: this is the location of the previous definition
   27 | #define HASH_SIZE(name) (ARRAY_SIZE(name))
      |         ^~~~~~~~~

Hence rename the HASH_SIZE/HASH_BITS in fuse, by prefixing them with
FUSE_ instead.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Link: https://patch.msgid.link/195c9525-281c-4302-9549-f3d9259416c6@kernel.dk
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/fuse/dir.c