Messages in this thread | | | Date | Sat, 4 Dec 2021 12:56:33 +0100 | From | Christian Brauner <> | Subject | Re: [PATCH 1/2] fs/inode: avoid unused-variable warning |
| |
On Fri, Dec 03, 2021 at 08:01:01PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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. > > Fixes: 245314851782 ("fs: move inode sysctls to its own file") > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > ---
Looks good. Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
| |