From patchwork Fri Jun 4 05:48:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ruifeng Wang X-Patchwork-Id: 93861 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4DB45A0524; Fri, 4 Jun 2021 07:49:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B8E8D40147; Fri, 4 Jun 2021 07:49:28 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id F30D84003C for ; Fri, 4 Jun 2021 07:49:26 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1C5681063; Thu, 3 Jun 2021 22:49:26 -0700 (PDT) Received: from net-arm-n1amp-01.shanghai.arm.com (net-arm-n1amp-01.shanghai.arm.com [10.169.210.136]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AD7E53F719; Thu, 3 Jun 2021 22:49:22 -0700 (PDT) From: Ruifeng Wang To: viktorin@rehivetech.com, jerinj@marvell.com, bruce.richardson@intel.com Cc: dev@dpdk.org, nd@arm.com, J.Grant@qub.ac.uk, david.marchand@redhat.com, thomas@monjalon.net, Ruifeng Wang , James Grant , Honnappa Nagarahalli Date: Fri, 4 Jun 2021 05:48:51 +0000 Message-Id: <20210604054851.425452-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] eal/arm: enable FreeBSD build X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Build on FreeBSD on aarch64 failed with error: lib/eal/arm/rte_cpuflags.c:86:9: error: unknown type name 'Elf64_auxv_t' The data type is used by OS Linux auxiliary vector read, and not used by arch specific cpu flag API implementations. Hence remove it from Arm file. Reported-by: James Grant Signed-off-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli Reported-by: James Grant Signed-off-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- lib/eal/arm/rte_cpuflags.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/eal/arm/rte_cpuflags.c b/lib/eal/arm/rte_cpuflags.c index 845770f1e5..d84c9fc09f 100644 --- a/lib/eal/arm/rte_cpuflags.c +++ b/lib/eal/arm/rte_cpuflags.c @@ -48,7 +48,6 @@ struct feature_entry { #ifdef RTE_ARCH_ARMv7 #define PLATFORM_STR "v7l" -typedef Elf32_auxv_t _Elfx_auxv_t; const struct feature_entry rte_cpu_feature_table[] = { FEAT_DEF(SWP, REG_HWCAP, 0) @@ -83,7 +82,6 @@ const struct feature_entry rte_cpu_feature_table[] = { #elif defined RTE_ARCH_ARM64 #define PLATFORM_STR "aarch64" -typedef Elf64_auxv_t _Elfx_auxv_t; const struct feature_entry rte_cpu_feature_table[] = { FEAT_DEF(FP, REG_HWCAP, 0)