Commit 875c362b authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Greg Kroah-Hartman

vmbus: make channel attributes static

These channel attribute data structures are only used by
vmbus_drv sysfs routines.
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21d02ddf
...@@ -1192,7 +1192,7 @@ static ssize_t out_mask_show(const struct vmbus_channel *channel, char *buf) ...@@ -1192,7 +1192,7 @@ static ssize_t out_mask_show(const struct vmbus_channel *channel, char *buf)
return sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); return sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask);
} }
VMBUS_CHAN_ATTR_RO(out_mask); static VMBUS_CHAN_ATTR_RO(out_mask);
static ssize_t in_mask_show(const struct vmbus_channel *channel, char *buf) static ssize_t in_mask_show(const struct vmbus_channel *channel, char *buf)
{ {
...@@ -1200,7 +1200,7 @@ static ssize_t in_mask_show(const struct vmbus_channel *channel, char *buf) ...@@ -1200,7 +1200,7 @@ static ssize_t in_mask_show(const struct vmbus_channel *channel, char *buf)
return sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask); return sprintf(buf, "%u\n", rbi->ring_buffer->interrupt_mask);
} }
VMBUS_CHAN_ATTR_RO(in_mask); static VMBUS_CHAN_ATTR_RO(in_mask);
static ssize_t read_avail_show(const struct vmbus_channel *channel, char *buf) static ssize_t read_avail_show(const struct vmbus_channel *channel, char *buf)
{ {
...@@ -1208,7 +1208,7 @@ static ssize_t read_avail_show(const struct vmbus_channel *channel, char *buf) ...@@ -1208,7 +1208,7 @@ static ssize_t read_avail_show(const struct vmbus_channel *channel, char *buf)
return sprintf(buf, "%u\n", hv_get_bytes_to_read(rbi)); return sprintf(buf, "%u\n", hv_get_bytes_to_read(rbi));
} }
VMBUS_CHAN_ATTR_RO(read_avail); static VMBUS_CHAN_ATTR_RO(read_avail);
static ssize_t write_avail_show(const struct vmbus_channel *channel, char *buf) static ssize_t write_avail_show(const struct vmbus_channel *channel, char *buf)
{ {
...@@ -1216,13 +1216,13 @@ static ssize_t write_avail_show(const struct vmbus_channel *channel, char *buf) ...@@ -1216,13 +1216,13 @@ static ssize_t write_avail_show(const struct vmbus_channel *channel, char *buf)
return sprintf(buf, "%u\n", hv_get_bytes_to_write(rbi)); return sprintf(buf, "%u\n", hv_get_bytes_to_write(rbi));
} }
VMBUS_CHAN_ATTR_RO(write_avail); static VMBUS_CHAN_ATTR_RO(write_avail);
static ssize_t show_target_cpu(const struct vmbus_channel *channel, char *buf) static ssize_t show_target_cpu(const struct vmbus_channel *channel, char *buf)
{ {
return sprintf(buf, "%u\n", channel->target_cpu); return sprintf(buf, "%u\n", channel->target_cpu);
} }
VMBUS_CHAN_ATTR(cpu, S_IRUGO, show_target_cpu, NULL); static VMBUS_CHAN_ATTR(cpu, S_IRUGO, show_target_cpu, NULL);
static ssize_t channel_pending_show(const struct vmbus_channel *channel, static ssize_t channel_pending_show(const struct vmbus_channel *channel,
char *buf) char *buf)
...@@ -1231,7 +1231,7 @@ static ssize_t channel_pending_show(const struct vmbus_channel *channel, ...@@ -1231,7 +1231,7 @@ static ssize_t channel_pending_show(const struct vmbus_channel *channel,
channel_pending(channel, channel_pending(channel,
vmbus_connection.monitor_pages[1])); vmbus_connection.monitor_pages[1]));
} }
VMBUS_CHAN_ATTR(pending, S_IRUGO, channel_pending_show, NULL); static VMBUS_CHAN_ATTR(pending, S_IRUGO, channel_pending_show, NULL);
static ssize_t channel_latency_show(const struct vmbus_channel *channel, static ssize_t channel_latency_show(const struct vmbus_channel *channel,
char *buf) char *buf)
...@@ -1240,19 +1240,19 @@ static ssize_t channel_latency_show(const struct vmbus_channel *channel, ...@@ -1240,19 +1240,19 @@ static ssize_t channel_latency_show(const struct vmbus_channel *channel,
channel_latency(channel, channel_latency(channel,
vmbus_connection.monitor_pages[1])); vmbus_connection.monitor_pages[1]));
} }
VMBUS_CHAN_ATTR(latency, S_IRUGO, channel_latency_show, NULL); static VMBUS_CHAN_ATTR(latency, S_IRUGO, channel_latency_show, NULL);
static ssize_t channel_interrupts_show(const struct vmbus_channel *channel, char *buf) static ssize_t channel_interrupts_show(const struct vmbus_channel *channel, char *buf)
{ {
return sprintf(buf, "%llu\n", channel->interrupts); return sprintf(buf, "%llu\n", channel->interrupts);
} }
VMBUS_CHAN_ATTR(interrupts, S_IRUGO, channel_interrupts_show, NULL); static VMBUS_CHAN_ATTR(interrupts, S_IRUGO, channel_interrupts_show, NULL);
static ssize_t channel_events_show(const struct vmbus_channel *channel, char *buf) static ssize_t channel_events_show(const struct vmbus_channel *channel, char *buf)
{ {
return sprintf(buf, "%llu\n", channel->sig_events); return sprintf(buf, "%llu\n", channel->sig_events);
} }
VMBUS_CHAN_ATTR(events, S_IRUGO, channel_events_show, NULL); static VMBUS_CHAN_ATTR(events, S_IRUGO, channel_events_show, NULL);
static struct attribute *vmbus_chan_attrs[] = { static struct attribute *vmbus_chan_attrs[] = {
&chan_attr_out_mask.attr, &chan_attr_out_mask.attr,
......
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