mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] cramfs: fix MTD dependency
@ 2017-11-10 14:57 Arnd Bergmann
  2017-11-10 16:35 ` Nicolas Pitre
  2017-11-21 16:04 ` Nicolas Pitre
  0 siblings, 2 replies; 8+ messages in thread
From: Arnd Bergmann @ 2017-11-10 14:57 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Arnd Bergmann, linux-kernel

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: 99c18ce580c6 ("cramfs: direct memory access support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 fs/cramfs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/cramfs/Kconfig b/fs/cramfs/Kconfig
index f937082f3244..58e2fe40b2a0 100644
--- a/fs/cramfs/Kconfig
+++ b/fs/cramfs/Kconfig
@@ -34,6 +34,7 @@ config CRAMFS_BLOCKDEV
 config CRAMFS_MTD
 	bool "Support CramFs image directly mapped in physical memory"
 	depends on CRAMFS && MTD
+	depends on CRAMFS=m || MTD=y
 	default y if !CRAMFS_BLOCKDEV
 	help
 	  This option allows the CramFs driver to load data directly from
-- 
2.9.0

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-21 16:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-10 14:57 [PATCH] cramfs: fix MTD dependency Arnd Bergmann
2017-11-10 16:35 ` Nicolas Pitre
2017-11-10 16:54   ` Arnd Bergmann
2017-11-10 17:01     ` Nicolas Pitre
2017-11-15 14:44       ` Arnd Bergmann
2017-11-15 16:14         ` Nicolas Pitre
2017-11-17  0:56           ` Nicolas Pitre
2017-11-21 16:04 ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®