]> www.infradead.org Git - users/dwmw2/linux.git/commit
orangefs: Move s_kmod_keyword_mask_map to orangefs-debugfs.c
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 5 Mar 2025 20:47:26 +0000 (20:47 +0000)
committerChristian Brauner <brauner@kernel.org>
Thu, 6 Mar 2025 08:26:06 +0000 (09:26 +0100)
commit50fb0a7f43c0ada5414a6d3e3f49e2109693c06c
treeb53e9a5f0548fbe59da3f5ee7faee5371f1f3cd0
parent062e8093592fb866b8e016641a8b27feb6ac509d
orangefs: Move s_kmod_keyword_mask_map to orangefs-debugfs.c

Attempting to build orangefs with W=1 currently reports errors like:

In file included from ../fs/orangefs/protocol.h:287,
                 from ../fs/orangefs/waitqueue.c:16:
../fs/orangefs/orangefs-debug.h:86:18: error: ‘num_kmod_keyword_mask_map’ defined but not used [-Werror=unused-const-variable=]

Move num_kmod_keyword_mask_map, s_kmod_keyword_mask_map and
struct __keyword_mask_s to orangefs-debugfs.c which is the only file
they're used in.

Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250305204734.1475264-3-willy@infradead.org
Tested-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/orangefs/orangefs-debug.h
fs/orangefs/orangefs-debugfs.c