DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] tile: add const in prefetch functions
@ 2015-07-15  7:26 Zhigang Lu
  2015-07-15 12:19 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Zhigang Lu @ 2015-07-15  7:26 UTC (permalink / raw)
  To: dev

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(-)

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);
 }
-- 
2.1.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-15 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-15  7:26 [dpdk-dev] [PATCH] tile: add const in prefetch functions Zhigang Lu
2015-07-15 12:19 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).