Commit 1ae8f40767a3afc6244719a2c8fbcf546767d5b0

Authored by Adrian Bunk
Committed by Linus Torvalds
1 parent 8d9067bda9

[PATCH] security/: possible cleanups

make needlessly global code static

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 3 changed files with 2 additions and 3 deletions Side-by-side Diff

security/keys/internal.h
... ... @@ -25,7 +25,6 @@
25 25 #define kdebug(FMT, a...) do {} while(0)
26 26 #endif
27 27  
28   -extern struct key_type key_type_dead;
29 28 extern struct key_type key_type_user;
30 29  
31 30 /*****************************************************************************/
... ... @@ -36,7 +36,7 @@
36 36 DECLARE_RWSEM(key_construction_sem);
37 37  
38 38 /* any key who's type gets unegistered will be re-typed to this */
39   -struct key_type key_type_dead = {
  39 +static struct key_type key_type_dead = {
40 40 .name = "dead",
41 41 };
42 42  
security/keys/keyring.c
... ... @@ -68,7 +68,7 @@
68 68 * semaphore to serialise link/link calls to prevent two link calls in parallel
69 69 * introducing a cycle
70 70 */
71   -DECLARE_RWSEM(keyring_serialise_link_sem);
  71 +static DECLARE_RWSEM(keyring_serialise_link_sem);
72 72  
73 73 /*****************************************************************************/
74 74 /*