Re: linux-next: build warnings after merge of the overlayfs tree

From: Amir Goldstein
Date: Wed Mar 08 2017 - 03:44:12 EST


On Wed, Mar 8, 2017 at 1:16 AM, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
> Hi Miklos,
>
> After merging the overlayfs tree, today's linux-next build (powerpc
> ppc64_defconfig) produced these warnings:
>
> fs/overlayfs/inode.c:322:30: warning: 'ovl_i_mutex_key' defined but not used [-Wunused-variable]
> static struct lock_class_key ovl_i_mutex_key[FILESYSTEM_MAX_STACK_DEPTH];
> ^
> fs/overlayfs/inode.c:323:30: warning: 'ovl_i_mutex_dir_key' defined but not used [-Wunused-variable]
> static struct lock_class_key ovl_i_mutex_dir_key[FILESYSTEM_MAX_STACK_DEPTH];
> ^
>
> Introduced by commit
>
> a41471e8eff8 ("ovl: lockdep annotate of nested stacked overlayfs inode lock")
>
> CONFIG_LOCKDEP is not set for this build.
>

Thanks Stephen!

Miklos, I posted v5 of the patch with a fix.