]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs: fix build error with CONFIG_EXPORTFS=m or not defined
authorAmir Goldstein <amir73il@gmail.com>
Thu, 26 Oct 2023 20:45:40 +0000 (23:45 +0300)
committerChristian Brauner <brauner@kernel.org>
Sat, 28 Oct 2023 14:16:19 +0000 (16:16 +0200)
commitd9e5d9221d7f82a2736f091bbc5b54ab8d6ef701
tree1c56890185ebd228e662a3bf92235c1e012840f7
parentceb33880431c8284b58de5602b15dfb7ac0a4aa5
fs: fix build error with CONFIG_EXPORTFS=m or not defined

Many of the filesystems that call the generic exportfs helpers do not
select the EXPORTFS config.

Move generic_encode_ino32_fh() to libfs.c, same as generic_fh_to_*()
to avoid having to fix all those config dependencies.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310262151.renqMvme-lkp@intel.com/
Fixes: dfaf653dc415 ("exportfs: make ->encode_fh() a mandatory method for NFS export")
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20231026204540.143217-1-amir73il@gmail.com
Tested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/exportfs/expfs.c
fs/libfs.c
include/linux/exportfs.h