diff -drupN a/fs/ramfs/Makefile b/fs/ramfs/Makefile --- a/fs/ramfs/Makefile 2018-08-06 17:23:04.000000000 +0300 +++ b/fs/ramfs/Makefile 2022-06-12 05:28:14.000000000 +0300 @@ -4,6 +4,8 @@ obj-y += ramfs.o +ifneq ($(CONFIG_MMU),y) file-mmu-y := file-nommu.o +endif file-mmu-$(CONFIG_MMU) := file-mmu.o ramfs-objs += inode.o $(file-mmu-y)