* [PATCH][2.6.11] generic_serial.h gcc4 fix
@ 2005-03-15 17:13 Mikael Pettersson
2005-03-15 17:39 ` Adrian Bunk
0 siblings, 1 reply; 3+ messages in thread
From: Mikael Pettersson @ 2005-03-15 17:13 UTC (permalink / raw)
To: linux-kernel; +Cc: R.E.Wolff
Fix
drivers/char/generic_serial.c:38: error: static declaration of 'gs_debug' follows non-static declaration
include/linux/generic_serial.h:94: error: previous declaration of 'gs_debug' was here
compilation error from gcc4 in generic_serial.h.
/Mikael
--- linux-2.6.11/include/linux/generic_serial.h.~1~ 2005-03-02 19:24:19.000000000 +0100
+++ linux-2.6.11/include/linux/generic_serial.h 2005-03-15 17:11:07.000000000 +0100
@@ -91,6 +91,4 @@ int gs_setserial(struct gs_port *port,
int gs_getserial(struct gs_port *port, struct serial_struct __user *sp);
void gs_got_break(struct gs_port *port);
-extern int gs_debug;
-
#endif
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][2.6.11] generic_serial.h gcc4 fix
2005-03-15 17:13 [PATCH][2.6.11] generic_serial.h gcc4 fix Mikael Pettersson
@ 2005-03-15 17:39 ` Adrian Bunk
2005-03-16 6:32 ` Rogier Wolff
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2005-03-15 17:39 UTC (permalink / raw)
To: Mikael Pettersson; +Cc: linux-kernel, R.E.Wolff
On Tue, Mar 15, 2005 at 06:13:33PM +0100, Mikael Pettersson wrote:
> Fix
>
> drivers/char/generic_serial.c:38: error: static declaration of 'gs_debug' follows non-static declaration
> include/linux/generic_serial.h:94: error: previous declaration of 'gs_debug' was here
>
> compilation error from gcc4 in generic_serial.h.
>
> /Mikael
>
> --- linux-2.6.11/include/linux/generic_serial.h.~1~ 2005-03-02 19:24:19.000000000 +0100
> +++ linux-2.6.11/include/linux/generic_serial.h 2005-03-15 17:11:07.000000000 +0100
> @@ -91,6 +91,4 @@ int gs_setserial(struct gs_port *port,
> int gs_getserial(struct gs_port *port, struct serial_struct __user *sp);
> void gs_got_break(struct gs_port *port);
>
> -extern int gs_debug;
> -
> #endif
This patch is already in -mm for ages.
When doing such patches, -mm is usually a better basis than Linus' tree.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][2.6.11] generic_serial.h gcc4 fix
2005-03-15 17:39 ` Adrian Bunk
@ 2005-03-16 6:32 ` Rogier Wolff
0 siblings, 0 replies; 3+ messages in thread
From: Rogier Wolff @ 2005-03-16 6:32 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Mikael Pettersson, linux-kernel, R.E.Wolff
On Tue, Mar 15, 2005 at 06:39:46PM +0100, Adrian Bunk wrote:
> > @@ -91,6 +91,4 @@ int gs_setserial(struct gs_port *port,
> > int gs_getserial(struct gs_port *port, struct serial_struct __user *sp);
> > void gs_got_break(struct gs_port *port);
> >
> > -extern int gs_debug;
> > -
> > #endif
>
> This patch is already in -mm for ages.
>
> When doing such patches, -mm is usually a better basis than Linus' tree.
Note that the original reason for doing "extern int gs_debug" was that
sx.c used to have an ioctl to fiddle with it "live". Apparently
someone removed that piece of useful, but(t) ugly code, as it is no
longer there.
Roger.
--
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement.
Does it sit on the couch all day? Is it unemployed? Please be specific!
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-03-16 6:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-15 17:13 [PATCH][2.6.11] generic_serial.h gcc4 fix Mikael Pettersson
2005-03-15 17:39 ` Adrian Bunk
2005-03-16 6:32 ` Rogier Wolff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox