diff options
author | Arnd Bergmann <arnd@arndb.de> | 2023-03-29 11:02:41 +0300 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-04-13 21:49:35 +0300 |
commit | b3f312c4815d7acf6c7f88f921544626c31bd24a (patch) | |
tree | d6c5b060e0f094364e2bd776175f19f34dc6abc2 /io_uring | |
parent | 48fe8ab8d5a39c7bc49cb41d0ad92c75f48a9550 (diff) | |
download | linux-b3f312c4815d7acf6c7f88f921544626c31bd24a.tar.xz |
mm: compaction: remove incorrect #ifdef checks
Without CONFIG_SYSCTL, the compiler warns about a few unused functions:
mm/compaction.c:3076:12: error: 'proc_dointvec_minmax_warn_RT_change' defined but not used [-Werror=unused-function]
mm/compaction.c:2780:12: error: 'sysctl_compaction_handler' defined but not used [-Werror=unused-function]
mm/compaction.c:2750:12: error: 'compaction_proactiveness_sysctl_handler' defined but not used [-Werror=unused-function]
The #ifdef is actually not necessary here, as the alternative
register_sysctl_init() stub function does not use its argument, which
lets the compiler drop the rest implicitly, while avoiding the warning.
Fixes: c521126610c3 ("mm: compaction: move compaction sysctl to its own file")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions