X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=samples%2Fkobject%2Fkset-example.c;fp=samples%2Fkobject%2Fkset-example.c;h=3b126d1f8599198e6930ff7bd3c5690fb52ec138;hb=52cf25d0ab7f78eeecc59ac652ed5090f69b619e;hp=7c6088140528d39cb2b638bc6b6276fe3e65ab3b;hpb=6c1733aca0b48db4d0e660d54976a1cca25b5eaf;p=net-next-2.6.git diff --git a/samples/kobject/kset-example.c b/samples/kobject/kset-example.c index 7c608814052..3b126d1f859 100644 --- a/samples/kobject/kset-example.c +++ b/samples/kobject/kset-example.c @@ -87,7 +87,7 @@ static ssize_t foo_attr_store(struct kobject *kobj, } /* Our custom sysfs_ops that we will associate with our ktype later on */ -static struct sysfs_ops foo_sysfs_ops = { +static const struct sysfs_ops foo_sysfs_ops = { .show = foo_attr_show, .store = foo_attr_store, };