From: Andrew Morton In file included from include/linux/spinlock_types.h:18, from include/linux/spinlock.h:79, from include/linux/seqlock.h:29, from include/linux/time.h:7, from include/linux/stat.h:60, from include/linux/module.h:10, from include/linux/crypto.h:21, from arch/i386/kernel/asm-offsets.c:7: include/linux/lockdep.h:328: warning: 'struct lockdep_map' declared inside parameter list include/linux/lockdep.h:328: warning: its scope is only this definition or declaration, which is probably not what you want Dunno why I bothered writing that SubmitChecklist thing. Cc: Ingo Molnar Cc: Jason Baron Cc: Peter Zijlstra Signed-off-by: Andrew Morton --- Kconfig.debug | 0 include/linux/lockdep.h | 1 + 2 files changed, 1 insertion(+) diff -puN include/linux/lockdep.h~lockstat-core-infrastructure-fix include/linux/lockdep.h --- a/include/linux/lockdep.h~lockstat-core-infrastructure-fix +++ a/include/linux/lockdep.h @@ -9,6 +9,7 @@ #define __LINUX_LOCKDEP_H struct task_struct; +struct lockdep_map; #ifdef CONFIG_LOCKDEP diff -puN kernel/lockdep.c~lockstat-core-infrastructure-fix kernel/lockdep.c diff -puN kernel/sysctl.c~lockstat-core-infrastructure-fix kernel/sysctl.c diff -puN lib/Kconfig.debug~lockstat-core-infrastructure-fix lib/Kconfig.debug _