diff mbox

[dpdk-dev] tile: add const in prefetch functions

Message ID 1436945208-30487-1-git-send-email-zlu@ezchip.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Zhigang Lu July 15, 2015, 7:26 a.m. UTC
commit 7c5d0cc91579 added const in prefetch functions for
X86 and PPC.  This patch does the same for Tile arch.

Fixes: 7c5d0cc91579 ("eal: add const in prefetch functions")

Signed-off-by: Zhigang Lu <zlu@ezchip.com>
---
 lib/librte_eal/common/include/arch/tile/rte_prefetch.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Thomas Monjalon July 15, 2015, 12:19 p.m. UTC | #1
2015-07-15 15:26, Zhigang Lu:
> commit 7c5d0cc91579 added const in prefetch functions for
> X86 and PPC.  This patch does the same for Tile arch.
> 
> Fixes: 7c5d0cc91579 ("eal: add const in prefetch functions")
> 
> Signed-off-by: Zhigang Lu <zlu@ezchip.com>

Applied, thanks
diff mbox

Patch

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 f02d9fa..c94075c 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);
 }