Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp5093452img; Wed, 27 Mar 2019 01:49:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz+qSm2fDDK2xVhlFDIZAC/eOW2L3eTgM6gueH54+sbDLoCj8J91iFcLBRNVuDuA+15+yO X-Received: by 2002:a62:304:: with SMTP id 4mr13865856pfd.99.1553676577257; Wed, 27 Mar 2019 01:49:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553676577; cv=none; d=google.com; s=arc-20160816; b=hwDygav1xwPn8PE0VrAeUtX0TaVPyEpSaIx8Spcrec4GDbwa85R8rpTdnN0q26EwFu ABGd9rbp3YNNY3sE6Wl7C8ZJ30KS0uZBoudkrNDnk7/c6PMLEARd3WD5ndGtCEwUPkZU LSNIUOQIjr9hoqUEn8jaTBL2SIO+dHrx9ow7zi0hl7GJKnS/i7S9vFvOgqedwXtBtoX2 1shzrR5dEQyDIMEPUW2qrJpeylVzCAC3ia5BgG1IhYpuHo+pPbbvy1516eem5u8109K9 /Rpihbnvph3TCcD6gS6MvbRDnlf8U5PuWTo7Q5zvfosqc8JKy8/SXuYTVk78CHcfDHl8 ZS1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SblnJW4bNifbE4N5zR3Q9b4S5hXZ8WdCcfWioH0J4xc=; b=u2MFW9XYEEoIcMRQdMuCcdNb6JEDWzj6uYy26/zsINvMAb2DDqi0QuBk7hv8ta5ZCX NjQPYVbGNJoXCBK/AsQCnlFhWVkQXr86mDEHX8lNGGagV/+NcA/nLR8pALUuo1sotdHc FeUW6WC9Bw1Dc41K6eIQ4F+YYBkSML0IC1O80ThiHp5hPHpIldap6/n3+S7kzv7rF4s9 KgPmr8O+tThiXmXRpfSCARN0hdgwezRrnILlFUA2oVcM2NG9IhBYMxvXzTlrfL1K3WLt XnQMow9md+NfG60lz6n8WVB6SLMtEuB40LfSnpj7I23qqsMOQUZCQ5QJkFbN3aWFsg9T Cqpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c31si17540572pgm.490.2019.03.27.01.49.22; Wed, 27 Mar 2019 01:49:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733023AbfC0Iqx (ORCPT + 99 others); Wed, 27 Mar 2019 04:46:53 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:56865 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732108AbfC0Ioj (ORCPT ); Wed, 27 Mar 2019 04:44:39 -0400 X-Originating-IP: 90.88.32.136 Received: from mc-bl-xps13.lan (aaubervilliers-681-1-91-136.w90-88.abo.wanadoo.fr [90.88.32.136]) (Authenticated sender: maxime.chevallier@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id CA76440002; Wed, 27 Mar 2019 08:44:35 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Antoine Tenart , thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, miquel.raynal@bootlin.com, nadavh@marvell.com, stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com, Russell King , linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 01/18] net: mvpp2: Don't use an int to store netdev_features_t Date: Wed, 27 Mar 2019 09:44:05 +0100 Message-Id: <20190327084422.4209-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190327084422.4209-1-maxime.chevallier@bootlin.com> References: <20190327084422.4209-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org int is not long enough to store all netdev_features, use the correct dedicated type to store them when building the list of dev->features. Signed-off-by: Maxime Chevallier --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c index 25fbed2b8d94..d0644cfc5346 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -4848,6 +4848,7 @@ static int mvpp2_port_probe(struct platform_device *pdev, struct mvpp2_port *port; struct mvpp2_port_pcpu *port_pcpu; struct device_node *port_node = to_of_node(port_fwnode); + netdev_features_t features; struct net_device *dev; struct resource *res; struct phylink *phylink; @@ -4856,7 +4857,6 @@ static int mvpp2_port_probe(struct platform_device *pdev, unsigned long flags = 0; bool has_tx_irqs; u32 id; - int features; int phy_mode; int err, i; -- 2.20.1