From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0075.outbound.protection.outlook.com [157.55.234.75]) by dpdk.org (Postfix) with ESMTP id 640C33B5 for ; Wed, 15 Jul 2015 09:27:16 +0200 (CEST) Received: from VI1PR02CA0001.eurprd02.prod.outlook.com (10.162.7.139) by AM2PR02MB0802.eurprd02.prod.outlook.com (10.163.146.22) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 15 Jul 2015 07:27:14 +0000 Received: from AM1FFO11FD024.protection.gbl (2a01:111:f400:7e00::166) by VI1PR02CA0001.outlook.office365.com (2a01:111:e400:581f::11) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Wed, 15 Jul 2015 07:27:14 +0000 Authentication-Results: spf=fail (sender IP is 124.207.145.166) smtp.mailfrom=ezchip.com; ezchip.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 124.207.145.166 as permitted sender) receiver=protection.outlook.com; client-ip=124.207.145.166; helo=bjgfarm-2.internal.tilera.com; Received: from bjgfarm-2.internal.tilera.com (124.207.145.166) by AM1FFO11FD024.mail.protection.outlook.com (10.174.64.213) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Wed, 15 Jul 2015 07:27:11 +0000 Received: (from zlu@localhost) by bjgfarm-2.internal.tilera.com (8.14.4/8.14.4/Submit) id t6F7R4LA030528; Wed, 15 Jul 2015 15:27:04 +0800 From: Zhigang Lu To: Date: Wed, 15 Jul 2015 15:26:47 +0800 Message-ID: <1436945208-30487-1-git-send-email-zlu@ezchip.com> X-Mailer: git-send-email 2.1.2 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD024; 1:ikAc45Ghr2kKvCF1/iFBObzZpRTkStC663vn6OCSBh4dX/9qVrsvujlkPle8BR5h6kx+eEgIDAXkW9x0RrS1lCP5IhaAkba0t7XisVu1QOadzOsrYtpOF/fDgLq34ZwmjcAfivnhl2euGandIid7KzxQDBJqTD5oTGaZIOYGw1WYCyK4dcGGogvwG/jCIGa5oKtiebTKZFz7fXzlRQmEHXUgWuYDKzyz8yksWyttbSZYunM8fEpxEewORW+yYO/Um/msO1CXzdZWCowTWN4vwtqiRb+eRCp+rJxzagudiYjbh4gTkqC1+2dXuDCrnk6TlLNzzrp5E5HiKxt1qmghsGu876FbZ8Ti3ccIC7x2lroVPiAL5vJ47NVmk1erJnzw0ODp80U/7z4yGy52rdhHSqtT1Oi5tAyFZnD7mMI8egUFzKLBbW4u2nFiARQTaOSq X-Forefront-Antispam-Report: CIP:124.207.145.166; CTRY:CN; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(189002)(199003)(85426001)(229853001)(46102003)(19580405001)(47776003)(6806004)(19580395003)(50466002)(48376002)(50226001)(92566002)(50986999)(87936001)(86362001)(105606002)(5001960100002)(42186005)(575784001)(110136002)(62966003)(33646002)(107886002)(450100001)(5003940100001)(104016003)(106466001)(2351001)(189998001)(36756003)(77156002)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR02MB0802; H:bjgfarm-2.internal.tilera.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1; AM2PR02MB0802; 2:XgU2eZYAbbov1w3X1TheRdzD/IvtyWqL5DXDyX2Z1FjSFJHmqL4A3i+O+6YAk1D3; 3:oM8lk2ijFt9SnnWypyS2o0yBwQl3rYCQVaUQS2XaeAd/cIXwVLYeVIzhBz+JdRbv3na/aJEmOopY8YwxnXo/phm3Z+qV+UzuSIifyNTCI3jicrS5IkDCjb/yiS+vdvDYQh7PCu3Ri3ft3v5AVv822m6Q2nC+HwEOs5Gq3cyB9zaN64or3o8nus9xwBKevZY5WYMWLe0d1pr3gZCbmyhtA1l9kiLl3poViD7M60Rxp1SzzMNgZADWVpOXFQ6Qah7q; 25:j5dnpgKsojt9NjNDvaZBlKOE3R/aUygNV1299kjL6StTadKOBiHdluy5DfYwvGQe+L/8SKt8EJFW+5nsvL1r640Qm24+gLuz85V+NkDDymU19Rmb0H4MXscOrrYtVUwN2W9KyWMmALV7LI/zxOgUa8ZMwxa/RH03uRryjUetQeEAcQDGXUSp6RrcZWjfR5uZHYHrx464zo2+AKGuzqUS+XKtaXRNRnE/0r6pqT+dWvd2Ogh3BWLf6m1YGiQ+Bj9f; 20:g41+bgZHNChOtyw5GsASNSvEb17EiQcV15WQ6rj6+mH4z3drJdBrG/WN5+vtlV8vz9gEv0RB/EsLQ9GSKFFBar3AU09P0JvUNr1TVej1iwdV21/orxFv36Tt2/m2uwmFy6EZAX4IfXRJMPo+5G/zdo0mJ3ypn1E6ib6dq8wP1eA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0802; AM2PR02MB0802: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:AM2PR02MB0802; BCL:0; PCL:0; RULEID:; SRVR:AM2PR02MB0802; X-Microsoft-Exchange-Diagnostics: 1; AM2PR02MB0802; 4:GaycVHHxNlF8RAfgcPkwfEoMdNtduTSX3TJOo5bT0CFsL2TgJrj3RWBmU1kA/K0jAUUWOgtbVzqMDCWqerTCrCxa7HrGTB3nXi1icjqTtsjb992gTMUpc/5qUj1Q8lTeOfbFlr0pA/EoBAFXZVhcoHqFF506/RDGx0dYIfGx+ddNbj1JtGGQBIIJ72S9LqedELW+hKbEBXf3LZSiDIDiOBx+vQteF4Kuo40etB+VBTxZxixLxmkOlEUNBW20CwPspGLibZHJF5AUu5Aqn0M9Ej/BKm9a9GS/QXjjqhBzdxc= X-Forefront-PRVS: 0638FD5066 X-Microsoft-Exchange-Diagnostics: =?us-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IUY+wYl/?= =?us-ascii?Q?TRl5c4Kd7RoIfX1zcqODEYz7OZJXjNmr0Dl7nAoUPCXpwSVZ0rMYImDz8PYt?= =?us-ascii?Q?6pyhJMQ2qn/TieTUI2UABcjuAH7d7j46QQS/pMlPA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM2PR02MB0802; 5:Ly7GfWAj4PYpf34XJLcFT/KXC3CalfYx/wUn49ayWNVO9y1FrqH4Cy4cyaqvD+40KWiLMbeW+vn04i/MV7MbOiKQP7HZHsvcrt7JQ1U3h72jJApOdFnbg2EDhDaDGr4/TCAsJW8hR9JlXXoKdXhCEw==; 24:hBAimG44n6ug/ZekfwnvdAF9kP+36XMZVjJ4ZQdbEOdnxMjTJYHn6oqlvclehcPdYuUziee3grCsEzrceoVsIdu5ap9ORvwONmz5KBnMvmM=; 20:fi9lkl+YWOMtaPspiIuJFbkyPXDTPGxErVpik5qnrddDCbIp+ncMS3MLRBktvlJtqHZ7Y48igiBq0YGaAHVuEA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2015 07:27:11.4319 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[124.207.145.166]; Helo=[bjgfarm-2.internal.tilera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR02MB0802 Subject: [dpdk-dev] [PATCH] tile: add const in prefetch functions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 07:27:16 -0000 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 --- 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