linux-mips
[Top] [All Lists]

Re: [PATCH 31/59] sysctl: C99 convert the ctl_tables in arch/mips/au1000

To: "Eric W. Biederman" <ebiederm@xmission.com>
Subject: Re: [PATCH 31/59] sysctl: C99 convert the ctl_tables in arch/mips/au1000/common/power.c
From: Ingo Oeser <ioe-lkml@rameria.de>
Date: Tue, 16 Jan 2007 23:20:17 +0100
Cc: "<Andrew Morton" <akpm@osdl.org>, linux-kernel@vger.kernel.org, containers@lists.osdl.org, netdev@vger.kernel.org, xfs-masters@oss.sgi.com, xfs@oss.sgi.com, linux-scsi@vger.kernel.org, James.Bottomley@steeleye.com, minyard@acm.org, openipmi-developer@lists.sourceforge.net, tony.luck@intel.com, linux-mips@linux-mips.org, ralf@linux-mips.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, linux390@de.ibm.com, linux-390@vm.marist.edu, paulus@samba.org, linuxppc-dev@ozlabs.org, lethal@linux-sh.org, linuxsh-shmedia-dev@lists.sourceforge.net, ak@suse.de, vojtech@suse.cz, clemens@ladisch.de, a.zummo@towertech.it, rtc-linux@googlegroups.com, linux-parport@lists.infradead.org, andrea@suse.de, tim@cyberelk.net, philb@gnu.org, aharkes@cs.cmu.edu, coda@cs.cmu.edu, codalist@telemann.coda.cs.cmu.edu, aia21@cantab.net, linux-ntfs-dev@lists.sourceforge.net, mark.fasheh@oracle.com, kurt.hackel@oracle.com
In-reply-to: <11689656551180-git-send-email-ebiederm@xmission.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <m1ac0jc4no.fsf@ebiederm.dsl.xmission.com> <11689656551180-git-send-email-ebiederm@xmission.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9.5
Hi Eric,

On Tuesday, 16. January 2007 17:39, Eric W. Biederman wrote:
> diff --git a/arch/mips/au1000/common/power.c b/arch/mips/au1000/common/power.c
> index b531ab7..31256b8 100644
> --- a/arch/mips/au1000/common/power.c
> +++ b/arch/mips/au1000/common/power.c
> @@ -419,15 +419,41 @@ static int pm_do_freq(ctl_table * ctl, int write, 
> struct file *file,

> +     {
> +             .ctl_name       = CTL_UNNUMBERED,
> +             .procname       = "suspend",
> +             .data           = NULL,
> +             .maxlen         = 0,
> +             .mode           = 0600,
> +             .proc_handler   = &pm_do_suspend
> +     },

No need for zero initialization for maxlen.

> +     {
> +             .ctl_name       = CTL_UNNUMBERED,
> +             .procname       = "sleep",
> +             .data           = NULL,
> +             .maxlen         = 0,
> +             .mode           = 0600,
> +             .proc_handler   = &pm_do_sleep
> +     },

dito

> +     {
> +             .ctl_name       = CTL_UNNUMBERED,
> +             .procname       = "freq",
> +             .data           = NULL,
> +             .maxlen         = 0,
> +             .mode           = 0600,
> +             .proc_handler   = &pm_do_freq
> +     },
> +     {}
>  };

dito

Regards

Ingo Oeser

<Prev in Thread] Current Thread [Next in Thread>