mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] m68k: stale CONFIG_MTD_UCLINUX still guards ROMFS relocation paths
@ 2026-06-25  6:07 Pengpeng Hou
  2026-06-25  6:43 ` Greg Ungerer
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-06-25  6:07 UTC (permalink / raw)
  To: Greg Ungerer, Geert Uytterhoeven; +Cc: linux-m68k, linux-kernel, Pengpeng Hou

Hi,

while auditing conditional source paths, I noticed that current m68k source
still has an early boot/data path guarded by CONFIG_MTD_UCLINUX, but that
symbol no longer appears to have a Kconfig provider in current mainline.

The relevant guard is in arch/m68k/68000/head.S:

#if defined(CONFIG_ROMFS_FS) && defined(CONFIG_RAMKERNEL) && \
    defined(CONFIG_MTD_UCLINUX)

That guarded block moves ROMFS data and adjusts _ramstart / __bss_stop
related state.  At the same time, several m68k defconfigs still request
CONFIG_MTD_UCLINUX together with ROMFS support.

A bounded config oracle over representative m68k defconfigs shows that the
final .config drops CONFIG_MTD_UCLINUX because the symbol has no current
provider.  In other words, the source still describes a boot/data world that
the current Kconfig universe cannot realize.

I am not sending a patch yet because the intended repair is a policy question:

1. remove the stale defconfig requests and guarded source path;
2. retarget the guard to a current condition; or
3. restore an arch-local option if this boot path is still intended.

Could you advise which direction is expected for the remaining
CONFIG_MTD_UCLINUX guarded m68k path?

This is static source/config analysis only.  I have not runtime-tested the
affected boards.

Thanks,
Pengpeng


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-06-25  6:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-25  6:07 [RFC] m68k: stale CONFIG_MTD_UCLINUX still guards ROMFS relocation paths Pengpeng Hou
2026-06-25  6:43 ` Greg Ungerer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®