2.5.60 - drivers/char/esp.c vs include/linux/serialP.h

Valdis.Kletnieks@vt.edu
Fri, 14 Feb 2003 15:39:34 -0500


--==_Exmh_-1185923764P
Content-Type: text/plain; charset="us-ascii"
Content-Id: <29463.1045255174.1@turing-police.cc.vt.edu>

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.

--==_Exmh_-1185923764P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001

iD8DBQE+TVQGcC3lWbTT17ARApSYAJ9WYk2pHfQ3609Ok1+pAy90/8+KpACfd7dO
4EawuCsDRI6dAbRiXxwmci8=
=egn3
-----END PGP SIGNATURE-----

--==_Exmh_-1185923764P--
-
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/