* 2.5.60 - drivers/char/esp.c vs include/linux/serialP.h
@ 2003-02-14 20:39 Valdis.Kletnieks
2003-02-14 20:54 ` Russell King
0 siblings, 1 reply; 3+ messages in thread
From: Valdis.Kletnieks @ 2003-02-14 20:39 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
compiling drivers/char/esp.c with -Wundef triggers a warning:
In file included from drivers/char/esp.c:51:
include/linux/serialP.h:27:6: warning: "LINUX_VERSION_CODE" is not defined
The code that trips it up:
#if (LINUX_VERSION_CODE < 0x020300)
/* Unfortunate, but Linux 2.2 needs async_icount defined here and
* it got moved in 2.3 */
#include <linux/serial.h>
#endif
It's unclear if this should be fixed by adding a #include <linux/version.h>
to esp.c, or if this code should summarily be lopped out of serialP.h.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.5.60 - drivers/char/esp.c vs include/linux/serialP.h
2003-02-14 20:39 2.5.60 - drivers/char/esp.c vs include/linux/serialP.h Valdis.Kletnieks
@ 2003-02-14 20:54 ` Russell King
2003-02-14 21:16 ` Valdis.Kletnieks
0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2003-02-14 20:54 UTC (permalink / raw)
To: Valdis.Kletnieks; +Cc: linux-kernel
On Fri, Feb 14, 2003 at 03:39:34PM -0500, Valdis.Kletnieks@vt.edu wrote:
> compiling drivers/char/esp.c with -Wundef triggers a warning:
>
> In file included from drivers/char/esp.c:51:
> include/linux/serialP.h:27:6: warning: "LINUX_VERSION_CODE" is not defined
>
> The code that trips it up:
>
> #if (LINUX_VERSION_CODE < 0x020300)
> /* Unfortunate, but Linux 2.2 needs async_icount defined here and
> * it got moved in 2.3 */
> #include <linux/serial.h>
> #endif
>
> It's unclear if this should be fixed by adding a #include <linux/version.h>
> to esp.c, or if this code should summarily be lopped out of serialP.h.
My personal feeling woudl be to lop it out, and fix up anywhere
and everywhere which complains appropraitely.
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.5.60 - drivers/char/esp.c vs include/linux/serialP.h
2003-02-14 20:54 ` Russell King
@ 2003-02-14 21:16 ` Valdis.Kletnieks
0 siblings, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks @ 2003-02-14 21:16 UTC (permalink / raw)
To: Russell King; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 785 bytes --]
On Fri, 14 Feb 2003 20:54:49 GMT, Russell King said:
> On Fri, Feb 14, 2003 at 03:39:34PM -0500, Valdis.Kletnieks@vt.edu wrote:
> > compiling drivers/char/esp.c with -Wundef triggers a warning:
> >
> > In file included from drivers/char/esp.c:51:
> > include/linux/serialP.h:27:6: warning: "LINUX_VERSION_CODE" is not defined
> My personal feeling woudl be to lop it out, and fix up anywhere
> and everywhere which complains appropraitely.
I jumped the gun, actually - the build was still running, and there's at
least 6 other things that trigger the same serialP.h warning - where there's
a #if (VAR < NNNN) check that Does The Wrong Thing because of the default
gcc behavior for undefineds. Hopefully this one's harmless - but there's
still 608 other warnings to work through.
[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-14 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-14 20:39 2.5.60 - drivers/char/esp.c vs include/linux/serialP.h Valdis.Kletnieks
2003-02-14 20:54 ` Russell King
2003-02-14 21:16 ` Valdis.Kletnieks
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.