]> Pileus Git - ~andy/linux/commitdiff
cifs: remove uneeded __KERNEL__ block from cifsacl.h
authorJeff Layton <jlayton@redhat.com>
Sun, 25 Nov 2012 13:00:38 +0000 (08:00 -0500)
committerSteve French <smfrench@gmail.com>
Wed, 5 Dec 2012 19:13:11 +0000 (13:13 -0600)
...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>
fs/cifs/cifsacl.c
fs/cifs/cifsacl.h

index 9adcdb5a10013477627ec493b730b30d84d9c953..42b3fe981a0ab16e7c1bd3b4e50f77e666c8bb2d 100644 (file)
@@ -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,
@@ -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,
index 8b980cd445c048ce6d7c7961ca5bdfe6ffa962ce..249c94f39635a84988d654353b15540e0f7f0828 100644 (file)
@@ -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 */