diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index ebbf3b6b24577128c3182072d34933770d56e644..e3611b55531b8dac391c61c2ad3e32f9117b9ad3 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -605,7 +605,7 @@ nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, struct nfs4_ac
 	return error;
 }
 
-#endif /* defined(CONFIG_NFS_V4) */
+#endif /* defined(CONFIG_NFSD_V4) */
 
 #ifdef CONFIG_NFSD_V3
 /*