From 184abcf525596861a443a6846b8468dd625e2777 Mon Sep 17 00:00:00 2001 From: Zhigang Lu Date: Wed, 15 Jul 2015 15:26:47 +0800 Subject: [PATCH] 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 --- lib/librte_eal/common/include/arch/tile/rte_prefetch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.20.1