datapath: Fix compiler warning on older kernel.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 10 Nov 2011 03:47:25 +0000 (19:47 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 10 Nov 2011 03:47:25 +0000 (19:47 -0800)
commit 6455100f38e9312346f4d58511595f695d813537 (datapath: Fix
coding style issues) introduced this issue.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/dp_sysfs.h
datapath/dp_sysfs_if.c

index 20a5548ab7b8d751688e30adf69453393703c359..49af58a228fd8d0b13127a8a9ee13fbe53922cb2 100644 (file)
@@ -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 */
index f969446c6a7427bd0e47853f8227684beb9ab9ca..42a59692a024915009626688d0cb76b7aa69f1b2 100644 (file)
@@ -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,
 };