android: make persistent_ram based drivers depend on HAVE_MEMBLOCK
Subsystems (2)
PATCH 1/1 android: make persistent_ram based drivers depend on HAVE_MEMBLOCK
m68k doesn't have memblock_reserve, which causes a build failure with allmodconfig. Make PERSISTENT_RAM and RAM_CONSOLE depend on HAVE_MEMBLOCK.
--- drivers/staging/android/Kconfig | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
I can't test on m68k, but this disables the options if I remove HAVE_MEMBLOCK from arm.
drivers/staging/android/Kconfig +2 -1
@@ -27,13 +27,14 @@ config ANDROID_LOGGER config ANDROID_PERSISTENT_RAM bool + depends on HAVE_MEMBLOCK select REED_SOLOMON select REED_SOLOMON_ENC8 select REED_SOLOMON_DEC8 config ANDROID_RAM_CONSOLE bool "Android RAM buffer console" - depends on !S390 && !UML + depends on !S390 && !UML && HAVE_MEMBLOCK select ANDROID_PERSISTENT_RAM default n
Signature · 1 line
1.7.7.3
Quoted 7 lines · Colin Cross
m68k doesn't have
memblock_reserve, which causes a build failure with allmodconfig. MakePERSISTENT_RAMandRAM_CONSOLEdepend onHAVE_MEMBLOCK.Reported-by Geert Uytterhoeven <[email protected]>Reported-by Paul Gortmaker <[email protected]>Signed-off-by Colin Cross <[email protected]>
Quoted 20 lines
---
drivers/staging/android/Kconfig | 3 ++-1 files changed, 2 insertions(+), 1 deletions(-)I can't test on m68k, but this disables the options if I remove
HAVE_MEMBLOCKfrom arm.drivers/staging/android/Kconfig +0
-0@@ -27,13 +27,14 @@ config ANDROID_LOGGERconfig
ANDROID_PERSISTENT_RAM
bool
+ depends onHAVE_MEMBLOCK
selectREED_SOLOMON
selectREED_SOLOMON_ENC8
selectREED_SOLOMON_DEC8
Quoted 6 lines
config
ANDROID_RAM_CONSOLE
bool "Android RAM buffer console"
- depends on !S390 && !UML
+ depends on !S390 && !UML &&HAVE_MEMBLOCK
selectANDROID_PERSISTENT_RAM
default n
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds