From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0046.outbound.protection.outlook.com [104.47.40.46]) by dpdk.org (Postfix) with ESMTP id AA7F068F7 for ; Thu, 4 May 2017 08:57:16 +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=r2Qq0IzS2p+gXAkJx7roCvAcWiiRhg0PYj0a1viJQ8Y=; b=QzwnUNK2eBiVTSat43FUhNnSUmCFn178JWA2VKfTmcMYkWy1XGHfdb5mfnLBTx70urS6Y2Q87Yczwg4ePJ+6eWK4q7rSe4UWFhqmKoRbEGipX2SlPG4q6Gv6uyHivlXMaGdTIsrTb6O2m4rlVRj3Mc+HGTRzRDRKVDNSBZD/Otw= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from 1scrb-1.caveonetworks.com (50.233.148.156) by BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12; Thu, 4 May 2017 06:57:13 +0000 From: Ashwin Sekhar T K To: cristian.dumitrescu@intel.com, thomas@monjalon.net, jasvinder.singh@intel.com, viktorin@rehivetech.com, jerin.jacob@caviumnetworks.com, jianbo.liu@linaro.org Cc: dev@dpdk.org, Ashwin Sekhar T K Date: Wed, 3 May 2017 23:57:00 -0700 Message-Id: <20170504065702.22404-2-ashwin.sekhar@caviumnetworks.com> X-Mailer: git-send-email 2.13.0.rc1 In-Reply-To: <20170504065702.22404-1-ashwin.sekhar@caviumnetworks.com> References: <20170427140618.35897-1-ashwin.sekhar@caviumnetworks.com> <20170504065702.22404-1-ashwin.sekhar@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY1PR03CA0028.namprd03.prod.outlook.com (10.174.128.38) To BY2PR07MB2421.namprd07.prod.outlook.com (10.166.115.13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d340e516-135c-409e-f283-08d492bacb81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 3:MoE/NH/11PEESRUgqpoWTlVUhuRqo8+vnnIKqgVMBZldG7a2gNbeN0IgU3kKxqRFrbhHNwXVAegw6JtQnR/PAu0VxKMOEkLRjD502KF5PwPGxJdzHKNcARi1DnEbaiFf1NeIM7d3AUvCRT6VoZrB9+8z61Lu6tS0tQOctnY05yn75eK4Uq2uxHPTQH/wq3dBMVnwr7Y/Gfvaju1/DxiyB2OPyXr50rj/StlSrjkYay9mf2aqYDq2mUqi/ym6wi10XPJCaYLjJSASmFrLbwuRu+IZsk6LZXAFBp1sv57+1OyuXlKdccoikrnflHDPmQxyXgzlP+JjLeEuKkCVcVokrw==; 25:j7EXzmXCdV38wZ/812xIAb9lMXlxcBMOsLZm0sMjQ+8k4sUUF4w0Y1rq/pE1ugJRYfzeU/eXQa3EKyrhMUDObxcbrgILLR58vOgw5RDRZJS7nZnTyvO5FxVzH4Cpfl4as+dyhAKlrKXxkxxQOMPPj68iAWC7ofX+jCaiS4ewMZoiJN1ba9D7hV2+lMndeiS0A2Hk2i46vhekW/pqyQmbUD0Ezk6UQq0Yw/dzDNVBKuUkApSplU4lYsEM24Z2cQhIxJokbb2Ny/NkWNwDSf+msnlVmig8EkJXnbOWG5LNC9m4XerByHD3DyArKxnlFgnjVmeiL5johl66xtet17iHxrKJ5kinkUeHjIBhUYg83i39xMctvHbrbx3Bd4qxwW/POo4EZDpC2iIAujY34I7yqTsJhx3UobCQAtrb5tRsN79QNPuFJxxU0Sn6l0OmtldqDItBmv/LeaPHMp8twRyEUw== X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 31:cpjZd+NBrEFfbFa+QDyhyQLa3pI+/BOSpgAxA2cVnlOykMsCyg2e1fceQnP6P61Ia/my8oshhOg7Npy0ljPp3SF1qZNymnswXAQlnu6/f8BxHHrcQVaHRCgM/zdm1TKSMVQJdZdvcQrabcpOKYw09r+Y2U+aU5rV6gxUKJ5HBoWfmDFyjiZ0qb2IwcpelPmsDlRbYPXLzBYFowGxZPCIa9Tf3LhBzG2b1ugWHRYfSSt9PvUfZQ0Vge04j1CAXnHn; 20:bOQc0nBNkhtuXG9jLRIGFU6GHRKXkLl99cX6lold2l6JYWULlRGbzVawiO7sW7GedcB9vcS4CER2hK8FjPVazxWoOnhKLn09Ae3YrKgBJxkGuNpsqP+vsfn2C84PoLKiRNK3rx1yHHaaw5aMK9kXOvWMmjj8ZamRS9KMhNcge6vcRhnDyWwFly8uSNMg/bACaAwhGW75AJiWHLogoOAg8LZ1uSF2GicRXEtp31UQDGjq6ZiXZ+EaBuSKMgywtGB/zmpAKsOyZorgsS+efeaQ4T5ahTtpMnMYlemTeFoOvPPhLSIt/VumeymVle4RZNMB/tMaqBu1J0qq3cT+Agb4prBjaCGcVcHQwqAVKqlB/ul3U0ObaJR2kzz2qzG2BAbag5nME4QkQL1d7Lf7bcRnMzv+ruffCQgYDkdNnU0OAaupfStJlsBFbqe2VDGEfSOAYXmk/bEKUoo/yXWNFdDw2kBFW0s/zGXVkbv+hAEfM7+g6T1xNAbaaRxjJlC6j7t6gmz/wCqzFdm4Dgh9lKF/5vTCCGXEUWn8BXGs7BtMmdXi5gSt9JB1Y/eSkQCqlulYRGHjBLqf/Q4sVDnLOumYaWYk2kX8yw8CUWl7YIKBSeQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(20161123562025)(20161123558100)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:BY2PR07MB2421; BCL:0; PCL:0; RULEID:; SRVR:BY2PR07MB2421; X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 4:HZ8H7BLggsM9SS7P4tLl/Ioj3w3HD9r7kbH/m8f9sP8kTaCz1gqBVgldmS+Pl0Fww9PG7yt8Jy21V0QQUviribIrIKCCzVF9urKdjCnIN47QdWkQRcugV6yz1XtmAdb2v3C9YD6QXaAmLLvztnT5xO3d3JBhBOPXGP1/T+GRihwkN6N21HPTnycleKB+u1WQ00d8mGsPAphzsZlpSzHvUoJAgoQexFmMK8p4pay3uOF+T93ccr1Cf/ShlQEwJkLO+04VZ++C2HrarFsVOTW7+CT62G/BRjXK2GriS0VCd33e4c1BPr7qeuQpAwQvJW19e5as8FhxWxuxUVlSWk2J+oQAWpXEt04qtJsR0Izh69BK4CfQjVuXp7kL62nPYucl5Y/vcOhygtKy+dgyUPnuc+fDcPZRZ9HI8tUZlxfvVoBjpPrA1ZB6z7Sk8BvflVwUx+xQ0yonpx6cifSP7VilXUW+iB4gnSINYu3ss3ySL+wMtV6TYB5qqS4dGxrLzDtJC4JknYUwNJ89VrHw3/+45QC7QeWpvkwD8Lwg9YKPt8dlUHLyIrn4GIa8Q6kGi/g+WHQqkFq38FBV4vqeoDekozFLD5RUkdNynSixWfQnDljOxfpW0e/BXnRvPDHEjfdOL3X8Zmhh0Iv2whNJ5nKicRyx0ztnzMg5tx42RUwXAOpJCUwBM63TYiqwGzHY2hdeIeuveM3bE9JSPcxX7TCcqkfusrHc+7mWmfMAkgpnFzgxaCzbogqb3O1X46sB6RU9zEW5RzaSODhELp0VFMbKEQ== X-Forefront-PRVS: 02973C87BC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39840400002)(39410400002)(39450400003)(76176999)(8676002)(50986999)(5003940100001)(50226002)(6486002)(36756003)(48376002)(50466002)(3846002)(81166006)(6116002)(1076002)(66066001)(6506006)(47776003)(189998001)(25786009)(53416004)(42186005)(4326008)(2906002)(33646002)(53936002)(5660300001)(305945005)(478600001)(7736002)(110136004)(107886003)(2950100002)(6666003)(42882006)(6512007)(38730400002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR07MB2421; H:1scrb-1.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR07MB2421; 23:PdV6muAN4jVjMxWnTWF8agIHZOfendNLAzpGKmRZd?= =?us-ascii?Q?H7QZLi/jUMabMgS5NTRQFg9F1oIqyH1jv7+wI4mycmV8gQw1azDFn1uhW9Dz?= =?us-ascii?Q?6XM1KBIW5BY+oQwiGsmZwW6vkJBFLMVLEPwbCReaSoDK8NZXpaVVcJb9Wso9?= =?us-ascii?Q?QTWwzytWjC8LDCB/Sm6wdUgimpE+rpYSQqr5KpsuOnrTRa3alYZCAZYlhy6L?= =?us-ascii?Q?PqqIgT2UBrcNFI+1K1Fd7jF5I/mg4b+j2E+mRikHzvY8clHzbbwogKgwuaSL?= =?us-ascii?Q?tAJEriBfhOm4YxXTSZ0uBagi2+v+nN0PKtxzGhRqnU8y4+vwMROC7HabpZwt?= =?us-ascii?Q?h2rwxRWJWtjb2bJqwcPJhpxZ9Ahd+JE9Hy46/2P9aTmyzIUoDQEhS+ivaVku?= =?us-ascii?Q?qVfny22TEcvXBYpHejWiRAiAzxsmmwC6OvF5XrhKLl+dfaiumyW2pXbqzSqH?= =?us-ascii?Q?7nGajo5+812VoPi50FheVBv1xG0hGXYWYz+Yr9xoIpk7HZ3VcoY0yUMfgw48?= =?us-ascii?Q?N1p2Dy8GU666xqfqH0ovs56ZMLdKq+IApcjUDUDtOiySOimPNfe7/uJptQ14?= =?us-ascii?Q?5yDSIvFafM38BRtaTT8vf1dOEc5BWHmiRoR2iTuDjUJ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4LfWmdE0MunwxhJHEYES1KxwhSrFOMcbcj52Qgg4IgXGIXCHkx8C4aAI2j7CYuhZCuMAsF5D5PexaQ==; 5:UUm52tFk4vxXcZNlXBHHnxDkb0UZd2k/KO1bsQGIPmMEeWtvCgaNpRaYSZAOlEfaas0bPFUAyyTtUVyal4bMjmkhUNpjQmArqVcyAy90NYm3aEYYtBxPoVNzjFgQQTswPhJyJi1IlgxzwsIUKw1TFw==; 24:j0Y9VmEtONe3nWjmkFw6x2cXbF603Dsr+zWiVvRK9xDuJjugAiueCIdTWgvtx4WrSJuFWGxI33W/fgTXkhGmf6XrJ3B+zp6t4YqF9mzU194= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR07MB2421; 7:zhOL1cyoi4TZNuB5ovaiBQp9PiGmV0ovdf5HK4uzVL9R347OK+tv68GzAVM89TxZE0ZGX3exryid+4B+OBolg6FUQk50GPgIXnnulOgdU2Y0E2kURGnHXQ1FVHX1b96iCicAN7QvyY/e8lrZl9qA3V90x3ABaf7alPwSwN7uX78lefNgALurnd/7UouRUpA5T4RawbbjhHe/FO7NsANAEWgEidFGVHH+/bf35smvkG22rWd12qeH75eElt/l8RDLLiWP7DX5gn3rq3rPQBd1ubMc11gqJ4MXcY39GAML0/XR/qY8JB7wZyZMPztwiOJZFtaWp5ra7HJmXc2oLwXsqA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2017 06:57:13.6031 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR07MB2421 Subject: [dpdk-dev] [PATCH v3 2/4] eal: move gcc version definition to common header 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: Thu, 04 May 2017 06:57:17 -0000 moved the definition of GCC_VERSION from lib/librte_table/rte_lru.h to lib/librte_eal/common/include/rte_common.h Tested compilation on arm64 with gcc Tested compilation on x86 with gcc and clang Signed-off-by: Ashwin Sekhar T K --- v3: * Moved changes for GCC_VERSION into a separate commit * Moved GCC_VERSION definition to common header * Removed the same from rte_lru.h lib/librte_eal/common/include/rte_common.h | 8 ++++++++ lib/librte_table/rte_lru.h | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h index e057f6e..717b445 100644 --- a/lib/librte_eal/common/include/rte_common.h +++ b/lib/librte_eal/common/include/rte_common.h @@ -66,6 +66,14 @@ extern "C" { #define RTE_STD_C11 #endif +/** Define GCC_VERSION **/ +#ifdef __GNUC__ +#define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + \ + __GNUC_PATCHLEVEL__) +#else +#define GCC_VERSION (0) +#endif + #ifdef RTE_ARCH_STRICT_ALIGN typedef uint64_t unaligned_uint64_t __attribute__ ((aligned(1))); typedef uint32_t unaligned_uint32_t __attribute__ ((aligned(1))); diff --git a/lib/librte_table/rte_lru.h b/lib/librte_table/rte_lru.h index e87e062..3c5aca7 100644 --- a/lib/librte_table/rte_lru.h +++ b/lib/librte_table/rte_lru.h @@ -40,12 +40,6 @@ extern "C" { #include -#ifdef __INTEL_COMPILER -#define GCC_VERSION (0) -#else -#define GCC_VERSION (__GNUC__ * 10000+__GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__) -#endif - #ifndef RTE_TABLE_HASH_LRU_STRATEGY #ifdef __SSE4_2__ #define RTE_TABLE_HASH_LRU_STRATEGY 2 -- 2.7.4