From: Greg Ungerer <gerg@linux-m68k.org>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>,
Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org
Subject: Re: [RFC] m68k: stale CONFIG_MTD_UCLINUX still guards ROMFS relocation paths
Date: Thu, 25 Jun 2026 16:43:17 +1000 [thread overview]
Message-ID: <c5b59c08-ea1c-4395-a79e-1333f042fb5e@linux-m68k.org> (raw)
In-Reply-To: <20260625060742.7769-1-pengpeng@iscas.ac.cn>
Hi Pengpeng,
On 25/6/26 16:07, Pengpeng Hou wrote:
> 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 for pointing this out. This is news to me, and looks to only have
been removed in the current 7.2 merge window. I am digging now, but I
believed this still worked before removal and was in fact in use.
Regards
Greg
prev parent reply other threads:[~2026-06-25 6:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-25 6:07 Pengpeng Hou
2026-06-25 6:43 ` Greg Ungerer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c5b59c08-ea1c-4395-a79e-1333f042fb5e@linux-m68k.org \
--to=gerg@linux-m68k.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=pengpeng@iscas.ac.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®