Commit b1a6dc21 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

cifs: remove uneeded __KERNEL__ block from cifsacl.h

...and make those symbols static in cifsacl.c. Nothing outside
of that file refers to them.
Reviewed-by: default avatarShirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent ee13b2ba
...@@ -42,7 +42,7 @@ static const struct cifs_sid sid_authusers = { ...@@ -42,7 +42,7 @@ static const struct cifs_sid sid_authusers = {
/* group users */ /* group users */
static const struct cifs_sid sid_user = {1, 2 , {0, 0, 0, 0, 0, 5}, {} }; 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 static void
shrink_idmap_tree(struct rb_root *root, int nr_to_scan, int *nr_rem, shrink_idmap_tree(struct rb_root *root, int nr_to_scan, int *nr_rem,
...@@ -187,7 +187,7 @@ cifs_idmap_key_destroy(struct key *key) ...@@ -187,7 +187,7 @@ cifs_idmap_key_destroy(struct key *key)
kfree(key->payload.data); kfree(key->payload.data);
} }
struct key_type cifs_idmap_key_type = { static struct key_type cifs_idmap_key_type = {
.name = "cifs.idmap", .name = "cifs.idmap",
.instantiate = cifs_idmap_key_instantiate, .instantiate = cifs_idmap_key_instantiate,
.destroy = cifs_idmap_key_destroy, .destroy = cifs_idmap_key_destroy,
......
...@@ -109,9 +109,4 @@ struct cifs_sid_id { ...@@ -109,9 +109,4 @@ struct cifs_sid_id {
struct cifs_sid sid; 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 */ #endif /* _CIFSACL_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment