From patchwork Thu Jun 30 08:01:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Elo, Matias \(Nokia - FI/Espoo\)" X-Patchwork-Id: 71222 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp262671qgy; Thu, 30 Jun 2016 01:02:05 -0700 (PDT) X-Received: by 10.55.189.131 with SMTP id n125mr16235195qkf.194.1467273725541; Thu, 30 Jun 2016 01:02:05 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x191si1919501qkb.24.2016.06.30.01.02.05; Thu, 30 Jun 2016 01:02:05 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id 526EF635C8; Thu, 30 Jun 2016 08:02:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id D7EDA61589; Thu, 30 Jun 2016 08:01:58 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 0FFC2681FF; Thu, 30 Jun 2016 08:01:56 +0000 (UTC) Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0134.outbound.protection.outlook.com [157.56.112.134]) by lists.linaro.org (Postfix) with ESMTPS id 831EF681DA for ; Thu, 30 Jun 2016 08:01:54 +0000 (UTC) Received: from DB5PR07CA0009.eurprd07.prod.outlook.com (10.167.223.19) by HE1PR07MB1226.eurprd07.prod.outlook.com (10.164.51.28) with Microsoft SMTP Server (TLS) id 15.1.523.12; Thu, 30 Jun 2016 08:01:52 +0000 Received: from AM1FFO11FD020.protection.gbl (2a01:111:f400:7e00::126) by DB5PR07CA0009.outlook.office365.com (2603:10a6:0:2d::19) with Microsoft SMTP Server (TLS) id 15.1.528.16 via Frontend Transport; Thu, 30 Jun 2016 08:01:52 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.241 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.241; helo=fihe3nok0735.emea.nsn-net.net; Received: from fihe3nok0735.emea.nsn-net.net (131.228.2.241) by AM1FFO11FD020.mail.protection.outlook.com (10.174.64.209) with Microsoft SMTP Server (TLS) id 15.1.523.9 via Frontend Transport; Thu, 30 Jun 2016 08:01:52 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u5U81kVu001570 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 30 Jun 2016 11:01:46 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u5U81kMq001567 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Thu, 30 Jun 2016 11:01:46 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo To: Date: Thu, 30 Jun 2016 11:01:45 +0300 Message-ID: <1467273705-14626-1-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(199003)(189002)(50986999)(97736004)(106466001)(2906002)(48376002)(81156014)(229853001)(2351001)(81166006)(7846002)(33646002)(356003)(11100500001)(5003940100001)(6806005)(305945005)(8676002)(50466002)(8936002)(50226002)(92566002)(15975445007)(16796002)(107886002)(189998001)(77096005)(19580405001)(19580395003)(110136002)(450100001)(47776003)(87936001)(68736007)(586003)(36756003)(42882005); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB1226; H:fihe3nok0735.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD020; 1:JdyBSIIpf42c/MiW0VfYgKy72CFKpEWgQWRgKO8DmXTEj2LEvbfuaiy3RqFZ+RHApxJI/wHgdoSP1Q/3FCrH81wgT5kmYl/GR/DbgKV+KL2XyYzaxXD+gSX/rt+dUDQrR7FMsOPPgUEQ8zECKcyNoqGEx1WAvF1OtJB1lnBN1oOj2HX95OCMo7L1uGTbFnnKwEkKlFO9xy/ffoldTQ/yHpB9MkZJ0MDGU4mQz2mkBbuTXHiHZw6HKiIbFhygKtiQphhAdvMr0i2XLZARgO4moofROqm2gIr1L9V+I49iKWvOq+Omz5ZdbQrOr1GgvLxiC367apE49Eo57DLgn4OvNBQln7U9GzrOqpFsPPCwFsLgRC1DHrevcGgW1T5xSQdTKAF39mWRd1OOYiKDPsAbzXnT3tVk4r9FkMLHChD+uyIs/rk0FsTSsD4gjMpW1gJaSpGJC1zHCKFqKCpyRh5mdA== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: cf15b635-4e84-4179-ae36-08d3a0bccbdc X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1226; 2:8HI3rB5u9dzI1MkUZGoN9UrKqrReKRmIlFqroLtM5bk90C0feCAuiPE+yyAj79NBJmiCVzZee1I6hn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VxsETUEfkAQib3/9q9ViFI0M1YDj2W3BHDac0e9nuhQ4aUGiTkkrY/uZSPaqekpSBRRir9O1wh/u/8me9q/f4indJw3gvY71P0AB8hCWRxwOScnq1gBj1Bw3hG+ztWcmJOwtBUTkAcv/RDs7Z0CkDzu4ADDDKUrdoGoShdr3QpiIrFrrMsf8XhpHEpJl8LT7sV6TwMY0V8myhem4ks72GaZskeVVUIyEWb1isWan3+8G3xTcfFvLGBxWYX9drqQhs2TJM+4JhEiUbbUzditJ4rHWddMWfF5GtA/JK4k5rI1uveivuDDRNDWjTAXJFZthuX9WYyqBlIeMH9k0i+1FdSGWj5aHgUhfugSRo2zVOOvBc9M5WqXhGbrmHV/4bP7vxXJXNclCL1NtSLUUzppGmQKzpCwtztDm0hjGpx8SaPzAfbQw0Bz04sYPt8oQ+uLhAmI9SDcZNHB15VgYDectAxbX8U0h0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001); SRVR:HE1PR07MB1226; BCL:0; PCL:0; RULEID:; SRVR:HE1PR07MB1226; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1226; 4:bGuGaGXwywmOHMA3Id5nek6tzR3VXCNtQhTJCG48Y0LvQTgNWR9RFjsQRWmRS7M/n7xA1pxj+JgKCJ5RkZFnWGdCdCR2XAISHpxs3kONK+ihHtz4c3JPCAcMT66u5BeM4qIPTb111dgnHr+RcwVFrXH9//YPzjiWLkQVPXcEJBQBLfzqIKGYJBlKrO2ZDvF3DTEl4TtLHqfEOOJE905GEEv9CFfYfpMxQU1WO22918Q19unAjEo6uSmJcNeLK4hVmSGb0R3RweXy0SaUNpwf3qi8e1x9WoKg16f59ZpHxId6/vPYuFQIrXX7tS6w/I6uiaBSKze70GhuL6VfqeTZstj/4LmL72JNWBtuclPUuysBQUwUuO6FcXrH3yLffKGs8MnOe6qzL0R0OjoxvHUU1ULISrEdFzjx/xKwumNQOBAPotL3m2qLRh7csSjLL+gj1lDszgfFq3yJVmS0inlG+g== X-Forefront-PRVS: 0989A7979C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR07MB1226; 23:e+NRxgdu6Okqx4fouU+iQ4MLiXmPVcAXODZu69pkz?= =?us-ascii?Q?dyxs5SK4UPeMSsQ62n+dumugxc83eYy3TfFTNOP2S1Xc+4QkMalyDyzW7BN8?= =?us-ascii?Q?ndFWlpwdilwn8yMwEZy+TVXb27WBlHsSprGiThCXwTR9GNx3x7+14DsHLeJW?= =?us-ascii?Q?+PKwwWTvkn2iPRVEniJYsEKznEwNdF3Rd8HTdi/DJOehWTjG2yCmeUWeq4wP?= =?us-ascii?Q?lYVUyzl1ArtJXEhAXFyDQmCWT0jfZpxIOK5YgEh8OKQYjwSUWLjfI5Bz33v7?= =?us-ascii?Q?+vIO37QOqW0V2MowsNNh6Tv07CM78zTBX6+eetQ1dg58a5JQ95T6WJ3meNh7?= =?us-ascii?Q?xEQbMj8YFVR759/BUbVKZkyVMeODj9qHYIttoDvUAGp1vVN8e+RIvhxqKDxE?= =?us-ascii?Q?VUrqgKEqGmcBrP3wD1akT5qSSwwqBsf2QEOFAJmCpw/aT4Cs2TAlQ9/uV+RP?= =?us-ascii?Q?LCMcnEvofK6/caNbbRBfFUhwAbQkrhC5WpRAIYWKjvb5dgxLLFw8JCC7rqSt?= =?us-ascii?Q?Ul/f7SwyrWNJMi+mT2aVWKG+yHgOH29VqgKjm8bJdpbjGdb1OpO7vwwFOWwh?= =?us-ascii?Q?KG7JxYnoRv5rmAAuxR1C1t4fPY3bCAitxbTm47d1I8pHeNXHunqTGpGsQJm3?= =?us-ascii?Q?RY+QJHr3WHwVgLLfL9VvO62gbU1VS4zYjVm80Bz31ZCEMyDZB60Mz92/9SKV?= =?us-ascii?Q?qqifYo0cMOUz/1Adv33jMvfh+yd9IuDlgLMxaGNSDkD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oU+P3BR3+3eBVKbyuY4irKVgv+zy/x8Au6KJiR1f5ntiIbVJ8426qYt5fyRg2xhiAVJcMU3QnpUNHQ1KPrXjHhgqiVywFGj9V5WwRnPC6EPvXvEIqIiIlvSY8Hs0fYnIttp1M3DvTLDpijbUVNHvwMIjMEbDhlv/ca6oLAB2pfjcxc/PMuPWOGCMH5IiUrl+kBMaXwvtEE84AojyXxrIR5VaWR7O78SvCPVnhN+2AuyGrzPEvbsQXkQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2016 08:01:52.0629 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[fihe3nok0735.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1226 X-Topics: patch Subject: [lng-odp] [PATCH] linux-gen: sched: clang bug workaround X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Workaround for a bug in clang version 3.8.0-2ubuntu3 (Ubuntu 16.04). Clang throws an error 'variable t1 is uninitialized' on line 420 even though 't1' is always initialized before the line. The original code works on clang version 3.4-1ubuntu3 (Ubuntu 14.04) and on gcc. This fixes bug: https://bugs.linaro.org/show_bug.cgi?id=2387 Signed-off-by: Matias Elo --- platform/linux-generic/odp_schedule_sp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/odp_schedule_sp.c b/platform/linux-generic/odp_schedule_sp.c index 8c45123..8314640 100644 --- a/platform/linux-generic/odp_schedule_sp.c +++ b/platform/linux-generic/odp_schedule_sp.c @@ -385,7 +385,10 @@ static int schedule_multi(odp_queue_t *from, uint64_t wait, uint32_t qi; int num; odp_time_t t1; - +#ifdef __clang__ + /* Dummy initialization due to a clang bug */ + t1 = ODP_TIME_NULL; +#endif cmd = sched_cmd(NUM_PRIO); if (cmd && cmd->s.type == CMD_PKTIO) {