fs/inode: avoid unused-variable warning
authorArnd Bergmann <arnd@arndb.de>
Thu, 30 Dec 2021 09:29:41 +0000 (20:29 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Jan 2022 01:50:12 +0000 (12:50 +1100)
commitc60f299f60697d81c1b2cb10da7be05465422436
tree4439d9c45aa01fd86200bc460b607609aaf44f91
parent2e6882529317dad92b38f609b2363676136c79ba
fs/inode: avoid unused-variable warning

Now that 'inodes_stat' is marked 'static', it causes a harmless warning
whenever it is unused:

fs/inode.c:73:29: error: 'inodes_stat' defined but not used [-Werror=unused-variable]
   73 | static struct inodes_stat_t inodes_stat;

Move it into the #ifdef that guards its only references.

Link: https://lkml.kernel.org/r/20211203190123.874239-1-arnd@kernel.org
Fixes: 245314851782 ("fs: move inode sysctls to its own file")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
fs/inode.c