Commit 2886357b authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Linus Torvalds

logfs: fix logfs build errors and dependencies

Fix build errors that happen when CONFIG_LOGFS=y and CONFIG_MTD=m:

  fs/built-in.o: In function `logfs_mount':
  super.c:(.text+0x92a6f): undefined reference to `logfs_get_sb_mtd'
  fs/built-in.o: In function `logfs_get_sb_bdev':
  (.text+0x93530): undefined reference to `logfs_get_sb_mtd'

This patch avoids the error by changing the dependencies of logfs in a
way that we can no longer configure logfs as built-in when the MTD core
is a loadable module, while leaving the dependency to require at least
one of MTD or BLOCK to be enabled.
Signed-off-by: default avatarArnd Bergmann <>
Signed-off-by: default avatarRandy Dunlap <>
Cc: Michal Marek <>
Cc: Peter Chen <>
Cc: Randy Dunlap <>
Cc: Joern Engel <>
Cc: Prasad Joshi <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 2f632369
config LOGFS
tristate "LogFS file system"
depends on (MTD || BLOCK)
depends on MTD || (!MTD && BLOCK)
select CRC32
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment