Add configs to control removing the macros or not. On some platform, configureing out the macros removes the associated members from the structs, this reduces the object size of the slabs related with the structs, therefore reduces the total slab memory consumption of system. Besides, this also reduces vmlinux size a bit, therefore the total kernel memory size increses a bit. The macros are ANDROID_KABI_RESERVE, ANDROID_VENDOR_DATA, ANDROID_VENDOR_DATA_ARRAY, ANDROID_OEM_DATA, ANDROID_OEM_DATA_ARRAY. Bug: 206561931 (cherry picked from commit b7a6c15a6f06cc7e324c8d63b87cdd06b5597851) Signed-off-by: Qingqing Zhou <quic_qqzhou@quicinc.com> (cherry picked from commit 3c06a5ce5e5857a1dff88a784e58e32bbddaf759) Signed-off-by: Jaskaran Singh <quic_jasksing@quicinc.com> Change-Id: Iea4b962dff386a17c9bef20ae048be4e17bf43ab
3.6 KiB
3.6 KiB