diff options
| author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2026-09-24 14:14:11 -0700 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-09-25 15:42:04 +0200 |
| commit | 2e566a6830b82d95837c4d669c63a0c1abf766a9 (patch) | |
| tree | f3696fb2a0efec1282af361615d53096ed9944db /scripts/Makefile.thinlto | |
| parent | c4f64a86a28d218f3b16cd7b18691993aa60db60 (diff) | |
| download | linux-2e566a6830b82d95837c4d669c63a0c1abf766a9.tar.gz linux-2e566a6830b82d95837c4d669c63a0c1abf766a9.zip | |
mtd: concat: use container_of_const() in CONCAT()
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.
Suggested-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
