From: Pengpeng Hou <pengpeng@iscas.ac.cn>
To: Greg Ungerer <gerg@linux-m68k.org>,
Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
Pengpeng Hou <pengpeng@iscas.ac.cn>
Subject: [RFC] m68k: stale CONFIG_MTD_UCLINUX still guards ROMFS relocation paths
Date: Thu, 25 Jun 2026 14:07:42 +0800 [thread overview]
Message-ID: <20260625060742.7769-1-pengpeng@iscas.ac.cn> (raw)
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
next reply other threads:[~2026-06-25 6:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-25 6:07 Pengpeng Hou [this message]
2026-06-25 6:43 ` Greg Ungerer
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=20260625060742.7769-1-pengpeng@iscas.ac.cn \
--to=pengpeng@iscas.ac.cn \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
/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®