ARM: fix arch/arm/mm/copypage-v6.c build
PATCH 1/1 ARM: fix arch/arm/mm/copypage-v6.c build
Commit 115b22474eb1905da2f606a057da3455833333d3 (ARM: 5794/1: Flush the D-cache during copy_user_highpage()) breaks build for ARM v7:
CC arch/arm/mm/copypage-v6.oarch/arm/mm/copypage-v6.c: In function'v6_copy_user_highpage_nonaliasing':arch/arm/mm/copypage-v6.c:51: error: implicit declaration of function '__cpuc_flush_dcache_page' make[2]: *** [arch/arm/mm/copypage-v6.o] Error 1
Fix it.
--- arch/arm/mm/copypage-v6.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mm/copypage-v6.c +1 -1
@@ -48,7 +48,7 @@ static void v6_copy_user_highpage_nonaliasing(struct page *to,*/ if (page_address(to) != NULL)#endif -__cpuc_flush_dcache_page (kto); +__cpuc_flush_dcache_area (kto,PAGE_SIZE );kunmap_atomic (kto,KM_USER1 );kunmap_atomic (kfrom,KM_USER0 ); }
Signature · 7 lines
1.6.4.4 -- Sincerely yours, Mike.
PATCH 1/1 ARM: fix arch/arm/mm/copypage-v6.c build
Quoted 7 lines · Mike Rapoport
Commit
115b22474eb1905da2f606a057da3455833333d3(ARM: 5794/1: Flush the D-cache duringcopy_user_highpage()) breaks build for ARM v7:CC
arch/arm/mm/copypage-v6.oarch/arm/mm/copypage-v6.c: In function'v6_copy_user_highpage_nonaliasing':arch/arm/mm/copypage-v6.c:51: error: implicit declaration of function '__cpuc_flush_dcache_page' make[2]: *** [arch/arm/mm/copypage-v6.o] Error 1
This one's already been caught.