xfs-masters
[Top] [All Lists]

[xfs-masters] Re: [PATCH 31/59] sysctl: C99 convert the ctl_tables in ar

To: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
Subject: [xfs-masters] Re: [PATCH 31/59] sysctl: C99 convert the ctl_tables in arch/mips/au1000/common/power.c
From: Ingo Oeser <ioe-lkml@xxxxxxxxxx>
Date: Tue, 16 Jan 2007 23:20:17 +0100
Cc: "<Andrew Morton" <akpm@xxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, containers@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, xfs-masters@xxxxxxxxxxx, xfs@xxxxxxxxxxx, linux-scsi@xxxxxxxxxxxxxxx, James.Bottomley@xxxxxxxxxxxx, minyard@xxxxxxx, openipmi-developer@xxxxxxxxxxxxxxxxxxxxx, tony.luck@xxxxxxxxx, linux-mips@xxxxxxxxxxxxxx, ralf@xxxxxxxxxxxxxx, schwidefsky@xxxxxxxxxx, heiko.carstens@xxxxxxxxxx, linux390@xxxxxxxxxx, linux-390@xxxxxxxxxxxxx, paulus@xxxxxxxxx, linuxppc-dev@xxxxxxxxxx, lethal@xxxxxxxxxxxx, linuxsh-shmedia-dev@xxxxxxxxxxxxxxxxxxxxx, ak@xxxxxxx, vojtech@xxxxxxx, clemens@xxxxxxxxxx, a.zummo@xxxxxxxxxxxx, rtc-linux@xxxxxxxxxxxxxxxx, linux-parport@xxxxxxxxxxxxxxxxxxx, andrea@xxxxxxx, tim@xxxxxxxxxxxx, philb@xxxxxxx, aharkes@xxxxxxxxxx, coda@xxxxxxxxxx, codalist@xxxxxxxxxxxxxxxxxxxxxxxx, aia21@xxxxxxxxxx, linux-ntfs-dev@xxxxxxxxxxxxxxxxxxxxx, mark.fasheh@xxxxxxxxxx, kurt.hackel@xxxxxxxxxx
In-reply-to: <11689656551180-git-send-email-ebiederm@xxxxxxxxxxxx>
References: <m1ac0jc4no.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx> <11689656551180-git-send-email-ebiederm@xxxxxxxxxxxx>
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
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>