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 21FEFA0C53; Tue, 10 Aug 2021 09:51:43 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0C90040E6E; Tue, 10 Aug 2021 09:51:43 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id CF3F64068E for ; Tue, 10 Aug 2021 09:51:41 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10070"; a="202026010" X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="202026010" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Aug 2021 00:51:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,309,1620716400"; d="scan'208";a="671614209" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmsmga006.fm.intel.com with ESMTP; 10 Aug 2021 00:51:40 -0700 Received: from shsmsx604.ccr.corp.intel.com (10.109.6.214) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 10 Aug 2021 00:51:39 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX604.ccr.corp.intel.com (10.109.6.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 10 Aug 2021 15:51:38 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.010; Tue, 10 Aug 2021 15:51:38 +0800 From: "Zhang, Qi Z" To: Ruifeng Wang , "Xing, Beilei" , "Yu, DapengX" CC: "dev@dpdk.org" , "thomas@monjalon.net" , "david.marchand@redhat.com" , "nd@arm.com" Thread-Topic: [PATCH] net/i40e: fix clang warning on non-x86 Thread-Index: AQHXhSXw+bseDdfPAE+yVfM3ZxFXsKtsbpsg Date: Tue, 10 Aug 2021 07:51:38 +0000 Message-ID: <2dd15e82ec204806a679fb7294279403@intel.com> References: <20210730093258.46064-1-ruifeng.wang@arm.com> In-Reply-To: <20210730093258.46064-1-ruifeng.wang@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] net/i40e: fix clang warning on non-x86 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" > -----Original Message----- > From: Ruifeng Wang > Sent: Friday, July 30, 2021 5:33 PM > To: Xing, Beilei ; Yu, DapengX > ; Zhang, Qi Z > Cc: dev@dpdk.org; thomas@monjalon.net; david.marchand@redhat.com; > nd@arm.com; Ruifeng Wang > Subject: [PATCH] net/i40e: fix clang warning on non-x86 >=20 > Build on aarch64 with clang-10 has warning: > i40e_rxtx.c:3228:1: warning: unused function 'get_avx_supported' > [-Wunused-function] >=20 > The function is used in x86 specific path. Moved it into ifdef to fix bui= ld on > non-x86. >=20 > Fixes: c30751afc360 ("net/i40e: fix data path selection in secondary proc= ess") > Cc: dapengx.yu@intel.com >=20 > Signed-off-by: Ruifeng Wang Acked-by: Qi Zhang Applied to dpdk-next-net-intel. Thanks Qi