Skip to contentSkip to conversation

m68k: allow PM menu options for COMPILE_TEST

PATCH In review Randy Dunlap 2 participants 3 messages Feb 9, 2023 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: allow PM menu options for COMPILE_TEST

Allow PM options for COMPILE_TEST. This quietens a kconfig warning.

This is similar to a patch for Sparc32 that was suggested by Arnd.

WARNING: unmet direct dependencies detected for PM
Depends on [n]: !MMU [=y]
Selected by [y]:
- SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y])

Cc Arnd Bergmann <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
---
 arch/m68k/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/Kconfig +1 -1
diff -- a/arch/m68k/Kconfig b/arch/m68k/Kconfig
@@ -126,7 +126,7 @@ menu "Kernel Features"
 
 endmenu
 
-if !MMU
+if !MMU || COMPILE_TEST
 menu "Power management options"
 
 config PM
#1 lore raw

Hi Randy,

Quoted 6 lines · Randy Dunlap

Allow PM options for COMPILE_TEST. This quietens a kconfig warning.

This is similar to a patch for Sparc32 that was suggested by Arnd.

Quoted 6 lines

WARNING: unmet direct dependencies detected for PM
Depends on [n]: !MMU [=y]
Selected by [y]:
- SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y])

Thanks for your patch!

arch/m68k/Kconfig menu "Kernel Features" · line 130

Quoted 9 lines
arch/m68k/Kconfig +1 -1
@@ -126,7 +126,7 @@ menu "Kernel Features"
 
 endmenu
 
-if !MMU
+if !MMU || COMPILE_TEST
 menu "Power management options"

I think this is the wrong solution.
All other selects of PM are done by architecture/platform-gating symbols, and none of them can be enabled for compile-testing.

So either SUN20I_PPU should depend on PM, or ARCH_SUNXI should select PM.

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

#2 lore raw

Hi Geert,

Quoted 22 lines · Geert Uytterhoeven

Hi Randy,

Quoted 6 lines · Randy Dunlap

Allow PM options for COMPILE_TEST. This quietens a kconfig warning.

This is similar to a patch for Sparc32 that was suggested by Arnd.

Quoted 6 lines

WARNING: unmet direct dependencies detected for PM
Depends on [n]: !MMU [=y]
Selected by [y]:
- SUN20I_PPU [=y] && (ARCH_SUNXI || COMPILE_TEST [=y])

Thanks for your patch!

Quoted 4 lines
arch/m68k/Kconfig +0 -0
@@ -126,7 +126,7 @@ menu "Kernel Features"
 
Quoted 8 lines

arch/m68k/Kconfig menu "Kernel Features" · line 130

Quoted 5 lines
arch/m68k/Kconfig +1 -1
 endmenu
 
-if !MMU
+if !MMU || COMPILE_TEST
 menu "Power management options"

I think this is the wrong solution.
All other selects of PM are done by architecture/platform-gating

Yes, which is where they should be.

Quoted 4 lines

symbols, and none of them can be enabled for compile-testing.

So either SUN20I_PPU should depend on PM, or ARCH_SUNXI should select PM.

I'll do the first choice since I shouldn't be the one to make a platform config change without knowing about the platform.

Thank you.

Signature · 1 line
~Randy