Skip to content

Commit

Permalink
[PATCH] security/: possible cleanups
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jan 6, 2006
1 parent 8d9067b commit 1ae8f40
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion security/keys/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#define kdebug(FMT, a...) do {} while(0)
#endif

extern struct key_type key_type_dead;
extern struct key_type key_type_user;

/*****************************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion security/keys/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static DECLARE_WORK(key_cleanup_task, key_cleanup, NULL);
DECLARE_RWSEM(key_construction_sem);

/* any key who's type gets unegistered will be re-typed to this */
struct key_type key_type_dead = {
static struct key_type key_type_dead = {
.name = "dead",
};

Expand Down
2 changes: 1 addition & 1 deletion security/keys/keyring.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ struct key_type key_type_keyring = {
* semaphore to serialise link/link calls to prevent two link calls in parallel
* introducing a cycle
*/
DECLARE_RWSEM(keyring_serialise_link_sem);
static DECLARE_RWSEM(keyring_serialise_link_sem);

/*****************************************************************************/
/*
Expand Down

0 comments on commit 1ae8f40

Please sign in to comment.