xfs-masters
[Top] [All Lists]

[xfs-masters] Re: [PATCH 45/59] sysctl: C99 convert ctl_tables in driver

To: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
Subject: [xfs-masters] Re: [PATCH 45/59] sysctl: C99 convert ctl_tables in drivers/parport/procfs.c
From: Ingo Oeser <ioe-lkml@xxxxxxxxxx>
Date: Tue, 16 Jan 2007 23:15:43 +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: <11689656733768-git-send-email-ebiederm@xxxxxxxxxxxx>
References: <m1ac0jc4no.fsf@xxxxxxxxxxxxxxxxxxxxxxxxx> <11689656733768-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/drivers/parport/procfs.c b/drivers/parport/procfs.c
> index 2e744a2..5337789 100644
> --- a/drivers/parport/procfs.c
> +++ b/drivers/parport/procfs.c
> @@ -263,50 +263,118 @@ struct parport_sysctl_table {
> +             {
> +                     .ctl_name       = DEV_PARPORT_BASE_ADDR,
> +                     .procname       = "base-addr",
> +                     .data           = NULL,
> +                     .maxlen         = 0,
> +                     .mode           = 0444,
> +                     .proc_handler   = &do_hardware_base_addr
> +             },

No need to initialize to zero or NULL. Just list any variable, which is NOT 
zero or NULL.

> +             {
> +                     .ctl_name       = DEV_PARPORT_AUTOPROBE + 1,
> +                     .procname       = "autoprobe0",
> +                     .data           = NULL,
> +                     .maxlen         = 0,
> +                     .maxlen         = 0444,
> +                     .proc_handler   =  &do_autoprobe
> +             },

Typo here? .mode = 0444 makes mor sense.

Regards

Ingo Oeser


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