]> git.baikalelectronics.ru Git - kernel.git/commit
cramfs: fix MTD dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 10 Nov 2017 14:57:21 +0000 (15:57 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 17 Dec 2017 20:20:58 +0000 (12:20 -0800)
commit56c4d5a89b32a4c04495115a119e2b76d48a92d6
tree25509d31942911a9b3bc9f4278939e140209ee9e
parentf2b84e740960a16205df587b7510efaede20f1e6
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: c06406cd2297 ("cramfs: direct memory access support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cramfs/Kconfig