From patchwork Thu Jan 12 14:53:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Dai X-Patchwork-Id: 19268 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id B51E7F91B; Thu, 12 Jan 2017 15:57:31 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C3849F8AA for ; Thu, 12 Jan 2017 15:57:16 +0100 (CET) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP; 12 Jan 2017 06:57:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,349,1477983600"; d="scan'208";a="52472381" Received: from dpdk4.bj.intel.com ([172.16.182.178]) by fmsmga005.fm.intel.com with ESMTP; 12 Jan 2017 06:57:15 -0800 From: Wei Dai To: dev@dpdk.org Cc: ferruh.yigit@intel.com, helin.zhang@intel.com, konstantin.ananyev@intel.com, Wei Dai Date: Thu, 12 Jan 2017 22:53:26 +0800 Message-Id: <1484232811-39257-3-git-send-email-wei.dai@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484232811-39257-1-git-send-email-wei.dai@intel.com> References: <1484232811-39257-1-git-send-email-wei.dai@intel.com> Subject: [dpdk-dev] [PATCH v2 2/7] net/ixgbe/base: remove a compiler warning 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes a compiler warning. In ixgbe_init_led_link_act_generic() of drivers/net/ixgbe/base/ixgbe_common.c, u16 i will make some C compiler generate a warning for the line mac->led_link_act = i where led_link_act is u8 . Signed-off-by: Wei Dai --- drivers/net/ixgbe/base/ixgbe_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ixgbe/base/ixgbe_common.c b/drivers/net/ixgbe/base/ixgbe_common.c index 18bb18c..0dd33b8 100644 --- a/drivers/net/ixgbe/base/ixgbe_common.c +++ b/drivers/net/ixgbe/base/ixgbe_common.c @@ -1150,7 +1150,7 @@ s32 ixgbe_init_led_link_act_generic(struct ixgbe_hw *hw) { struct ixgbe_mac_info *mac = &hw->mac; u32 led_reg, led_mode; - u16 i; + u8 i; led_reg = IXGBE_READ_REG(hw, IXGBE_LEDCTL);