summaryrefslogtreecommitdiff
path: root/net/rxrpc/ar-call.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-03-04 18:53:46 +0300
committerDavid Howells <dhowells@redhat.com>2016-03-04 18:53:46 +0300
commit5b8848d14912d5e9974d5d83d71ed6cba2b49345 (patch)
treea6c02244f92ba6fa0120576001c98e66300a867b /net/rxrpc/ar-call.c
parente721498a63147618283d2a8093664809f300778c (diff)
downloadlinux-5b8848d14912d5e9974d5d83d71ed6cba2b49345.tar.xz
rxrpc: Convert call flag and event numbers into enums
Convert call flag and event numbers into enums and move their definitions outside of the struct. Also move the call state enum outside of the struct and add an extra element to count the number of states. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-call.c')
-rw-r--r--net/rxrpc/ar-call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/ar-call.c b/net/rxrpc/ar-call.c
index a9e05db0f5d5..d9a8eeb9290a 100644
--- a/net/rxrpc/ar-call.c
+++ b/net/rxrpc/ar-call.c
@@ -28,7 +28,7 @@ unsigned rxrpc_max_call_lifetime = 60 * HZ;
*/
unsigned rxrpc_dead_call_expiry = 2 * HZ;
-const char *const rxrpc_call_states[] = {
+const char *const rxrpc_call_states[NR__RXRPC_CALL_STATES] = {
[RXRPC_CALL_CLIENT_SEND_REQUEST] = "ClSndReq",
[RXRPC_CALL_CLIENT_AWAIT_REPLY] = "ClAwtRpl",
[RXRPC_CALL_CLIENT_RECV_REPLY] = "ClRcvRpl",