diff options
author | sixiao@microsoft.com <sixiao@microsoft.com> | 2015-05-15 02:33:03 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-17 23:37:38 -0400 |
commit | 4b02b58b52fab385e120c4b4f0d90f5f3076352d (patch) | |
tree | 668b56e1b295ef19ab0d1b5419cbec25b79f244a /drivers/net/hyperv/hyperv_net.h | |
parent | 45d4122ca7cdb3a4b91f392605cd22cfa75f1d99 (diff) | |
download | lwn-4b02b58b52fab385e120c4b4f0d90f5f3076352d.tar.gz lwn-4b02b58b52fab385e120c4b4f0d90f5f3076352d.zip |
hv_netvsc: change member name of struct netvsc_stats
Currently the struct netvsc_stats has a member s_sync
of type u64_stats_sync.
This definition will break kernel build as the macro
netdev_alloc_pcpu_stats requires this member name to be syncp.
(see netdev_alloc_pcpu_stats definition in ./include/linux/netdevice.h)
This patch changes netvsc_stats's member name from s_sync to syncp to fix
the build break.
Signed-off-by: Simon Xiao <sixiao@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hyperv/hyperv_net.h')
-rw-r--r-- | drivers/net/hyperv/hyperv_net.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h index 5a92b36daed6..ddcc7f8d22b4 100644 --- a/drivers/net/hyperv/hyperv_net.h +++ b/drivers/net/hyperv/hyperv_net.h @@ -614,7 +614,7 @@ struct multi_send_data { struct netvsc_stats { u64 packets; u64 bytes; - struct u64_stats_sync s_sync; + struct u64_stats_sync syncp; }; /* The context of the netvsc device */ |