From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0043.outbound.protection.outlook.com [104.47.37.43]) by dpdk.org (Postfix) with ESMTP id 1DDE01B33B for ; Fri, 26 Jan 2018 07:40:52 +0100 (CET) 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=hJFSi9kNQGUKuG3MJYcJv0adJR7bRA530G1KT4H5SBk=; b=g+A4v6cgD3bSvHVcRGxzGEgdv9MNKIvB7JyOFvWyVwVoGxfYNkoFRhHQPoDkHd7SSSH7LxoMRIqSC+cs1kNHoSRpTb4Rkm1RZVk58ctU4Wp4IXQeUpCwCiOsRxedN2JBlvAUPjjpcAnGxEZM4gcWFyDzUy/eInzkPR95Nzbp8Hc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (111.93.218.67) by CY4PR07MB3461.namprd07.prod.outlook.com (10.171.252.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 26 Jan 2018 06:40:48 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Fri, 26 Jan 2018 12:10:16 +0530 Message-Id: <20180126064016.9966-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> References: <20180123162240.26831-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR0101CA0052.INDPRD01.PROD.OUTLOOK.COM (10.174.150.142) To CY4PR07MB3461.namprd07.prod.outlook.com (10.171.252.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74cea2c3-1949-42e9-a4e0-08d56487bdd4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:CY4PR07MB3461; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 3:OC2djXDfnabmNajROzaoKcUwdTmbAd+os/3gBbutSjZpWKLU2j4fO12j3o9gtj1lSfp97DemBOUjOHNxfpv7xN7m9z3/tXb/i0wyO5nA2V8g8RCjQwEvbv3DgSbGsdKqftMjROVy/iDQ8B3lq5nmqhn9J1f6pyAiziyRYSuu0LO+kg/a7jEANvA02wXK0r1SfKvIehghM5skZUVARluybg6yyeLEow0WopTdXguE6Bc719GYxRyZS1osJD4MuM4r; 25:fFaG1mz/8pNnhib8FTBjxYk56xh3tNkNLBBKzpOW547ZHJIAOaGG7BQeXORjXAf6x2oJWyo7h73YQoAwit7x/NgJ31G7mzClST2H4o/EHNtI45QqfBtFwqrdJzywmtByAhbAfJrJAqLSCp7kTSM4ulK3qu4pOJI874YVQv2P2yxayQkvuTuPI7lXVJ/SVC9m/KZh9WUG4T2SxLH/gMjyZbGIAnqUn6xdOIvy+Ek8rQPjWNqrI7ZnzgI/6HiThJXz8leIebwQmr2LPYQ/rJwwWTSUFjXl8q/ZBBprbM1SOn3RYEXQ0Uwa4/RZTYk0tcATMPJn/+ckrRkw3eG8NOmOiQ==; 31:MvEuqKIqTcwRSQKiYdqvft68WzQH1QxbqGLvEfpqS4sKrsv7Lvkk9GWtp4FNGSNDA4VK41e4xNWAvWboCgrrr78VtANVLsXG48wI+j7+iUf6KL+j1or1SdoXPXd3aBMM2owTbOx1scPlFcreGgxctMrBBUtEIsB3NC2yrXLG6batJFgDZua/EEj3M27kIdiBGdVK0fJDBVVGL9a+PTOmze7kCwv1xDTVoz7ozpjpyYU= X-MS-TrafficTypeDiagnostic: CY4PR07MB3461: X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 20:rlkOt+KhSpJPh3nagXPq7D9aIfbMFyEZt3XuRbrew7DIz5U4yYFj4i2yxvjj5JT7pztXBCrJ+ppA3PgTtcUSo9QxBNqsNLivp3xwMP+YrP/LSfhLeGuL7dwlH8oJkIRpiCeRdJ2yLuFVIPVUjLBt7Y0WNy682d89X+VTQ2dGNAJknoSEH+atJey1bx3YZQuUkKD83zlqAVvW9LHQ3R7spuvH8FRzeEucviI3AFRr2UJCRjoRSSPu1bdZ3bd0ipAKUsY9FVqJe5A2B79Pejk92CmxORTYyS7GHjIb7+e6ecMImKHR2VR2cZD+KMuSf3aVnDDRZtKM1BcwsTrQumRwUqgu5JACbfIzMvIa4dJxvmVV49t72R/p5S8j8trtxXiKFxNXYBuqtsU/lnaCOFN1J169I0k85/t6i6vWSRmUl1v5QC26utHg/ZBjbQNYs7rwtpFdg2y8BxEcLK1z1iDPK3pP5wrDVK2PPJ+N+1H4atywSbMbdapu4X0W/vTW58Y/wD4jRaC9GbVQWzOq8fsfPioX2PMMErierTfRLRidy/GE3DmYXJ2MOw8sUyKlpkSEiq8hr5sAMcGHH0zFjiadvYubbtCX5NZLd3aTeL+sOcE=; 4:Njx9vmLC5p/hMNSlFBh7SWNacEmKzSdGQKH6BUDqfq64hVm9kHFSacfWmJPYKXmcuD1Y9TkpOBsX+YfX8KP4ISYs7Jev4atL60FMuc0jcsNNiLjxSQxlqgl+e66FH6SkJt+gZRpL1pgZogfh97z1T7t7sjflqSgIpodZrG8nLcM5IqP+o+dzHt3kDPFbLje74NWDowXw9CtDVqCsDf5RhV/LMxf9RT7K0G7yiYb3fs+d16YHXC4FwSCEhVHF+3jaryEbboTZXW/qRhSgayfPUA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(3231023)(2400081)(944501161)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:CY4PR07MB3461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR07MB3461; X-Forefront-PRVS: 05641FD966 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(39860400002)(376002)(39380400002)(366004)(396003)(346002)(189003)(199004)(6506007)(81156014)(59450400001)(53936002)(6512007)(25786009)(81166006)(7736002)(68736007)(575784001)(76176011)(1076002)(2906002)(48376002)(305945005)(6116002)(3846002)(106356001)(6666003)(97736004)(8676002)(50466002)(386003)(107886003)(42882006)(47776003)(2950100002)(5660300001)(105586002)(72206003)(26005)(6486002)(4326008)(316002)(8936002)(5009440100003)(478600001)(66066001)(52116002)(50226002)(36756003)(16586007)(51416003)(16526019)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3461; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; CY4PR07MB3461; 23:1v8rIiNceoLHHiupr6kGL29gzdFifwWZZqIJ/INqH?= =?us-ascii?Q?6fat1vmx1TVedYuU8dTTRGt95g+4auqu8YjrwLnSeH2UnGeYTgMhHnp+JHuz?= =?us-ascii?Q?S7TZubHtWj9WIhe8b7KB46uW1Xkhh5rhDca3MR8Ywea602boDVME9GkhBixB?= =?us-ascii?Q?L0WS44en3FlTWy0wVbY0ZQe1n3wmidNobxJFF/NX/RGBoifYno4tro73IgXX?= =?us-ascii?Q?GHQiFLMpnK8ubC3ikfa8morq8lFRbeU7SEpcMnrEloGpnoMPjcFh0ZG/bA/F?= =?us-ascii?Q?EBweyPpoJFfXO2O27mmU+2DhQ8k1ccDsDBFv3vbywz9kTAxw0wmpEheW/n6B?= =?us-ascii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aRmWQgYn+I0vKtZ?= =?us-ascii?Q?hk2B2vPxlOJ1rv5UpA=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3461; 6:f6nKRxEiT9u/YKqPPsokESpMIFNEBaaBB8yybHqgstxU8pOU7LX1XunbRq/WSyJHy/QELOlA2xA3C6sZekGcn4gyvqEUbsXa+CticTUZEfmiGX86nyQ8mKup5Uor7aXX4kngacJcglx4ZujxMeCiYt1VtlkmGdvBMIrye+d+E1ZH3zkPfgCMYhwieQ1prYzqgEtcL9aNAhlmL1g9Qi2+TSZj4AP2/6adaM2X04LjRbaNJ7Ysodvg46+UR6DNCjth17U9jqmF+SmF4iTzwC/y11Ob5JP/J/MEuHc9iRqGmjjcj/4xUdgYbtQ5MkJBp43F0TMV82VeOPY/egLZs1r/HmVW9WthTJoMIkrOuJyIOVw=; 5:byG1oDdbmSHnc4qkBTjlOM05G4o6wvRjSdCcyYy8TYZesOPmjNFH/ocCQxecWkYOLUY3rzcc9FyTpkqMLu7XM2jJknEZV9bP4dRTbx1jGEM/GaoH0sWvEwG80/WrX0d607tSC2sLm+m/HX1szMRzMI4YWPkvy1pSISKc+lBxtUc=; 24:d9Hye0VQK5HbbluBBP0QD8FokUTOUO6vHyzbm5gw9CzVJSzh7Y4zDhCHP1UNPYLGbEuG7QEAvHpA+gyioMgcGKEFcerSIdgJixtLFg/XU5M=; 7:uVaB3gJGPl5pWw4rkMo/N0kRrYVBT/etU7rwZqkNGMzLXZHoLfElDde20FzfK8CE0eCffr4ogvwMfJ8Z3cTgziV174ks+q3nQQ6V/qrYpv+HmxElnU4TevzmPzBGHg6pxjWxX0Y7+K6w4T1kSbT1PFOMG73s4AjyFJhnQ8M+DeowVMjtrxiSUBjPZwaGAkRjM3Ld5rb06xLf0y4Zb0dow3ruzD60jARN2Y3AnGeKvPr5MfokaNi+hoZQFa7IkTUa SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 06:40:48.9891 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 74cea2c3-1949-42e9-a4e0-08d56487bdd4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3461 Subject: [dpdk-dev] [PATCH v2] net/octeontx: use stub for building in old compilers 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, 26 Jan 2018 06:40:53 -0000 Use stub for building clang < 4.0 as it doesn't support the following arm machine directives: .cpu Signed-off-by: Pavan Nikhilesh --- v2 Changes: - use stub for older clang compilers instead of disabling PMD drivers/net/octeontx/Makefile | 8 ++++++++ drivers/net/octeontx/base/octeontx_io.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/net/octeontx/Makefile b/drivers/net/octeontx/Makefile index b47bf7a40..5244eedd3 100644 --- a/drivers/net/octeontx/Makefile +++ b/drivers/net/octeontx/Makefile @@ -30,6 +30,14 @@ SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_pkivf.c SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_bgx.c SRCS-$(CONFIG_RTE_LIBRTE_OCTEONTX_PMD) += octeontx_ethdev.c +ifeq ($(CONFIG_RTE_TOOLCHAIN_CLANG),y) + +ifeq ($(shell test $(CLANG_MAJOR_VERSION)$(CLANG_MINOR_VERSION) -lt 40 && echo 1), 1) +CFLAGS += -D CLANG_BUILD_BUG +endif + +endif + ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) CFLAGS_octeontx_rxtx.o += -fno-prefetch-loop-arrays diff --git a/drivers/net/octeontx/base/octeontx_io.h b/drivers/net/octeontx/base/octeontx_io.h index d51ded236..1c0a941a5 100644 --- a/drivers/net/octeontx/base/octeontx_io.h +++ b/drivers/net/octeontx/base/octeontx_io.h @@ -51,7 +51,7 @@ do { \ } while (0) #endif -#if defined(RTE_ARCH_ARM64) +#if defined(RTE_ARCH_ARM64) && !defined(CLANG_BUILD_BUG) /** * Perform an atomic fetch-and-add operation. */ -- 2.16.0