mm: fix unused variable kernel warning when SYSCTL=n
authorLuis Chamberlain <mcgrof@kernel.org>
Fri, 15 Apr 2022 22:08:02 +0000 (15:08 -0700)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 21 Apr 2022 18:40:59 +0000 (11:40 -0700)
commit3c6a4cba3138d1aeeb8fd917178c6578b9b8ae29
tree7c1e20b45da8a27e770473fd7ecbe93f49e6c669
parent988f11e046401f8561c4afefa506a50f0203de40
mm: fix unused variable kernel warning when SYSCTL=n

When CONFIG_SYSCTL=n the variable dirty_bytes_min which is just used
as a minimum to a proc handler is not used. So just move this under
the ifdef for CONFIG_SYSCTL.

Fixes: aa779e510219 ("mm: move page-writeback sysctls to their own file")
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
mm/page-writeback.c