Skip to content

Commit b1a6dc2

Browse files
jtlaytonsmfrench
authored andcommitted
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: Shirish Pargaonkar <shirishpargaonkar@gmail.com> Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com>
1 parent ee13b2b commit b1a6dc2

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

‎fs/cifs/cifsacl.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static const struct cifs_sid sid_authusers = {
4242
/* group users */
4343
static const struct cifs_sid sid_user = {1, 2 , {0, 0, 0, 0, 0, 5}, {} };
4444

45-
const struct cred *root_cred;
45+
static const struct cred *root_cred;
4646

4747
static void
4848
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)
187187
kfree(key->payload.data);
188188
}
189189

190-
struct key_type cifs_idmap_key_type = {
190+
static struct key_type cifs_idmap_key_type = {
191191
.name = "cifs.idmap",
192192
.instantiate = cifs_idmap_key_instantiate,
193193
.destroy = cifs_idmap_key_destroy,

‎fs/cifs/cifsacl.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,4 @@ struct cifs_sid_id {
109109
struct cifs_sid sid;
110110
};
111111

112-
#ifdef __KERNEL__
113-
extern struct key_type cifs_idmap_key_type;
114-
extern const struct cred *root_cred;
115-
#endif /* KERNEL */
116-
117112
#endif /* _CIFSACL_H */

0 commit comments

Comments
 (0)