ARM: 7365/1: drop unused parameter from flush_cache_user_range
authorDima Zavin <[email protected]>
Thu, 29 Mar 2012 19:44:06 +0000 (20:44 +0100)
committerRussell King <[email protected]>
Thu, 19 Apr 2012 18:32:50 +0000 (19:32 +0100)
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[email protected]) that didn't get
accepted.

Cc: Dima Zavin <[email protected]>
Acked-by: Catalin Marinas <[email protected]>
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Russell King <[email protected]>
arch/arm/include/asm/cacheflush.h
arch/arm/kernel/traps.c

index d5d8d5c72682501a54509e9758f90aa31ff127a8..1252a2675ca98de725d70add76ba2c39f3e53b08 100644 (file)
@@ -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))
 
 /*
index 778454750a6c323037e382ce8353443e63da36d3..55b2f3dc6bb3f67bae87a09c173ff2fb5613844e 100644 (file)
@@ -496,7 +496,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);
 }