Commit b3f312c
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: c521126 ("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>1 parent 48fe8ab commit b3f312c
1 file changed
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3080 | 3080 | | |
3081 | 3081 | | |
3082 | 3082 | | |
3083 | | - | |
3084 | 3083 | | |
3085 | 3084 | | |
3086 | 3085 | | |
| |||
3118 | 3117 | | |
3119 | 3118 | | |
3120 | 3119 | | |
3121 | | - | |
3122 | 3120 | | |
3123 | 3121 | | |
3124 | 3122 | | |
| |||
3135 | 3133 | | |
3136 | 3134 | | |
3137 | 3135 | | |
3138 | | - | |
3139 | 3136 | | |
3140 | | - | |
3141 | 3137 | | |
3142 | 3138 | | |
3143 | 3139 | | |
| |||
0 commit comments