From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============4773941214001813077==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] drivers/net/virtio_net: virtnet_get_hashflow() can be static Date: Thu, 19 Aug 2021 05:33:11 +0800 Message-ID: <20210818213311.GA8659@92f38c0381b6> In-Reply-To: <20210818175440.128691-4-andrew@daynix.com> List-Id: --===============4773941214001813077== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable drivers/net/virtio_net.c:2278:6: warning: symbol 'virtnet_get_hashflow' was= not declared. Should it be static? drivers/net/virtio_net.c:2330:6: warning: symbol 'virtnet_set_hashflow' was= not declared. Should it be static? drivers/net/virtio_net.c:2627:5: warning: symbol 'virtnet_get_rxfh_key_size= ' was not declared. Should it be static? drivers/net/virtio_net.c:2632:5: warning: symbol 'virtnet_get_rxfh_indir_si= ze' was not declared. Should it be static? drivers/net/virtio_net.c:2637:5: warning: symbol 'virtnet_get_rxfh' was not= declared. Should it be static? drivers/net/virtio_net.c:2656:5: warning: symbol 'virtnet_set_rxfh' was not= declared. Should it be static? drivers/net/virtio_net.c:2676:5: warning: symbol 'virtnet_get_rxnfc' was no= t declared. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- virtio_net.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index 6a52eeaf929289..ea8f9c4050ffa8 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -2275,7 +2275,7 @@ static void virtnet_init_default_rss(struct virtnet_i= nfo *vi) netdev_rss_key_fill(vi->ctrl->rss.key, vi->rss_key_size); } = -void virtnet_get_hashflow(const struct virtnet_info *vi, struct ethtool_rx= nfc *info) +static void virtnet_get_hashflow(const struct virtnet_info *vi, struct eth= tool_rxnfc *info) { info->data =3D 0; switch (info->flow_type) { @@ -2327,7 +2327,7 @@ void virtnet_get_hashflow(const struct virtnet_info *= vi, struct ethtool_rxnfc *i } } = -bool virtnet_set_hashflow(struct virtnet_info *vi, struct ethtool_rxnfc *i= nfo) +static bool virtnet_set_hashflow(struct virtnet_info *vi, struct ethtool_r= xnfc *info) { u64 is_iphash =3D info->data & (RXH_IP_SRC | RXH_IP_DST); u64 is_porthash =3D info->data & (RXH_L4_B_0_1 | RXH_L4_B_2_3); @@ -2624,17 +2624,17 @@ static void virtnet_update_settings(struct virtnet_= info *vi) vi->duplex =3D duplex; } = -u32 virtnet_get_rxfh_key_size(struct net_device *dev) +static u32 virtnet_get_rxfh_key_size(struct net_device *dev) { return ((struct virtnet_info *)netdev_priv(dev))->rss_key_size; } = -u32 virtnet_get_rxfh_indir_size(struct net_device *dev) +static u32 virtnet_get_rxfh_indir_size(struct net_device *dev) { return ((struct virtnet_info *)netdev_priv(dev))->rss_indir_table_size; } = -int virtnet_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u8 *hfun= c) +static int virtnet_get_rxfh(struct net_device *dev, u32 *indir, u8 *key, u= 8 *hfunc) { struct virtnet_info *vi =3D netdev_priv(dev); int i; @@ -2653,7 +2653,7 @@ int virtnet_get_rxfh(struct net_device *dev, u32 *ind= ir, u8 *key, u8 *hfunc) return 0; } = -int virtnet_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *k= ey, const u8 hfunc) +static int virtnet_set_rxfh(struct net_device *dev, const u32 *indir, cons= t u8 *key, const u8 hfunc) { struct virtnet_info *vi =3D netdev_priv(dev); int i; @@ -2673,7 +2673,7 @@ int virtnet_set_rxfh(struct net_device *dev, const u3= 2 *indir, const u8 *key, co return 0; } = -int virtnet_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc *info, = u32 *rule_locs) +static int virtnet_get_rxnfc(struct net_device *dev, struct ethtool_rxnfc = *info, u32 *rule_locs) { struct virtnet_info *vi =3D netdev_priv(dev); int rc =3D 0; --===============4773941214001813077==--