Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
removed __ro_after_init and fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
seansp committed Jan 3, 2018
1 parent 4735e9f commit eabc343
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hv-rhel7.x/hv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,9 @@ void netvsc_device_remove(struct hv_device *device)
* Get the percentage of available bytes to write in the ring.
* The return value is in range from 0 to 100.
*/
statuc u32 hv_ringbuf_avail_percent(const struct hv_ring_buffer_info *ring_info)
static u32 hv_ringbuf_avail_percent(const struct hv_ring_buffer_info *ring_info)
{
u32 avail_write = hv_get_bytes_to_write(ring_info)
u32 avail_write = hv_get_bytes_to_write(ring_info);
return reciprocal_divide(avail_write * 100, netvsc_ring_reciprocal);
}

Expand Down
6 changes: 3 additions & 3 deletions hv-rhel7.x/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@
#define LINKCHANGE_INT (2 * HZ)
#define VF_TAKEOVER_INT (HZ / 10)

static unsigned int ring_size __ro_after_init = 128;
static unsigned int ring_size __read_only = 128;
module_param(ring_size, uint, S_IRUGO);
MODULE_PARM_DESC(ring_size, "Ring buffer size (# of pages)");
unsigned int netvsc_ring_bytes __ro_after_init;
struct reciprocal_value netvsc_ring_reciprocal __ro_after_init;
unsigned int netvsc_ring_bytes;
struct reciprocal_value netvsc_ring_reciprocal;

static const u32 default_msg = NETIF_MSG_DRV | NETIF_MSG_PROBE |
NETIF_MSG_LINK | NETIF_MSG_IFUP |
Expand Down

0 comments on commit eabc343

Please sign in to comment.