Skip to content

Commit 009b15b

Browse files
Mike SnitzerAnna Schumaker
authored andcommitted
nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT
The 'default n' that was in NFS_COMMON_LOCALIO_SUPPORT caused these extra defaults to be missed: default y if NFSD=y || NFS_FS=y default m if NFSD=m && NFS_FS=m Remove the 'default n' for NFS_COMMON_LOCALIO_SUPPORT so that the correct tristate is selected based on how NFSD and NFS_FS are configured. This fixes the reported case where NFS_FS=y but NFS_COMMON_LOCALIO_SUPPORT=m, it is now correctly set to =y. In addition, add extra 'depends on NFS_LOCALIO' to NFS_COMMON_LOCALIO_SUPPORT so that if NFS_LOCALIO isn't set then NFS_COMMON_LOCALIO_SUPPORT will not be either. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Mike Snitzer <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 65f2a5c commit 009b15b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ config NFS_COMMON
388388

389389
config NFS_COMMON_LOCALIO_SUPPORT
390390
tristate
391-
default n
391+
depends on NFS_LOCALIO
392392
default y if NFSD=y || NFS_FS=y
393393
default m if NFSD=m && NFS_FS=m
394394
select SUNRPC

0 commit comments

Comments
 (0)