Skip to content

Commit

Permalink
Smack: Three symbols that should be static
Browse files Browse the repository at this point in the history
The kbuild test robot reported a couple of these,
and the third showed up by inspection. Making the
symbols static is proper.

Reported-by: Fengguang Wu <[email protected]>
Signed-off-by: Casey Schaufler <[email protected]>
  • Loading branch information
cschaufler committed Jul 31, 2015
1 parent 21abb1e commit 1eddfe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static struct smack_known *smk_fetch(const char *name, struct inode *ip,
*
* Returns the new blob or NULL if there's no memory available
*/
struct inode_smack *new_inode_smack(struct smack_known *skp)
static struct inode_smack *new_inode_smack(struct smack_known *skp)
{
struct inode_smack *isp;

Expand Down Expand Up @@ -4516,7 +4516,7 @@ static int smack_inode_getsecctx(struct inode *inode, void **ctx, u32 *ctxlen)
return 0;
}

struct security_hook_list smack_hooks[] = {
static struct security_hook_list smack_hooks[] = {
LSM_HOOK_INIT(ptrace_access_check, smack_ptrace_access_check),
LSM_HOOK_INIT(ptrace_traceme, smack_ptrace_traceme),
LSM_HOOK_INIT(syslog, smack_syslog),
Expand Down
2 changes: 1 addition & 1 deletion security/smack/smackfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct smack_master_list {
struct smack_rule *smk_rule;
};

LIST_HEAD(smack_rule_list);
static LIST_HEAD(smack_rule_list);

struct smack_parsed_rule {
struct smack_known *smk_subject;
Expand Down

0 comments on commit 1eddfe8

Please sign in to comment.