mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pengpeng Hou <hppiscas@163.com>
To: Miquel Raynal <miquel.raynal@bootlin.com>,
	Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
	Pengpeng Hou <hppiscas@163.com>
Subject: [PATCH] mtd: parsers: bcm63xx: depend on MTD=y
Date: Fri,  4 Dec 2026 09:53:55 +0800	[thread overview]
Message-ID: <179634923561.74470.5343395292020239968@163.com> (raw)

The BCM63xx partition parser is a boolean suboption. Selecting it below
a modular MTD puts the parser in obj-y in a directory entered for
modules.

Restrict the parser to a built-in MTD core. Keep the existing platform
and compile-test dependencies.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: b597cc75f7fe ("mtd: parsers: bcm63xx: Do not make it modular")
Signed-off-by: Pengpeng Hou <hppiscas@163.com>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
On x86-64 with COMPILE_TEST, Kconfig previously accepted the parser with
MTD=m. After the change it was disabled with MTD=m and remained
selectable with MTD=y. This was a configuration test; no target binary
was built.

 drivers/mtd/parsers/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
index da03ab6efe04c6ed16affabbdec2dd7fa7a3eb17..24302c37e32b76a0a5af22f03d5a6bac79b9493c 100644
--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -8,6 +8,7 @@ config MTD_BCM47XX_PARTS
 
 config MTD_BCM63XX_PARTS
 	bool "BCM63XX CFE partitioning parser"
+	depends on MTD=y
 	depends on BCM63XX || BMIPS_GENERIC || COMPILE_TEST
 	select CRC32
 	select MTD_PARSER_IMAGETAG

base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106


                 reply	other threads:[~2026-12-04  1:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=179634923561.74470.5343395292020239968@163.com \
    --to=hppiscas@163.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.com \
    /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®