summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Braha <julianbraha@gmail.com>2021-03-26 01:34:56 -0400
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-03-29 11:17:38 +0200
commitf766b28a5edfd86600e55360cc4bf29c71cca2eb (patch)
treedf7980f76a767b145814a685265b03ea0173b431
parente87f69a5187d9414c3c2dae9539649e3823ee32c (diff)
downloadlinux-stable-f766b28a5edfd86600e55360cc4bf29c71cca2eb.tar.gz
linux-stable-f766b28a5edfd86600e55360cc4bf29c71cca2eb.tar.bz2
linux-stable-f766b28a5edfd86600e55360cc4bf29c71cca2eb.zip
arch: mips: fix unmet dependency for MTD_COMPLEX_MAPPINGS
When CAVIUM_OCTEON_SOC is enabled, and MTD is disabled, Kbuild gives the following warning: WARNING: unmet direct dependencies detected for MTD_COMPLEX_MAPPINGS Depends on [n]: MTD [=n] && HAS_IOMEM [=y] Selected by [y]: - CAVIUM_OCTEON_SOC [=y] && <choice> This is because CAVIUM_OCTEON_SOC selects MTD_COMPLEX_MAPPINGS, without selecting or depending on MTD, despite MTD_COMPLEX_MAPPINGS depending on MTD. Signed-off-by: Julian Braha <julianbraha@gmail.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
-rw-r--r--arch/mips/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 32158c2f204f..b72458215d20 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1002,6 +1002,7 @@ config CAVIUM_OCTEON_SOC
select NR_CPUS_DEFAULT_64
select MIPS_NR_CPU_NR_MAP_1024
select BUILTIN_DTB
+ select MTD
select MTD_COMPLEX_MAPPINGS
select SWIOTLB
select SYS_SUPPORTS_RELOCATABLE