Subject: Re: [PATCH 29/31] Constify struct sysfs_ops for 2.6.32 v1

From: "Hans J. Koch" <[email-masked]>
Date: Mon, 7 Dec 2009 10:53:57 +0100

On Sat, Dec 05, 2009 at 01:03:07AM +0100, Emese Revfy wrote:
> From: Emese Revfy <[email-masked]>
> 
> Constify struct sysfs_ops.
> Per Dave Miller's suggestion, resend with proper CC list and patch format.
> 
> Signed-off-by: Emese Revfy <[email-masked]>

For the Userspace I/O part:
Acked-by: Hans J. Koch <[email-masked]>

> ---

[...]

>  drivers/uio/uio.c                     |    4 ++--

[...]

> diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
> index e941367..4de382a 100644
> --- a/drivers/uio/uio.c
> +++ b/drivers/uio/uio.c
> @@ -129,7 +129,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 +217,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,
>  };