SUNRPC: Add enum svc_auth_status
authorChuck Lever <chuck.lever@oracle.com>
Sun, 30 Jul 2023 00:58:54 +0000 (20:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 29 Aug 2023 21:45:22 +0000 (17:45 -0400)
commit78c542f916bccafffef4f3bec9bc60d7cda548f5
treed50cb1dd414ff4ce2228719e0154dc85b2237725
parentd75e490f35601aae12c7284d3c22684c65fb8354
SUNRPC: Add enum svc_auth_status

In addition to the benefits of using an enum rather than a set of
macros, we now have a named type that can improve static type
checking of function return values.

As part of this change, I removed a stale comment from svcauth.h;
the return values from current implementations of the
auth_ops::release method are all zero/negative errno, not the SVC_OK
enum values as the old comment suggested.

Suggested-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svc.c
fs/nfs/callback.c
include/linux/sunrpc/svc.h
include/linux/sunrpc/svcauth.h
include/trace/events/sunrpc.h
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/svc.c
net/sunrpc/svcauth.c
net/sunrpc/svcauth_unix.c