[PATCH] mtd: parsers: ofpart: Remove code/data for disabled custom parsers
Miquel Raynal
miquel.raynal at bootlin.com
Mon Jan 19 02:19:19 PST 2026
On Sun, 04 Jan 2026 19:01:51 +0900, Daniel Palmer wrote:
> Currently even if none of the custom parsers are selected a struct
> of_device_id and a dummy function that just returns -EOPNOTSUPP is
> compiled in for each of them.
>
> Its not obvious from the code but struct of_device_id is massive,
> 196 or 200 bytes (see link), so this is a lot more wasteful than you'd
> think just skimming the code and assuming the wasted size is just the
> length of the string with some small overhead.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: parsers: ofpart: Remove code/data for disabled custom parsers
commit: 56477aea482dd81e0364d98a02ab805d24242b72
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
More information about the linux-mtd
mailing list