]> www.infradead.org Git - users/hch/misc.git/commitdiff
nfs_common: fix Kconfig for NFS_COMMON_LOCALIO_SUPPORT
authorMike Snitzer <snitzer@kernel.org>
Thu, 3 Oct 2024 19:34:59 +0000 (15:34 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Thu, 3 Oct 2024 20:19:51 +0000 (16:19 -0400)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410031944.hMCFY9BO-lkp@intel.com/
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/Kconfig

index 949895cff872847e718e15156cc90b6548d8f4ba..aae170fc2795246a09c4f95ed2acf9fb6d5c4a82 100644 (file)
@@ -388,7 +388,7 @@ config NFS_COMMON
 
 config NFS_COMMON_LOCALIO_SUPPORT
        tristate
-       default n
+       depends on NFS_LOCALIO
        default y if NFSD=y || NFS_FS=y
        default m if NFSD=m && NFS_FS=m
        select SUNRPC