Skip to content

Commit b9f5fb1

Browse files
arndbtorvalds
authored andcommitted
cramfs: fix MTD dependency
With CONFIG_MTD=m and CONFIG_CRAMFS=y, we now get a link failure: fs/cramfs/inode.o: In function `cramfs_mount': inode.c:(.text+0x220): undefined reference to `mount_mtd' fs/cramfs/inode.o: In function `cramfs_mtd_fill_super': inode.c:(.text+0x6d8): undefined reference to `mtd_point' inode.c:(.text+0xae4): undefined reference to `mtd_unpoint' This adds a more specific Kconfig dependency to avoid the broken configuration. Alternatively we could make CRAMFS itself depend on "MTD || !MTD" with a similar result. Fixes: 99c18ce ("cramfs: direct memory access support") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Nicolas Pitre <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 73d080d commit b9f5fb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cramfs/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ config CRAMFS_BLOCKDEV
3434
config CRAMFS_MTD
3535
bool "Support CramFs image directly mapped in physical memory"
3636
depends on CRAMFS && MTD
37+
depends on CRAMFS=m || MTD=y
3738
default y if !CRAMFS_BLOCKDEV
3839
help
3940
This option allows the CramFs driver to load data directly from

0 commit comments

Comments
 (0)