Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 8, 2017 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 12 lines · Stephen Rothwell

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];
                              ^
Quoted 6 lines

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.