From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Richter Subject: [PATCH net-next] net: thunderx: Make hfunc variable const type in nicvf_set_rxfh() Date: Wed, 11 Jan 2017 10:17:02 +0100 Message-ID: <20170111091702.6343-1-rrichter@cavium.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Sunil Goutham , Robert Richter , , Robert Richter To: David Miller Return-path: Received: from mail-dm3nam03on0041.outbound.protection.outlook.com ([104.47.41.41]:60491 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756004AbdAKJRw (ORCPT ); Wed, 11 Jan 2017 04:17:52 -0500 Sender: netdev-owner@vger.kernel.org List-ID: >>From struct ethtool_ops: int (*set_rxfh)(struct net_device *, const u32 *indir, const u8 *key, const u8 hfunc); Change function arg of hfunc to const type. Signed-off-by: Robert Richter --- drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c index 2e74bbaa38e1..3a4761aa8efd 100644 --- a/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c +++ b/drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c @@ -635,7 +635,7 @@ static int nicvf_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, } static int nicvf_set_rxfh(struct net_device *dev, const u32 *indir, - const u8 *hkey, u8 hfunc) + const u8 *hkey, const u8 hfunc) { struct nicvf *nic = netdev_priv(dev); struct nicvf_rss_info *rss = &nic->rss_info; -- 2.11.0