Re: 2.4.15-final drivers/net/bonding.c includes user space headers

From: H. Peter Anvin (hpa@zytor.com)
Date: Sun Nov 25 2001 - 21:09:05 EST


Keith Owens wrote:

>
> kbuild 2.5 does
> '-nostdinc -I/usr/lib/gcc-lib/... gcc version ../include/'
> so it allows includes from the compiler headers. The problem is:
>
> bonding.c includes limits.h, picked up from gcc, OK.
> limits.h includes syslimits.h from gcc, OK.
> syslimits.h tries to include_next <limits.h> to get the user space
> limits, not OK.
>
> Any kernel code that includes limits.h or syslimits.h is polluted by
> user space headers. net/bonding.c does not even need limits.h.
>

How UTTERLY braindamaged... I guess we could provide a (dummy?)
<limits.h> for the kernel environment. I would definitely like to see
the standard compiler-related headers like <stdint.h> as well...

        -hpa

-
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/



This archive was generated by hypermail 2b29 : Fri Nov 30 2001 - 21:00:20 EST