Merge tag 'nfs-for-5.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[linux-2.6-microblaze.git] / fs / nfs / nfs4proc.c
index 8e03a64..0ce04e0 100644 (file)
@@ -5319,7 +5319,7 @@ static int nfs4_read_done(struct rpc_task *task, struct nfs_pgio_header *hdr)
                                    nfs4_read_done_cb(task, hdr);
 }
 
-#ifdef CONFIG_NFS_V4_2
+#if defined CONFIG_NFS_V4_2 && defined CONFIG_NFS_V4_2_READ_PLUS
 static void nfs42_read_plus_support(struct nfs_pgio_header *hdr,
                                    struct rpc_message *msg)
 {