From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4449CA0C42; Fri, 11 Jun 2021 16:42:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D12F84067C; Fri, 11 Jun 2021 16:42:54 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 072624014F for ; Fri, 11 Jun 2021 16:42:52 +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 4F6391FB; Fri, 11 Jun 2021 07:42:52 -0700 (PDT) Received: from net-arm-n1amp-01.shanghai.arm.com (net-arm-n1amp-01.shanghai.arm.com [10.169.210.99]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E03873F73D; Fri, 11 Jun 2021 07:42:48 -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, 11 Jun 2021 14:42:18 +0000 Message-Id: <20210611144219.322428-1-ruifeng.wang@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210604054851.425452-1-ruifeng.wang@arm.com> References: <20210604054851.425452-1-ruifeng.wang@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2] eal/arm: remove irrelevant code 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" Data types Elf32_auxv_t and Elf64_auxv_t are used by OS Linux auxiliary vector read, and not used by arch specific cpu flag API implementations. Hence remove them from Arm file. Reported-by: James Grant Signed-off-by: Ruifeng Wang Reviewed-by: Honnappa Nagarahalli --- v2: Update commit message to remove implication of FreeBSD support. 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) -- 2.25.1