Re: [patch] 2.4.21-pre5: fix Auerswald compile

Wolfgang Mües (wolfgang@iksw-muees.de)
Fri, 28 Feb 2003 08:47:41 +0100


Hello Adrian,

On Friday 28 February 2003 00:26, Adrian Bunk wrote:

> auerdev_table and auerdev_table_mutex are static in auermain.c but used
> from auerchar.c. The following patch makes them non-static:

You are right. This is a leftover from the old days where auermain and
auerchar function were both in auermain.c.

I wonder why I never get this error? Are you using a newer toolchain?
My gcc is version 2.95.3.

Greg, would you apply this patch?

best regards
Wolfgang Mües

>
> --- linux-2.4.21-pre5-full/drivers/usb/auermain.c.old 2003-02-28
> 00:15:45.000000000 +0100 +++
> linux-2.4.21-pre5-full/drivers/usb/auermain.c 2003-02-28 00:20:49.000000000
> +0100 @@ -66,10 +66,10 @@
> extern devfs_handle_t usb_devfs_handle;
>
> /* array of pointers to our devices that are currently connected */
> -static struct auerswald *auerdev_table[AUER_MAX_DEVICES];
> +struct auerswald *auerdev_table[AUER_MAX_DEVICES];
>
> /* lock to protect the auerdev_table structure */
> -static struct semaphore auerdev_table_mutex;
> +struct semaphore auerdev_table_mutex;
>
> /*-------------------------------------------------------------------*/
> /* Forwards */
>
>
> cu
> Adrian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/