From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0049.outbound.protection.outlook.com [104.47.42.49]) by dpdk.org (Postfix) with ESMTP id 5B38B106A for ; Sat, 13 May 2017 11:27:59 +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=zR42B/j9BFXHAs73JHXYSDyvKUO8kxdrweWc1t+qbxk=; b=XS5r5ck4Dw1OGYgLcXeInVMtcP6HFM0qf1dRRjXy/tOjYKVdPqLtW3IvV9PUjEHBp2ukbJr/ZUbaNuUerc5iFLcDyljY0BlwZV8vW047apgM3ITNOKmTAZ+Cst1/5FaxqR+lqU52pbPf/2L5kaYFWnDtz9Ra7wTgAN5AYjuuMgo= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (111.93.218.67) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Sat, 13 May 2017 09:27:54 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, Jerin Jacob Date: Sat, 13 May 2017 14:57:25 +0530 Message-Id: <20170513092728.30050-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0046.INDPRD01.PROD.OUTLOOK.COM (10.163.199.18) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c08294c7-c9fd-400b-a5a4-08d499e2570b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 3:GvrJKIt5ilsewTMKA7xxfuW++P8IBnKfNP5kdKl2+IQbnlcelrB37QGVSQiH9HljTdvW6N5sfIjx7LKxfq6qA5j2NdkygYZNsYRVi9jGA91WLOXQYBgRwQGkPRbdyrniX9Tki4LGCKce4ei5M6JLHEdqV/sNQOudVPJVE6C9rfIXNikVgh8HeVjh9tI0IV2sWClP4gbW3NaS8rFEdJ+6qruOmp33a5pwD3cmrO0ob5btwlbJbH3pxSYcoTxAmUt7yJDjt97OcMcVTtucHlT9849YxmPhOQXdBdeXKjMd7t/FC4PC0Ucqpy2QBnjaHA2ugda1P5Hhw9SIRRRGTvY98g==; 25:qYzY6HWIj8waTsXseAy3O71HA/cNEebQn/upDs1D+cQyVdm+CeVgnwv7F6haspTx4UlK3URay5BEgoe2RqoSwfNSqRxJolj+wP876JXuBDj5qBrO3mjhObqNxB4gjqlaq+LigUC/J+GQu/pmLerONy58nnubXRjva5jczLpGB2+Qex1SV0pcchIsDycdCnxIjxfrqeEmRxsbDB23bMXvVsgoGErhyNvJQkkFB8KOTsy/80gqjeBCzMG1DyxW1C/kN4qhXdQD4GCUWLoPtpulrWS4/GGzic02WpoHBmUqoIsmwoQ+hMSU06Jp94NXm78n0acKy+UhOwoPRvGUnHcDyLxJa6nJayvIPbpduk9YmzZur2cE27fzbTQ30K+24unoCuqPP+qz/XigCz5dBS45l0VjG/cKRF9NB0IgOKSaw35rc60WJaW1x3AOIMoRht8ScQ8Idc2yBXW0CofXMppZLOrHkfKd1RFGovRJvMdWeU4= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 31:K1bB4Z5J7LMRpEkeESZlgv3VjPFML7kroW2V2nANS2CXQA+iHUXWmqZ+mTC37RdUs6Xa/H7uSMejjAi4jWXR7uYcgKQt6sEMEmr95E9ndw+/C0lwISmfXBYGpfshkMjJrlm3+24W+LCD6HzTRFpbbRo1xD+ApfVtQgbDTC39P/+fzTmirUpy96COSVPSKnwnjLE237IdohftfFbphRNdV6DKtihUzeblBJILnxu/m4UxPjtxd735MgarCVe8lqljYmsbTvEY3uDyQhUq3isNpA==; 20:rN1OZe0vTl/4ITCX5NwOlu3QM1wZWI4KS4rJG3ycP5zar3n/6iTiIA0Hzy9N/m69tcOBBXGtOyUcLr5CfXZJCjNkTHuqalUFbpsbjN7ul4fV82EpkTw58DeGxPJw/bzjbYmZlwrAOAPAUrwpmjHO6PB6wu+ynnaPN5894rgh8aEqaBskdmkAvCn9GcNzXjgluxz3q9h3yM4bZV9W9r8LOxo/pzzILM2Wiwqcn128HWSRrqW/iwsODArwfVybX4J613mcWsxbQ8Dry1zwLFGHtQcne2zWLe5q5Piisbc+dJMWeVZohiyhUW+45qFdZRI67/cHjibFUGi36Gvy5q518+Cfr0CEPCLGccU28jHVAUHI++F6fv2EyD1DqHdQPpL5C4kD2SvWBDyPGEEhAJE7c5ESQNPjis1fNphR4QP4QqN56NxVbeb7HulsFY9J0CpBvvCJH5hqFBZrkNudijq+rtTJxTUnhZp7RjIHZcEWJvTWHGh7O+k4BJ2PaxtvG+k31okdv79Q0zY+c+XnBU3tYbA3fCRrXFwmNMBmAHYsAu1rADY43+wQ0D5L2qkIfdl0ojtwmwkOfa9TjEMHNp67YHCqXWJPpx1lRwCxmKe89aE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(6041248)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201703061421075)(201703161042150)(20161123560025)(20161123564025)(6072148)(6042181); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:6groRFu4hl+5dsLPqfLska/9f0SO0Wudfvmm5JHAj3t9jXpPLtsbAfhTf+IxJ+y94AXHaBV+OwrrQiqzVudFrn8ut/R2oVIUb8pH7yVfZYzk/bEgaMXoD7CWUHgyznR8zgE06L3oDCC0kK5dHU/q6jyShHO9R001wPxsxDuBrqjtl5mdMEBuFkwNiJ3cyUkdUW20wIDdhxtIMdE26OBnb8JLEbZxnSaVxwLiTnj0PynxJFxKZlutrZDv+mzK/iO8Z6470dDoYKLufcNUf9Tit7fOTj0GunR/aYrveWOg+mMpxkWdzw2gFQBeJUx+4Oo+aqfvoLKYFQ/XWr1boE0/HZENAs964afzwBKjWi373rzAhZDJGuZkj+wHTcZEKwGwBTVDPvCSBl7mxQ7wQcAoskPsx7FqX9v6mZStADhV++jVOEudes5fv/csm9broPj2+jAwqm960h4DQuJKzRIdHe9H0ecCxXHE4BXOeZGXlE/oIoIwEDu0hVSYYFhAQVVDYDWehwpil+Io2zcxTtbIJpZEH839p4XpnBjlZVo8Zq/Lu4Qj+CDd6GoirMXJwmFIQvPzapbQhl285UA7O4EfVzEbL54pBHlFueAWlADqipSR9ObCUcC7B9Svy3SjdKWiZUmdehRxM9tivVXD3d9y58LP2TjovLTj+e9BE7aYx8YwlHxB9h7/2WBUBHTiyp1m7WUWQ8CZhYKXzwmcTTLNEIxhDxU71BJvn9uVlz5Hbih7s4tGrHzpnUNaBZlanjJR X-Forefront-PRVS: 0306EE2ED4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(36756003)(81166006)(66066001)(53416004)(2351001)(2361001)(42186005)(47776003)(33646002)(7736002)(8676002)(5660300001)(305945005)(50986999)(5003940100001)(50226002)(6506006)(189998001)(4326008)(5009440100003)(6486002)(110136004)(2906002)(38730400002)(6666003)(107886003)(50466002)(1076002)(48376002)(72206003)(25786009)(6512007)(53936002)(3846002)(6916009)(42882006)(498600001)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1722; 23:S6XsSKHNs1odk+FvRERawoGHnbBdy4KbGvcAgRV?= =?us-ascii?Q?qBuAtXeOhPfBu6u/AkaBCU2hb5+WKzcUumc2lPbw45MUSzdxR8a4QYgLuv4s?= =?us-ascii?Q?ZXXi/nCXTlAWWuP+6ySmMrgV2SL9qe/cy99++rBeJqobWIoJjUQ3gyna84Us?= =?us-ascii?Q?uWekR6yFLwBl4I6zCVbH8ewNNNQFFjQFve4h4/rhP8dpFbl4bpmJ5IEU9Cw+?= =?us-ascii?Q?aAsoGE8kn4avL9vw3Xr1q55aGZqN+qJkX9V5wF3B2ixcB0DB05qXWsiTlNBI?= =?us-ascii?Q?EYFb1K9NpO159AW/p/QyEyIZlpM0qQDtVDss6Otxf1B4+4SD/7Z4BqbDoRud?= =?us-ascii?Q?fjW1JV0VFnZq4dsnbNSpSYaH9vNw3NqaAadR2hXs0tyRBSF/QlN++vmE1xNm?= =?us-ascii?Q?IWlTCZy7e93isf7gFuo69Gfp80BqIlkMt8BOi2L2fy/A4nD7/rfei7lg3p6P?= =?us-ascii?Q?M+TOF8tc03/2LuoGQ94l2NJ6GfvF6ibBdBc3Z11Ym6FLq1b59UMEEEJZ0q29?= =?us-ascii?Q?oPsmponCA0ouL0qapU6mVazqMCbfDjZMLow9I3HTo+77kTllfj86xtu4jJ0/?= =?us-ascii?Q?sTOhUavtI6HKm7zssIYilagCg+uaf8wO75ALmMGwVF6bUIECZ24YZLyDc2Xx?= =?us-ascii?Q?LPj6DST3vFG/niGD/d41ukzvvb2rCKzjXir1FXaEHzYvgzuzRyU1CTLztL8K?= =?us-ascii?Q?E70oVjFuIuUVHt2h6l8dOxdonfwMwvQ93oyem4S6EO1HXdgbe+lyUWOGMSSw?= =?us-ascii?Q?E1wvr88syF9MFaSirx0G1gC0bnUEywInHfx1qi8KFJE8NK2JC/CDvweF6cpu?= =?us-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amDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 7:J/NPCva0SI0Cqs0ha5tijQ1c6bm95ZtNHdfd0qE969JrZstza+Ejwb8vn9Gd+q4/vHIYcchFmhZuYVxAhHMztC+l7EkeuVJXBrkucI+L5CHIaozjf5YPER8zUIIH6DjxB5AQJEBNgi4aO+fmMLynwi8F4BOVgBJ8fhA8iI/wHH6qDwDRHlNnkfWM7k7b4LLGSv3jC1z/MjGOE2bguW8eG9+sVXNyHFSe2wXFHzarqh3JbPLGJHXFksyFHw7EBEqAaOekDanV2sFE3zsNu1QWOWyDp3HruJNyCmxLs6Uj4Sq/EDcR/4fr5/22PvcAiKwjoMEgLM5CVcMCi1E9TE77LQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2017 09:27:54.5063 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: [dpdk-dev] [PATCH 1/4] eal: introduce the rte macro for always inline 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: Sat, 13 May 2017 09:28:01 -0000 Different drivers use internal macros like force_inline for compiler always inline feature. Standardizing it through __rte_always_inline macro. Signed-off-by: Jerin Jacob --- This patch has the following false positive checkpatch warning: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #26: FILE: lib/librte_eal/common/include/rte_common.h:108: +#define __rte_always_inline inline __attribute__((always_inline)) --- lib/librte_eal/common/include/rte_common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index e057f6e21..a9a749488 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -102,6 +102,11 @@ typedef uint16_t unaligned_uint16_t; */ #define RTE_SET_USED(x) (void)(x) +/** + * Force a function to be inlined + */ +#define __rte_always_inline inline __attribute__((always_inline)) + /*********** Macros for pointer arithmetic ********/ /** -- 2.13.0