Skip to content

Commit aa84442

Browse files
Pekka EnbergIngo Molnar
authored andcommitted
kmemtrace, security: fix linux/key.h header file dependencies
Impact: cleanup We want to remove percpu.h from rcupdate.h (for upcoming kmemtrace changes), but this is not possible currently without breaking the build because key.h has an implicit include file dependency on rwsem.h: CC [M] fs/cifs/cifs_spnego.o In file included from include/keys/user-type.h:15, from fs/cifs/cifs_spnego.c:24: include/linux/key.h:128: error: field ‘sem’ has incomplete type make[2]: *** [fs/cifs/cifs_spnego.o] Error 1 make[1]: *** [fs/cifs] Error 2 make: *** [fs] Error 2 Fix it by making the dependency explicit. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> LKML-Reference: <1237884886.25315.39.camel@penberg-laptop> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 21e5445 commit aa84442

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/key.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/rbtree.h>
2121
#include <linux/rcupdate.h>
2222
#include <linux/sysctl.h>
23+
#include <linux/rwsem.h>
2324
#include <asm/atomic.h>
2425

2526
#ifdef __KERNEL__

0 commit comments

Comments
 (0)