From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0042.outbound.protection.outlook.com [104.47.34.42]) by dpdk.org (Postfix) with ESMTP id 91E7F1B27B for ; Fri, 13 Oct 2017 13:32:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=r3nbfWMZgJXN2hpkJs4kqDDlX62iCqK4qUp+ESmD4F4=; b=ji/tUG0afT+CWx3X/F1xzE9oO57DXg3GRm7V4pwBnAh1SOdQA7f22hQTH4qnpq/YSna1sDWi7JgkhPqueD/m1pLEpOnedkoBhos5EB9Qa2uw/JG1r/Y972MdftAqL3sJ+TO8fFBjXaF+LUpFJ9kPRs4ig1G6gEBIxyTGwn2i970= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin.domain.name (14.140.2.178) by CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 13 Oct 2017 11:32:45 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, santosh.shukla@caviumnetworks.com, Jerin Jacob Date: Fri, 13 Oct 2017 17:01:35 +0530 Message-Id: <20171013113135.6395-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.14.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: SN4PR0801CA0006.namprd08.prod.outlook.com (10.161.215.144) To CO2PR07MB2520.namprd07.prod.outlook.com (10.166.201.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: adb71dd0-4469-4ab0-d703-08d5122e2328 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR07MB2520; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 3:Ywmy0qSg4bYwg2g+HE+QBMe9OKPMJhZvKfVUJTHaFkB3lG9Ob3QFXMl5owp8zsTdgTI5Nz1B6M7UOGvY7O/la9m8vSl8r5DDV8PzA9zI1c/9K9MqoGIQDMPlNXVST2VlII+P33PYwgvDGyrqx02DtH0aSyuoDjBrr4TJtQAEq9MAVTD5V9bgDPVvdof/jwutxDktAzn+6kKw82dpC5f16Yjf/94CHSjUGBEK8OMsinO1k8shlBvKeEOTIjl9w3yu; 25:eJCGj4SqMvgtBlCWRzg2ZVbwZT4CM1haWgsREUTpxamULoWxHRKd1wOQ4E7a330bj3/IhWAOGv0v0jSBJ2Yn8vkpfh94DYw/ygueuSCvEICMRVbb9xrVGnK/1R6+2ZhnshVNAMOGmowPXTHv+dnPOrjOyLHDoybGrRFoCx1lOAVcn6YbX6XtKwomZ/MjwsRpEDJWHHx7Wx1rAfY6uj9Kbms3Ep1dxTyGU7k1HCjmxZvW6pCCJG/Gf3ePHqPNmLeUHf50WPXMcPksGE0AVezYuMoGXM3XIQjWxbhEM+6EEVyMcx48pcdfY782pxEWR+qvo7AjKVHp2RH7gtaHGqKkLg==; 31:neeY4glqcw5Gt9IBWByOr+07MomnlHewJTfiilxiMGvIPJc5XMnOOCNCFOrFNqWCwwQhB7a84U9VvlBQfqgmk1L2tGIMHtbk+461jMtQ1+Vxie9EOdiY4QmxeST9RWbGbt4qUzNfP/JUE1tvvqBm/cgiHMFbQ86UtrEbDe4sDhOjXhYMHq+FN3FBdYSX+vUo03NZyYmIoQ1J6ZGEGQkYcxV7BpLD1Kbegq1F5+VTfp8= X-MS-TrafficTypeDiagnostic: CO2PR07MB2520: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 20:Nqh/U9fvEZhvkmu1FqqJt1GbhUYtzS2/ozhRBKpuoRGQafMU6AShBvVudJ/6BPt2lOTcntxl7yhztAB15fX3qtSjrwGP3g5z11ydFdV85rfTgaFK8JccDobOmof9/2NSVc4eDeXu3WbdtpykdEHxBOHjuWoupCua8Q6C66Xjkt5OILiB7vu+4rrxSjElDmZLyKjPxzLCFj1QUI1Dxhn2LY/EMB/eARrMhOjXNTObh6NSenndbeBKPZGC7F4jarZWhAmU1QT2+e0MC4Y0h1WVtpcxtEMF2+AlU5T6Qb18aFAtqoA/lIixvqFLtkUWtvctdgK5AZlYJR2UsTRhox6zv/RTy4kdrUAJlRtz2S0wFiGL6eiO9sE7THykA1BxrYSYFgsAxNjW9gU64KZ9XRCLfj/vvkCXdLwvhk2xS9ZeV2MXWeUuGfvQ5i7TXxwJjK1uR9TJY40tJfwcD1+1x/Sxezyuwqnd62rn5J1JI1LucqCByRBCYsw/yLiCq8tm0SYqU+M+MM5Wql6IvLoDhlMiy9YtCYm1iOF8RPGI+xHwW3sbHz9ttyxR6XpZ1diNxDwSQnZ8bY38qCy7oMUlUZEjcl5bHAjqSrZB3XfUFzh143A=; 4:R83UFLMH3lbdgy2gZPy4SOhF5pH5GBiJUzTPfD9xuB/MhgU2gakIEY9tBSGJrK8dstjP02fG/l+TAZf7P9biogmBb40ZYeY/fl0RXq1ync6aghb1OuhR8uL/lYMHlyhaWbSfKgOkJeFLkhl/RYLD2h0M+RYckcQLXpZUrJvHH3zWKejEup96Ur/vdv20uGWAprS7iRkH9ZSAqyq6OBqjAITqgnucSUjUHhP8jbWlDewZgH/GNccggPbu4FUNmNBX X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3002001)(100000703101)(100105400095)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB2520; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB2520; X-Forefront-PRVS: 04599F3534 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(199003)(189002)(8676002)(5003940100001)(50986999)(53936002)(81166006)(81156014)(4326008)(72206003)(8936002)(53416004)(478600001)(7736002)(305945005)(105586002)(106356001)(5660300001)(48376002)(2351001)(36756003)(107886003)(50466002)(33646002)(6512007)(50226002)(42882006)(6666003)(2361001)(6916009)(97736004)(5009440100003)(16526018)(25786009)(68736007)(6506006)(6486002)(2906002)(16586007)(47776003)(6116002)(3846002)(1076002)(66066001)(189998001)(101416001)(69596002)(316002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2520; H:jerin.domain.name; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2520; 23:jY/WVKptOHEwFjTg69qB2O9nvGMvVyZPTP3EIQz4+?= =?us-ascii?Q?O99+JFYZPDug2r6R+ZrOzTXSR52lR5NzjpQkRCMUpEt5vHU/6U4gMjvqqIAG?= =?us-ascii?Q?lHLpisFFkBuxQt8vuWiNbKZ+ENHMrf54UteRx75GoXjWlApMZWRGSBbSVW4b?= =?us-ascii?Q?CFtO9xW+b/Uxgl9XuNBa4LulORC9QIN1bf+Gnn4Q2ElSoQdb3WrQk3et9Lnz?= =?us-ascii?Q?E9P8dk2TKKQq00rjIfRIuXRh0eHPiWhMLAOocIhB5QUORx7Cf+ZmhLP6uxHY?= =?us-ascii?Q?e3YXQCxGfHR07vfYsauxbdaRCDgqkNf4+Mh5A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Ew8+POFkJKk1hC/X6FGHB?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2520; 6:3LW/mqPAO7XzXowWZRNGvK1eesagkQDinN+qSRt1XpwQJepfYZgLT9af8IyQPJSbyLNLbNHu3dtTFNcouJtQ7KWOZBdZapbz4goRjDOOhkRdp3VVug7IZysGdo0MssM1pkfJUZA873EKuXR00BGuYkSyDASHr3QqJWmH5lL+19pVqmiMscLHVCizN2DH752wrgeAMSRTAsfO1FqBlH2ungNYf3uGSYgd6ekasHwhZh9LBEAnstDZwmUifOXHoJIqvwIUbTBsGPzGZBMbEXHFcmry2xJDA9zjzwMFu8ZbPszkxVnfCVdSbTeIZESIpfrDZQKSh+LSOmrnzytqNaa9wg==; 5:cbRCAGRNTK0U3muW4jAV8oCQtzIJ9W04cfaMx28xVYxH4eu2sghwwMnYu4LSQs98kOk7i0g52SsxHu5yxwakSv4kmjWjQqCYG5naR5q+7i8tTHzTxULlbYcbwHE/WQza0Rof224JNcJLG/wX9bVflA==; 24:ENaZfHX4PLCBXiWjII9vMEnxycN7IqX+wS7Tvhrqeru1CXZdYKEqOLQQy/dXcBcV+k1Y1RCc4Q1M3kx/Db6uDId5e++P5SsT/iyCtTn+/N0=; 7:gqhjyx1Xqd6SNXaqGQ+ajosyy/rOW6Hgs9Pv3S+DPUtf5PLjF0b7X85CnaLqAUIqMPbojIRCLQMU5YN+3gv2dsu9diDyfIftgtSpkknGpfTHqL4lXy+ccts6+LbMmQLeBx0i4zkOCquigb8FdGEoPmdKCw4WnkZPyZEMhQHf56mICNXpzEpniruymxoKutg4E1Tk/7/Bz+RqOaw0uJO+qzc1anzubMpPW2Xj22Be3Q8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2017 11:32:45.0936 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2520 Subject: [dpdk-dev] [PATCH] mempool/octeontx: fix build issue with old gcc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Oct 2017 11:32:54 -0000 Replaced _Static_assert compiler function with RTE_BUILD_BUG_ON() to fix build issue with old gcc. Fixes: 02fd6c744350 ("mempool/octeontx: support allocation") Signed-off-by: Jerin Jacob --- drivers/mempool/octeontx/octeontx_fpavf.c | 3 +-- drivers/mempool/octeontx/octeontx_fpavf.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c index eea934fa2..8d5c2a689 100644 --- a/drivers/mempool/octeontx/octeontx_fpavf.c +++ b/drivers/mempool/octeontx/octeontx_fpavf.c @@ -523,8 +523,7 @@ octeontx_fpa_bufpool_create(unsigned int object_size, unsigned int object_count, int res; RTE_SET_USED(node_id); - FPAVF_STATIC_ASSERTION(sizeof(struct rte_mbuf) <= - OCTEONTX_FPAVF_BUF_OFFSET); + RTE_BUILD_BUG_ON(sizeof(struct rte_mbuf) > OCTEONTX_FPAVF_BUF_OFFSET); if (unlikely(*va_start == NULL)) goto error_end; diff --git a/drivers/mempool/octeontx/octeontx_fpavf.h b/drivers/mempool/octeontx/octeontx_fpavf.h index 263f733d8..7a39cd22c 100644 --- a/drivers/mempool/octeontx/octeontx_fpavf.h +++ b/drivers/mempool/octeontx/octeontx_fpavf.h @@ -92,8 +92,6 @@ #define FPA_MAX_OBJ_SIZE (128 * 1024) #define OCTEONTX_FPAVF_BUF_OFFSET 128 -#define FPAVF_STATIC_ASSERTION(s) _Static_assert(s, #s) - /* * In Cavium OcteonTX SoC, all accesses to the device registers are * implicitly strongly ordered. So, the relaxed version of IO operation is -- 2.14.2