diff options
Diffstat (limited to 'fs/lockd/svc.c')
-rw-r--r-- | fs/lockd/svc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c index 71a30b416d1a..5e85bde6c123 100644 --- a/fs/lockd/svc.c +++ b/fs/lockd/svc.c | |||
@@ -509,7 +509,7 @@ static struct svc_version * nlmsvc_version[] = { | |||
509 | 509 | ||
510 | static struct svc_stat nlmsvc_stats; | 510 | static struct svc_stat nlmsvc_stats; |
511 | 511 | ||
512 | #define NLM_NRVERS (sizeof(nlmsvc_version)/sizeof(nlmsvc_version[0])) | 512 | #define NLM_NRVERS ARRAY_SIZE(nlmsvc_version) |
513 | static struct svc_program nlmsvc_program = { | 513 | static struct svc_program nlmsvc_program = { |
514 | .pg_prog = NLM_PROGRAM, /* program number */ | 514 | .pg_prog = NLM_PROGRAM, /* program number */ |
515 | .pg_nvers = NLM_NRVERS, /* number of entries in nlmsvc_version */ | 515 | .pg_nvers = NLM_NRVERS, /* number of entries in nlmsvc_version */ |