diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-23 22:07:04 +0200 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-07-04 19:57:22 +0200 |
commit | fcfddfd50472d7ce84ef4e2853242bbeb7b37325 (patch) | |
tree | c10c063cf385b22067fe1e7acce02ca0173ee722 /arch/arm/lib/cache-cp15.c | |
parent | f749db3a75ec483692d7bb6d46a1fbecb65c38ba (diff) | |
download | u-boot-imx-fcfddfd50472d7ce84ef4e2853242bbeb7b37325.zip u-boot-imx-fcfddfd50472d7ce84ef4e2853242bbeb7b37325.tar.gz u-boot-imx-fcfddfd50472d7ce84ef4e2853242bbeb7b37325.tar.bz2 |
ARM: cache_v7: use __weak
This is not only more readable but also prevents a warning
about a missing prototype. The prototypes which are actually
missing are added.
cc: Albert Aribaud <albert.u.boot@aribaud.net>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/lib/cache-cp15.c')
-rw-r--r-- | arch/arm/lib/cache-cp15.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/arm/lib/cache-cp15.c b/arch/arm/lib/cache-cp15.c index 8642010..5fdfdbf 100644 --- a/arch/arm/lib/cache-cp15.c +++ b/arch/arm/lib/cache-cp15.c @@ -14,11 +14,9 @@ DECLARE_GLOBAL_DATA_PTR; -void __arm_init_before_mmu(void) +__weak void arm_init_before_mmu(void) { } -void arm_init_before_mmu(void) - __attribute__((weak, alias("__arm_init_before_mmu"))); __weak void arm_init_domains(void) { @@ -44,14 +42,11 @@ void set_section_dcache(int section, enum dcache_option option) page_table[section] = value; } -void __mmu_page_table_flush(unsigned long start, unsigned long stop) +__weak void mmu_page_table_flush(unsigned long start, unsigned long stop) { debug("%s: Warning: not implemented\n", __func__); } -void mmu_page_table_flush(unsigned long start, unsigned long stop) - __attribute__((weak, alias("__mmu_page_table_flush"))); - void mmu_set_region_dcache_behaviour(u32 start, int size, enum dcache_option option) { |