fs/ext4/super.c:2054:1: error: unused function 'ctx_set_flags'

From: kernel test robot
Date: Fri Aug 30 2024 - 15:04:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 20371ba120635d9ab7fc7670497105af8f33eb08
commit: 1ff20307393e17dc57fde62226df625a3a3c36e9 ext4: unconditionally enable the i_version counter
date: 1 year, 11 months ago
config: x86_64-sof-customedconfig-amd-defconfig (https://download.01.org/0day-ci/archive/20240831/202408310303.6OpqRWeH-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240831/202408310303.6OpqRWeH-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202408310303.6OpqRWeH-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

fs/ext4/super.c:1750:19: error: unused variable 'deprecated_msg' [-Werror,-Wunused-const-variable]
1750 | static const char deprecated_msg[] =
| ^~~~~~~~~~~~~~
>> fs/ext4/super.c:2054:1: error: unused function 'ctx_set_flags' [-Werror,-Wunused-function]
2054 | EXT4_SET_CTX(flags); /* set only */
| ^~~~~~~~~~~~~~~~~~~
fs/ext4/super.c:2032:20: note: expanded from macro 'EXT4_SET_CTX'
2032 | static inline void ctx_set_##name(struct ext4_fs_context *ctx, \
| ^~~~~~~~~~~~~~
<scratch space>:56:1: note: expanded from here
56 | ctx_set_flags
| ^~~~~~~~~~~~~
2 errors generated.


vim +/ctx_set_flags +2054 fs/ext4/super.c

6e47a3cc68fc52 Lukas Czerner 2021-10-27 2053
e3952fcce1aad9 Lukas Czerner 2022-02-01 @2054 EXT4_SET_CTX(flags); /* set only */
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2055 EXT4_SET_CTX(mount_opt);
e3952fcce1aad9 Lukas Czerner 2022-02-01 2056 EXT4_CLEAR_CTX(mount_opt);
e3952fcce1aad9 Lukas Czerner 2022-02-01 2057 EXT4_TEST_CTX(mount_opt);
6e47a3cc68fc52 Lukas Czerner 2021-10-27 2058 EXT4_SET_CTX(mount_opt2);
e3952fcce1aad9 Lukas Czerner 2022-02-01 2059 EXT4_CLEAR_CTX(mount_opt2);
e3952fcce1aad9 Lukas Czerner 2022-02-01 2060 EXT4_TEST_CTX(mount_opt2);
e3952fcce1aad9 Lukas Czerner 2022-02-01 2061

:::::: The code at line 2054 was first introduced by commit
:::::: e3952fcce1aad934f1322843b564ff86256444b2 ext4: fix remount with 'abort' option

:::::: TO: Lukas Czerner <lczerner@xxxxxxxxxx>
:::::: CC: Theodore Ts'o <tytso@xxxxxxx>

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