From: Zhigang Lu Date: Wed, 15 Jul 2015 07:26:47 +0000 (+0800) Subject: eal/tile: add const in prefetch functions X-Git-Tag: spdx-start~8752 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=184abcf525596861a443a6846b8468dd625e2777;p=dpdk.git eal/tile: add const in prefetch functions Commit 7c5d0cc91579 added const in prefetch functions for X86 and PPC. This patch does the same for Tile arch. Signed-off-by: Zhigang Lu --- diff --git a/lib/librte_eal/common/include/arch/tile/rte_prefetch.h b/lib/librte_eal/common/include/arch/tile/rte_prefetch.h index f02d9fada0..c94075c60d 100644 --- a/lib/librte_eal/common/include/arch/tile/rte_prefetch.h +++ b/lib/librte_eal/common/include/arch/tile/rte_prefetch.h @@ -39,17 +39,17 @@ extern "C" { #include "generic/rte_prefetch.h" -static inline void rte_prefetch0(volatile void *p) +static inline void rte_prefetch0(const volatile void *p) { __builtin_prefetch((const void *)(uintptr_t)p, 0, 3); } -static inline void rte_prefetch1(volatile void *p) +static inline void rte_prefetch1(const volatile void *p) { __builtin_prefetch((const void *)(uintptr_t)p, 0, 2); } -static inline void rte_prefetch2(volatile void *p) +static inline void rte_prefetch2(const volatile void *p) { __builtin_prefetch((const void *)(uintptr_t)p, 0, 1); }