diff options
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index abe808a52d97..3f7dbc410e3a 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -1053,7 +1053,9 @@ struct nfsd4_operation { | |||
1053 | 1053 | ||
1054 | static struct nfsd4_operation nfsd4_ops[]; | 1054 | static struct nfsd4_operation nfsd4_ops[]; |
1055 | 1055 | ||
1056 | #ifdef NFSD_DEBUG | ||
1056 | static const char *nfsd4_op_name(unsigned opnum); | 1057 | static const char *nfsd4_op_name(unsigned opnum); |
1058 | #endif | ||
1057 | 1059 | ||
1058 | /* | 1060 | /* |
1059 | * Enforce NFSv4.1 COMPOUND ordering rules: | 1061 | * Enforce NFSv4.1 COMPOUND ordering rules: |
@@ -1714,12 +1716,14 @@ static struct nfsd4_operation nfsd4_ops[] = { | |||
1714 | }, | 1716 | }, |
1715 | }; | 1717 | }; |
1716 | 1718 | ||
1719 | #ifdef NFSD_DEBUG | ||
1717 | static const char *nfsd4_op_name(unsigned opnum) | 1720 | static const char *nfsd4_op_name(unsigned opnum) |
1718 | { | 1721 | { |
1719 | if (opnum < ARRAY_SIZE(nfsd4_ops)) | 1722 | if (opnum < ARRAY_SIZE(nfsd4_ops)) |
1720 | return nfsd4_ops[opnum].op_name; | 1723 | return nfsd4_ops[opnum].op_name; |
1721 | return "unknown_operation"; | 1724 | return "unknown_operation"; |
1722 | } | 1725 | } |
1726 | #endif | ||
1723 | 1727 | ||
1724 | #define nfsd4_voidres nfsd4_voidargs | 1728 | #define nfsd4_voidres nfsd4_voidargs |
1725 | struct nfsd4_voidargs { int dummy; }; | 1729 | struct nfsd4_voidargs { int dummy; }; |