Re: [PATCH] mtd: concat: use container_of_const() in CONCAT()
From: Miquel Raynal
Date: Fri Sep 25 2026 - 10:41:19 EST
On Thu, 24 Sep 2026 14:14:11 -0700, Harshit Mogalapalli wrote:
> CONCAT() currently recovers the enclosing struct mtd_concat by casting
> its embedded struct mtd_info pointer. This assumes mtd remains the first
> member of the structure.
>
> Use container_of_const() with the named member to make the relationship
> explicit and preserve any const qualifier.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: concat: use container_of_const() in CONCAT()
commit: 2e566a6830b82d95837c4d669c63a0c1abf766a9
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