ARM: drop unused parameter from flush_cache_user_range
PATCH 1/1 ARM: drop unused parameter from flush_cache_user_range
vma isn't used and flush_cache_user_range isn't a standard macro that is used on several archs with the same prototype. In fact only unicore32 has a macro with the same name (with an identical implementation and no in-tree users).
This is a part of a patch proposed by Dima Zavin (with Message-id:
1272439931-12795-1-git-send-email-dima at android.com) that didn't get accepted.
--- arch/arm/include/asm/cacheflush.h | 2 +- arch/arm/kernel/traps.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/include/asm/cacheflush.h +1 -1
@@ -249,7 +249,7 @@ extern void flush_cache_page(struct vm_area_struct *vma, unsigned long user_addr* Harvard caches are synchronised for the user space address range. * This is used for the ARM private sys_cacheflush system call. */ -#define flush_cache_user_range (vma,start,end) \ +#define flush_cache_user_range (start,end) \ __cpuc_coherent_user_range((start) & PAGE_MASK, PAGE_ALIGN(end))/*
arch/arm/kernel/traps.c +1 -1
@@ -488,7 +488,7 @@ do_cache_op(unsigned long start, unsigned long end, int flags)if (end > vma->vm_end) end = vma->vm_end; -flush_cache_user_range (vma, start, end); +flush_cache_user_range (start, end); }up_read (&mm->mmap_sem); }
Signature · 1 line
1.7.7.2
PATCH 1/1 ARM: drop unused parameter from flush_cache_user_range
Quoted 5 lines · Uwe Kleine-K?nig
vma isn't used and
flush_cache_user_rangeisn't a standard macro that is used on several archs with the same prototype. In fact only unicore32 has a macro with the same name (with an identical implementation and no in-tree users).
Quoted 7 lines
This is a part of a patch proposed by Dima Zavin (with Message-id:
1272439931-12795-1-git-send-email-dima at android.com) that didn't get accepted.Cc Dima Zavin <[email protected]>Signed-off-by Uwe Kleine-K?nig <[email protected]>---
Hello,
oh I forgot to add
From: Dima Zavin <[email protected]>
This was done by mistake and not to hijack authorship.
Sorry
Uwe
Signature · 2 lines
Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |
PATCH 1/1 ARM: drop unused parameter from flush_cache_user_range
In reply to Uwe Kleine-König2011/12/15 Uwe Kleine-K?nig <[email protected]>:
Quoted 11 lines
vma isn't used and
flush_cache_user_rangeisn't a standard macro that is used on several archs with the same prototype. In fact only unicore32 has a macro with the same name (with an identical implementation and no in-tree users).This is a part of a patch proposed by Dima Zavin (with Message-id:
1272439931-12795-1-git-send-email-dima at android.com) that didn't get accepted.Cc Dima Zavin <[email protected]>Signed-off-by Uwe Kleine-K?nig <[email protected]>
I had this change as part of Dima's other patch to solve the user cache maintenance race (but Russell didn't like it -
http://thread.gmane.org/gmane.linux.ports.arm.kernel/139111)
Signature · 1 line
Catalin