diff options
| author | Sargun Dhillon <sargun@sargun.me> | 2018-07-05 12:48:50 -0400 |
|---|---|---|
| committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-07-30 13:19:41 -0400 |
| commit | 82b98ca566ca2af170eb0ab50cef09dd7335fa55 (patch) | |
| tree | 10feac49203ef740d43cbf89cdbe0aa6f8fa36a3 /include/linux | |
| parent | 0914bb965e38a055e9245637aed117efbe976e91 (diff) | |
net/sunrpc: Make rpc_auth_create_args a const
This turns rpc_auth_create_args into a const as it gets passed through the
auth stack.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/auth.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index d9af474a857d..58a6765c1c5e 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h | |||
| @@ -125,7 +125,8 @@ struct rpc_authops { | |||
| 125 | struct module *owner; | 125 | struct module *owner; |
| 126 | rpc_authflavor_t au_flavor; /* flavor (RPC_AUTH_*) */ | 126 | rpc_authflavor_t au_flavor; /* flavor (RPC_AUTH_*) */ |
| 127 | char * au_name; | 127 | char * au_name; |
| 128 | struct rpc_auth * (*create)(struct rpc_auth_create_args *, struct rpc_clnt *); | 128 | struct rpc_auth * (*create)(const struct rpc_auth_create_args *, |
| 129 | struct rpc_clnt *); | ||
| 129 | void (*destroy)(struct rpc_auth *); | 130 | void (*destroy)(struct rpc_auth *); |
| 130 | 131 | ||
| 131 | int (*hash_cred)(struct auth_cred *, unsigned int); | 132 | int (*hash_cred)(struct auth_cred *, unsigned int); |
| @@ -174,7 +175,7 @@ struct rpc_cred * rpc_lookup_generic_cred(struct auth_cred *, int, gfp_t); | |||
| 174 | struct rpc_cred * rpc_lookup_machine_cred(const char *service_name); | 175 | struct rpc_cred * rpc_lookup_machine_cred(const char *service_name); |
| 175 | int rpcauth_register(const struct rpc_authops *); | 176 | int rpcauth_register(const struct rpc_authops *); |
| 176 | int rpcauth_unregister(const struct rpc_authops *); | 177 | int rpcauth_unregister(const struct rpc_authops *); |
| 177 | struct rpc_auth * rpcauth_create(struct rpc_auth_create_args *, | 178 | struct rpc_auth * rpcauth_create(const struct rpc_auth_create_args *, |
| 178 | struct rpc_clnt *); | 179 | struct rpc_clnt *); |
| 179 | void rpcauth_release(struct rpc_auth *); | 180 | void rpcauth_release(struct rpc_auth *); |
| 180 | rpc_authflavor_t rpcauth_get_pseudoflavor(rpc_authflavor_t, | 181 | rpc_authflavor_t rpcauth_get_pseudoflavor(rpc_authflavor_t, |
