Skip to content

Commit

Permalink
selinux: make selinuxfs_mount static
Browse files Browse the repository at this point in the history
It is not referenced outside selinuxfs.c, so remove its extern header
declaration and make it static.

Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
  • Loading branch information
WOnder93 authored and pcmoore committed Jan 12, 2021
1 parent 3c797e5 commit db478cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion security/selinux/include/security.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ extern void selinux_complete_init(void);
extern int selinux_disable(struct selinux_state *state);
extern void exit_sel_fs(void);
extern struct path selinux_null;
extern struct vfsmount *selinuxfs_mount;
extern void selnl_notify_setenforce(int val);
extern void selnl_notify_policyload(u32 seqno);
extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm);
Expand Down
2 changes: 1 addition & 1 deletion security/selinux/selinuxfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ static struct file_system_type sel_fs_type = {
.kill_sb = sel_kill_sb,
};

struct vfsmount *selinuxfs_mount;
static struct vfsmount *selinuxfs_mount;
struct path selinux_null;

static int __init init_sel_fs(void)
Expand Down

0 comments on commit db478cd

Please sign in to comment.