X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fuio%2Fuio.c;h=bff1afbde5a4b0ad01d0314b1661d43c972c3d84;hb=1f10cd34d9b347106cb34ef91c8ff76f12ee67a8;hp=e941367dd28f8ab907350e83cedc7e1b1ac40a94;hpb=d0b093a8b5ae34ee8be1f7e0dd197fe4788fa1d5;p=~andy%2Flinux diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index e941367dd28..bff1afbde5a 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -129,7 +130,7 @@ static ssize_t map_type_show(struct kobject *kobj, struct attribute *attr, return entry->show(mem, buf); } -static struct sysfs_ops map_sysfs_ops = { +static const struct sysfs_ops map_sysfs_ops = { .show = map_type_show, }; @@ -217,7 +218,7 @@ static ssize_t portio_type_show(struct kobject *kobj, struct attribute *attr, return entry->show(port, buf); } -static struct sysfs_ops portio_sysfs_ops = { +static const struct sysfs_ops portio_sysfs_ops = { .show = portio_type_show, };