Commit da19fcd0 authored by Lad, Prabhakar's avatar Lad, Prabhakar Committed by David S. Miller

hyperv: fix sparse warnings

this patch fixes following sparse warnings:

netvsc.c:688:5: warning: symbol 'netvsc_copy_to_send_buf' was not declared. Should it be static?
rndis_filter.c:627:5: warning: symbol 'rndis_filter_set_offload_params' was not declared. Should it be static?
rndis_filter.c:702:5: warning: symbol 'rndis_filter_set_rss_param' was not declared. Should it be static?
Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7d231e3f
......@@ -685,7 +685,7 @@ static u32 netvsc_get_next_send_section(struct netvsc_device *net_device)
return ret_val;
}
u32 netvsc_copy_to_send_buf(struct netvsc_device *net_device,
static u32 netvsc_copy_to_send_buf(struct netvsc_device *net_device,
unsigned int section_index,
struct hv_netvsc_packet *packet)
{
......
......@@ -624,7 +624,8 @@ int rndis_filter_set_device_mac(struct hv_device *hdev, char *mac)
return ret;
}
int rndis_filter_set_offload_params(struct hv_device *hdev,
static int
rndis_filter_set_offload_params(struct hv_device *hdev,
struct ndis_offload_params *req_offloads)
{
struct netvsc_device *nvdev = hv_get_drvdata(hdev);
......@@ -699,7 +700,7 @@ u8 netvsc_hash_key[HASH_KEYLEN] = {
0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa
};
int rndis_filter_set_rss_param(struct rndis_device *rdev, int num_queue)
static int rndis_filter_set_rss_param(struct rndis_device *rdev, int num_queue)
{
struct net_device *ndev = rdev->net_dev->ndev;
struct rndis_request *request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment