diff options
| author | Boon Khai Ng <[email protected]> | 2025-08-14 11:17:40 +0800 |
|---|---|---|
| committer | Tien Fong Chee <[email protected]> | 2025-09-30 14:29:55 +0800 |
| commit | 38d49808d4cd51e8972bfe7478db03325118d553 (patch) | |
| tree | 477b351ad3cc30e50a4d89813eca17094ae21d8d /include/linux/linux_string.h | |
| parent | c4e9554015ebe919a480a54e508461af7a3e9fc8 (diff) | |
cache: Check dcache availability before calling cache functions
When the data cache (dcache) is disabled, calling related
status functions can lead to compilation errors due to
undefined references.
Adding a !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) check before
invoking dcache_status() (used in common/memsize.c:get_ram_size())
and mmu_status() (from arch/arm/include/asm/io.h).
Without this check, builds with dcache disabled will fail to compile.
Signed-off-by: Boon Khai Ng <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
