From patchwork Mon Oct 24 07:02:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Forrest Shi X-Patchwork-Id: 78882 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp2443653qge; Mon, 24 Oct 2016 01:09:38 -0700 (PDT) X-Received: by 10.55.57.9 with SMTP id g9mr13243678qka.116.1477296578462; Mon, 24 Oct 2016 01:09:38 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id v59si11548537qte.6.2016.10.24.01.09.36; Mon, 24 Oct 2016 01:09:38 -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=pass (p=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BB8E960DB9; Mon, 24 Oct 2016 08:09:36 +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=BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS 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 40BBA60C1C; Mon, 24 Oct 2016 08:09:32 +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 55A3760C29; Mon, 24 Oct 2016 08:09:29 +0000 (UTC) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0132.outbound.protection.outlook.com [104.47.34.132]) by lists.linaro.org (Postfix) with ESMTPS id 03C7C60C18 for ; Mon, 24 Oct 2016 08:09:28 +0000 (UTC) Received: from DM2PR03CA0047.namprd03.prod.outlook.com (10.141.96.46) by BL2PR03MB372.namprd03.prod.outlook.com (10.141.89.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.12; Mon, 24 Oct 2016 08:09:25 +0000 Received: from BN1BFFO11FD043.protection.gbl (2a01:111:f400:7c10::1:106) by DM2PR03CA0047.outlook.office365.com (2a01:111:e400:2428::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Mon, 24 Oct 2016 08:09:25 +0000 Received-SPF: Neutral (protection.outlook.com: 192.88.168.50 is neither permitted nor denied by domain of freescale.com) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD043.mail.protection.outlook.com (10.58.144.106) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.669.7 via Frontend Transport; Mon, 24 Oct 2016 08:09:24 +0000 Received: from localhost (rock.ap.freescale.net [10.193.20.106]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u9O89MGQ000746; Mon, 24 Oct 2016 01:09:23 -0700 From: To: , Date: Mon, 24 Oct 2016 15:02:19 +0800 Message-ID: <1477292539-23400-1-git-send-email-forrest.shi@linaro.org> X-Mailer: git-send-email 1.8.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(199003)(189002)(586003)(106466001)(19580395003)(5001770100001)(19580405001)(5820100001)(105606002)(229853001)(33646002)(2870700001)(50986999)(6636002)(57986006)(104016004)(76506005)(6666003)(42882006)(77096005)(81156014)(7846002)(356003)(4326007)(8936002)(50466002)(50226002)(87936001)(305945005)(5660300001)(47776003)(97736004)(626004)(86152002)(11100500001)(81166006)(189998001)(2876002)(8676002)(68736007)(2906002)(23676002)(92566002)(36756003)(41533002); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB372; H:tx30smr01.am.freescale.net; FPR:; SPF:Neutral; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD043; 1:IWi5D30B9oyhUfWX115gka4JE92i7+KKjtMm1AmbYPtZQz4y7GG54sNh7TtR/PhOQOnjCM+2qGsuro2xqxTLg3PkRnzNLqJOMChSq0oUvdJFBNzt+10GRVJrFeEBrgH0F5ccrQQVgkeMrxSLEJcXnYlJwr8cGJpiGFpWAP+CHxcSQa07NqYNlGkWqlCnArTqdSXA9ibtFBCf4GU267B1vU1iRF52yJGEEEv3Y8hwK5QuWoW3LDvtTzm+ANUknt894inf1c11TvyoprwE4QSe5wgjPbzUhjj7qABoIw67VqobPCVzmZrvP7l4OOny4vVU6ZGlWYj5nLE1/kTxdTae5DfXhw+hpIR9jS8+iHqBlb27eJs79cPYLvDIjxIIeFj7KTVGrp2V3L8oZnFOkGG21FTiBTnsAnyoKZBedTjz7SexJCaorZ9Hhr7mkZXqXgVBFp7QfGhKkFYEXjUyqcQsNH9tdY0v9WgXaKJVpQ4qD/YJiO4OlSpv3OsLqF40usYjfaJPM+8aV+DQvsP9Y72Mx6UwkwYHg5HEBt0b0LJFHhIDEWqm6kQm6mxB2KWYQnTghLweR24ZSPHqXZGeReZ8ViMxNz/ToScFt5pw4tr3iNFkXc3wIGP3C9+fD5O26jvUxRr7GxbKKQmLk12nNr/gCQ== X-MS-Office365-Filtering-Correlation-Id: 75e27e99-f252-4223-9b70-08d3fbe51150 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB372; 2:jljxiaXxw3khD1+6rxEK2OISa0lLWoxCm7bZ1u1tCN5I4DT3IEnF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TVy0bRXin+b9v4LMSwPgNJN4WGApF61X+IiQX1m9FFItIAVbgcbXSAQA/DpHM3QPCXwTlhy0VcHmC7Y8LO0/JqblnyUSS83m1VHYEX0gLkTt3rM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13023025)(13015025)(13017025)(13018025)(13024025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BL2PR03MB372; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB372; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB372; 4:FHNXJ7S2kvaUoHcYNEMurWWsxg7HNxMKouVSW1NGxor3xNajrXFO6NE80vYTgwyHH6lU5UL9CHNJPiPyG5iBS2ZcwaMrfLs7fuLExEpcx12WTc2+roZHT52Gm6BSPPZCas1kdMML1x+vdU28l082HZ5ibqDbNZ2k40TCYw3oadZhVEH9dxnxcjfd4RQNFNN+Y+RAOmr01yuNjU9aCgh/H0cllbHkw048bQmU69Bgi5Ur/Oyu8uX9krx/fYSC4MtDmdTMmrOwFuXJlWq+P1J+IbtjLIRnndgZxz3V5EAVnPGOf1aH1qSjkGGFWzZc6CCK6xsk+vSWZ+BvBOyw1MNPVb/cvqAluquc4DKhnP3opOipdmoGoEFlr9fOnmoPYtdyF2JDLC5KFwjDdNRmG3Ort9GnEfWLNdHhAXrNGH1sGH3MLXLbt95EJkllL889b2yA3n9UmNarK/iTKvqVNvz1ThBzX4iz/WqpD2UjT38sj2S0OBflhS+UPu7WtDxqS5WmzosiCrQyBIgMMxGH7Tu9cw== X-Forefront-PRVS: 0105DAA385 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDJQUjAzTUIzNzI7MjM6dmQ3S3FaRERodVJPNnpkcFJGK3F6WUlRNmVV?= =?utf-8?B?a3dLSC9ORGN2QmNaT3dHUFQ5WmxRZ3p2bUJxN3pvMkVMMmF3RkxQZl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L5YKJWn95ccSn0eHcq0Esyf3c8fDSkNOiMYWQ=; 5:UQuIUbLIXQEoZbzwGbtsFva3F777BXgRokFVdPlT15LLBkSAyxNqwp32Jo+bhBF+07uD1UrTYwD4TVtW2XkNNI0Fa7iZhzgHqYDzj6Ea2yleTZsPNm04iKK/YZZfcWru4VOAIWFtFEieBl6auWfwfExCW8CpizjXZC1Blclarro=; 24:uUGd5Lrn2tPLgDxNoAiOL6PGUZtDl1WNVQJvIH6rhZPwz/aUPnNtl90XqS8SR7b2AGYS5FGr/+bMq9jrJ0S/nYI8bIJ9VDREjD7Qrbqp8dU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB372; 7:LHIDMA6n6iV7BAU3+Hdo5pMNf9I0GZwhFwp+cU3QHWGCafZX14cJLuKBwr/k19AVx6KIpaZBVS5+84JsoxCSGXUuomyOsiPj/ChNNiIEVH4yWKxr1DCseWdF9k8fkHkdSOVBW0eJRtjEw2ZbJjW6kLGxhgSsKZ7ONuK1yXMsPfeWuw0FyQIkKh3IEvRdf7WshFr6E16+oIM2tN44s0sUzxfRPTBkKDubjUyJfVgw2v9S9FsRCwxqs4iHnojob9G8M/OMYhHLBxu+1mcdHAaWx9rFjzfcXSYY+2MCHJUGH4AaGLUyYSitATw89auP5199j11c1WTnJvtlqLQmoKIK/LwA5G3FsJ+uyY3Sh7u+Hcg= X-OriginatorOrg: freescale.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2016 08:09:24.4077 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB372 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: fix ISO C compiling issue with -Werror=pedantic 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" From: Xuelin Shi ISO C does not allow extra ‘;’ outside of a function. Signed-off-by: Xuelin Shi --- platform/linux-generic/include/odp/api/plat/atomic_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 Reviewed-by: Bill Fischofer diff --git a/platform/linux-generic/include/odp/api/plat/atomic_types.h b/platform/linux-generic/include/odp/api/plat/atomic_types.h index 3bb2bbd..33a0565 100644 --- a/platform/linux-generic/include/odp/api/plat/atomic_types.h +++ b/platform/linux-generic/include/odp/api/plat/atomic_types.h @@ -32,7 +32,7 @@ struct odp_atomic_u64_s { * data types. We use a spin lock to ensure atomicity. */ char lock; /**< Spin lock (if needed) used to ensure atomic access */ #endif -} ODP_ALIGNED(sizeof(uint64_t)); /* Enforce alignement! */; +} ODP_ALIGNED(sizeof(uint64_t)); /* Enforce alignement! */ /** * @internal @@ -40,7 +40,7 @@ struct odp_atomic_u64_s { */ struct odp_atomic_u32_s { uint32_t v; /**< Actual storage for the atomic variable */ -} ODP_ALIGNED(sizeof(uint32_t)); /* Enforce alignement! */; +} ODP_ALIGNED(sizeof(uint32_t)); /* Enforce alignement! */ #if __GCC_ATOMIC_LLONG_LOCK_FREE < 2