瀏覽代碼

net: make rx_queue sysfs_ops const

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
stephen hemminger 15 年之前
父節點
當前提交
fa50d64576
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/core/net-sysfs.c

+ 1 - 1
net/core/net-sysfs.c

@@ -515,7 +515,7 @@ static ssize_t rx_queue_attr_store(struct kobject *kobj, struct attribute *attr,
 	return attribute->store(queue, attribute, buf, count);
 	return attribute->store(queue, attribute, buf, count);
 }
 }
 
 
-static struct sysfs_ops rx_queue_sysfs_ops = {
+static const struct sysfs_ops rx_queue_sysfs_ops = {
 	.show = rx_queue_attr_show,
 	.show = rx_queue_attr_show,
 	.store = rx_queue_attr_store,
 	.store = rx_queue_attr_store,
 };
 };