diff options
author | Fuad Tabba <tabba@google.com> | 2021-05-24 11:29:59 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-05-25 21:27:49 +0300 |
commit | 8c28d52ccd1d6e3a5aca8a37e465a5f8b77edbc1 (patch) | |
tree | fe0198b827d78718002b7b3182882fffdc106cb1 /arch/arm64/kernel/probes | |
parent | 406d7d4e2bc76d38a6dc88733a0f72fabf02d305 (diff) | |
download | linux-8c28d52ccd1d6e3a5aca8a37e465a5f8b77edbc1.tar.xz |
arm64: sync_icache_aliases to take end parameter instead of size
To be consistent with other functions with similar names and
functionality in cacheflush.h, cache.S, and cachetlb.rst, change
to specify the range in terms of start and end, as opposed to
start and size.
No functional change intended.
Reported-by: Will Deacon <will@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20210524083001.2586635-17-tabba@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/probes')
-rw-r--r-- | arch/arm64/kernel/probes/uprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/probes/uprobes.c b/arch/arm64/kernel/probes/uprobes.c index 2c247634552b..9be668f3f034 100644 --- a/arch/arm64/kernel/probes/uprobes.c +++ b/arch/arm64/kernel/probes/uprobes.c @@ -21,7 +21,7 @@ void arch_uprobe_copy_ixol(struct page *page, unsigned long vaddr, memcpy(dst, src, len); /* flush caches (dcache/icache) */ - sync_icache_aliases(dst, len); + sync_icache_aliases((unsigned long)dst, (unsigned long)dst + len); kunmap_atomic(xol_page_kaddr); } |