Commit aa84442d authored by Pekka Enberg's avatar Pekka Enberg Committed by Ingo Molnar

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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <1237884886.25315.39.camel@penberg-laptop>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 21e54459
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/rbtree.h> #include <linux/rbtree.h>
#include <linux/rcupdate.h> #include <linux/rcupdate.h>
#include <linux/sysctl.h> #include <linux/sysctl.h>
#include <linux/rwsem.h>
#include <asm/atomic.h> #include <asm/atomic.h>
#ifdef __KERNEL__ #ifdef __KERNEL__
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment