Skip to contentSkip to conversation

android: make persistent_ram based drivers depend on HAVE_MEMBLOCK

PATCH In review Colin Cross 2 participants 2 messages Mar 21, 2012 – Apr 8, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 08a3b11..eb1dee2 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Colin Cross

m68k doesn't have memblock_reserve, which causes a build failure with allmodconfig.  Make PERSISTENT_RAM and RAM_CONSOLE depend on HAVE_MEMBLOCK.

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_MEMBLOCK from arm.

drivers/staging/android/Kconfig +0 -0
index 08a3b11..eb1dee2 100644
@@ -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

Quoted 6 lines

 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

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