Skip to contentSkip to conversation

m68k: set a default value for MEMORY_RESERVE

RFC PATCH In review Randy Dunlap 3 participants 3 messages Oct 3, 2021 – Oct 4, 2021 m68k architecture

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 m68k: set a default value for MEMORY_RESERVE

'make randconfig' can produce a .config file with "CONFIG_MEMORY_RESERVE=" (no value) since it has no default. When a subsequent 'make all' is done, kconfig restarts the config and prompts for a value for MEMORY_RESERVE. This breaks scripting/automation where there is no interactive user input.

Add a default value for MEMORY_RESERVE. (Any integer value will work here for kconfig.)

Fixes a kconfig warning:

.config:214:warning: symbol value '' invalid for MEMORY_RESERVE
* Restart config...
Memory reservation (MiB) (MEMORY_RESERVE) [] (NEW)

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2") # from beginning of git history
Cc Geert Uytterhoeven <[email protected]>
Cc Greg Ungerer <[email protected]>
---
 arch/m68k/Kconfig.machine |    1 +
 1 file changed, 1 insertion(+)
arch/m68k/Kconfig.machine +1 -0
@@ -203,6 +203,7 @@ config INIT_LCD
 config MEMORY_RESERVE
 	int "Memory reservation (MiB)"
 	depends on (UCSIMM || UCDIMM)
+	default 0
 	help
 	  Reserve certain memory regions on 68x328 based boards.
 
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Randy Dunlap

'make randconfig' can produce a .config file with "CONFIG_MEMORY_RESERVE=" (no value) since it has no default. When a subsequent 'make all' is done, kconfig restarts the config and prompts for a value for MEMORY_RESERVE. This breaks scripting/automation where there is no interactive user input.

Add a default value for MEMORY_RESERVE. (Any integer value will work here for kconfig.)

Quoted 8 lines

Fixes a kconfig warning:

.config:214:warning: symbol value '' invalid for MEMORY_RESERVE
* Restart config...
Memory reservation (MiB) (MEMORY_RESERVE) [] (NEW)

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2") # from beginning of git history

As this is relevant for m68knommu, I'll leave it to Greg, unless he's too busy.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
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
Acked-by
#2 lore raw
Quoted 12 lines · Geert Uytterhoeven
Quoted 11 lines · Randy Dunlap

'make randconfig' can produce a .config file with "CONFIG_MEMORY_RESERVE=" (no value) since it has no default. When a subsequent 'make all' is done, kconfig restarts the config and prompts for a value for MEMORY_RESERVE. This breaks scripting/automation where there is no interactive user input.

Add a default value for MEMORY_RESERVE. (Any integer value will work here for kconfig.)

Fixes a kconfig warning:

Quoted 8 lines
Quoted 6 lines

.config:214:warning: symbol value '' invalid for MEMORY_RESERVE
* Restart config...
Memory reservation (MiB) (MEMORY_RESERVE) [] (NEW)

Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2") # from beginning of git history
Quoted 2 lines

As this is relevant for m68knommu, I'll leave it to Greg, unless he's too busy.

Thanks Geert. No problem though, I'll pick this up and push to the m68knommu git tree.

Regards
Greg