Skip to content

Commit

Permalink
cifs: remove uneeded __KERNEL__ block from cifsacl.h
Browse files Browse the repository at this point in the history
...and make those symbols static in cifsacl.c. Nothing outside
of that file refers to them.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Jeff Layton authored and Steve French committed Dec 5, 2012
1 parent ee13b2b commit b1a6dc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions fs/cifs/cifsacl.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static const struct cifs_sid sid_authusers = {
/* group users */
static const struct cifs_sid sid_user = {1, 2 , {0, 0, 0, 0, 0, 5}, {} };

const struct cred *root_cred;
static const struct cred *root_cred;

static void
shrink_idmap_tree(struct rb_root *root, int nr_to_scan, int *nr_rem,
Expand Down Expand Up @@ -187,7 +187,7 @@ cifs_idmap_key_destroy(struct key *key)
kfree(key->payload.data);
}

struct key_type cifs_idmap_key_type = {
static struct key_type cifs_idmap_key_type = {
.name = "cifs.idmap",
.instantiate = cifs_idmap_key_instantiate,
.destroy = cifs_idmap_key_destroy,
Expand Down
5 changes: 0 additions & 5 deletions fs/cifs/cifsacl.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,4 @@ struct cifs_sid_id {
struct cifs_sid sid;
};

#ifdef __KERNEL__
extern struct key_type cifs_idmap_key_type;
extern const struct cred *root_cred;
#endif /* KERNEL */

#endif /* _CIFSACL_H */

0 comments on commit b1a6dc2

Please sign in to comment.