From bb8b34795a1484332ad03d9d5db5cdcf97ed1bc6 Mon Sep 17 00:00:00 2001 From: Pravin B Shelar Date: Wed, 9 Nov 2011 19:47:25 -0800 Subject: [PATCH] datapath: Fix compiler warning on older kernel. commit 6455100f38e9312346f4d58511595f695d813537 (datapath: Fix coding style issues) introduced this issue. Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross --- datapath/dp_sysfs.h | 2 +- datapath/dp_sysfs_if.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/dp_sysfs.h b/datapath/dp_sysfs.h index 20a5548a..49af58a2 100644 --- a/datapath/dp_sysfs.h +++ b/datapath/dp_sysfs.h @@ -21,7 +21,7 @@ int dp_sysfs_add_if(struct vport *p); int dp_sysfs_del_if(struct vport *p); #ifdef CONFIG_SYSFS -extern const struct sysfs_ops brport_sysfs_ops; +extern struct sysfs_ops brport_sysfs_ops; #endif #endif /* dp_sysfs.h */ diff --git a/datapath/dp_sysfs_if.c b/datapath/dp_sysfs_if.c index f969446c..42a59692 100644 --- a/datapath/dp_sysfs_if.c +++ b/datapath/dp_sysfs_if.c @@ -192,7 +192,7 @@ static ssize_t brport_store(struct kobject *kobj, return ret; } -const struct sysfs_ops brport_sysfs_ops = { +struct sysfs_ops brport_sysfs_ops = { .show = brport_show, .store = brport_store, }; -- 2.30.2