Re: [PATCH] global_data: Only include driver model fields when DM is enabled
Tom Rini <[email protected]>
| Newsgroups | gmane.comp.boot-loaders.u-boot |
|---|---|
| Message-ID | <20260810220131.GF1160436__20663.8305143983$1786399314$gmane$org@bill-the-cat> |
On Mon, Aug 10, 2026 at 08:48:28PM +0000, Jonas Karlman wrote: > The struct list_head dmtag_list, struct udevice *dm_root, struct > list_head uclass_root_s and struct list_head *uclass_root fields in > struct global_data takes up 24/48 bytes of memory on ARMv7/AArch64. > However, these fields are only used when $(PHASE_)DM is enabled. > > Guard driver model related fields using CONFIG_IS_ENABLED(DM) to save > memory space when U-Boot proper is built with DM=y and xPL is built > without xPL_DM. > > Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Tom Rini <[email protected]> -- Tom
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTzzqh0PWDgGS+bTHor4qD1Cr/kCgUCanpKMgAKCRAr4qD1Cr/k CqueAQDL1aNYs3keW4GZSaJfJRFYNArwD0UVBgZ5uePuKvwkkwD8DMwgiiV4Cry4 dgJuAVpdgIrPVCTvPBOudQbWnbY2Sw4= =vW+2 -----END PGP SIGNATURE-----