diff options
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 1686dc74c6a9..d3f0f944c0b5 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #endif | 19 | #endif |
20 | 20 | ||
21 | static DEFINE_SPINLOCK(rpc_authflavor_lock); | 21 | static DEFINE_SPINLOCK(rpc_authflavor_lock); |
22 | static struct rpc_authops * auth_flavors[RPC_AUTH_MAXFLAVOR] = { | 22 | static const struct rpc_authops *auth_flavors[RPC_AUTH_MAXFLAVOR] = { |
23 | &authnull_ops, /* AUTH_NULL */ | 23 | &authnull_ops, /* AUTH_NULL */ |
24 | &authunix_ops, /* AUTH_UNIX */ | 24 | &authunix_ops, /* AUTH_UNIX */ |
25 | NULL, /* others can be loadable modules */ | 25 | NULL, /* others can be loadable modules */ |
@@ -33,7 +33,7 @@ pseudoflavor_to_flavor(u32 flavor) { | |||
33 | } | 33 | } |
34 | 34 | ||
35 | int | 35 | int |
36 | rpcauth_register(struct rpc_authops *ops) | 36 | rpcauth_register(const struct rpc_authops *ops) |
37 | { | 37 | { |
38 | rpc_authflavor_t flavor; | 38 | rpc_authflavor_t flavor; |
39 | int ret = -EPERM; | 39 | int ret = -EPERM; |
@@ -50,7 +50,7 @@ rpcauth_register(struct rpc_authops *ops) | |||
50 | } | 50 | } |
51 | 51 | ||
52 | int | 52 | int |
53 | rpcauth_unregister(struct rpc_authops *ops) | 53 | rpcauth_unregister(const struct rpc_authops *ops) |
54 | { | 54 | { |
55 | rpc_authflavor_t flavor; | 55 | rpc_authflavor_t flavor; |
56 | int ret = -EPERM; | 56 | int ret = -EPERM; |
@@ -70,7 +70,7 @@ struct rpc_auth * | |||
70 | rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) | 70 | rpcauth_create(rpc_authflavor_t pseudoflavor, struct rpc_clnt *clnt) |
71 | { | 71 | { |
72 | struct rpc_auth *auth; | 72 | struct rpc_auth *auth; |
73 | struct rpc_authops *ops; | 73 | const struct rpc_authops *ops; |
74 | u32 flavor = pseudoflavor_to_flavor(pseudoflavor); | 74 | u32 flavor = pseudoflavor_to_flavor(pseudoflavor); |
75 | 75 | ||
76 | auth = ERR_PTR(-EINVAL); | 76 | auth = ERR_PTR(-EINVAL); |