aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2024-09-05 19:32:29 +0300
committerTheodore Ts'o <tytso@mit.edu>2024-11-12 23:54:13 -0500
commit667de03a3b5eab4ccf532c6e399fe3488a1db58b (patch)
treeacdf3ed436831ecb9775f159c3dacc6f262eee82 /fs/jbd2/commit.c
parent150c174a6053efc215b7a10b7fbcc869039bb6c3 (diff)
downloadlinux-667de03a3b5eab4ccf532c6e399fe3488a1db58b.tar.gz
linux-667de03a3b5eab4ccf532c6e399fe3488a1db58b.tar.bz2
linux-667de03a3b5eab4ccf532c6e399fe3488a1db58b.zip
ext4: mark ctx_*_flags() with __maybe_unused
When ctx_set_flags() is unused, it prevents kernel builds with clang, `make W=1` and CONFIG_WERROR=y: .../ext4/super.c:2120:1: error: unused function 'ctx_set_flags' [-Werror,-Wunused-function] 2120 | EXT4_SET_CTX(flags); /* set only */ | ^~~~~~~~~~~~~~~~~~~ Fix this by marking ctx_*_flags() with __maybe_unused (mark both for the sake of symmetry). See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static inline functions for W=1 build"). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20240905163229.140522-1-andriy.shevchenko@linux.intel.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions