* [PATCH] include linux/types.h in if_fddi.h
@ 2007-08-09 14:55 Olaf Hering
2007-08-09 16:36 ` Maciej W. Rozycki
0 siblings, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2007-08-09 14:55 UTC (permalink / raw)
To: Andrew Morton, linux-kernel
include/linux/if_fddi.h is an exported header.
It uses __be16. Include linux/types.h to get this prototype.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
include/linux/if_fddi.h | 2 ++
1 file changed, 2 insertions(+)
--- a/include/linux/if_fddi.h
+++ b/include/linux/if_fddi.h
@@ -24,6 +24,8 @@
#ifndef _LINUX_IF_FDDI_H
#define _LINUX_IF_FDDI_H
+#include <linux/types.h>
+
/*
* Define max and min legal sizes. The frame sizes do not include
* 4 byte FCS/CRC (frame check sequence).
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] include linux/types.h in if_fddi.h
2007-08-09 14:55 [PATCH] include linux/types.h in if_fddi.h Olaf Hering
@ 2007-08-09 16:36 ` Maciej W. Rozycki
2007-08-09 17:38 ` Olaf Hering
2007-08-18 18:14 ` Adrian Bunk
0 siblings, 2 replies; 6+ messages in thread
From: Maciej W. Rozycki @ 2007-08-09 16:36 UTC (permalink / raw)
To: Olaf Hering; +Cc: Andrew Morton, linux-kernel
On Thu, 9 Aug 2007, Olaf Hering wrote:
> include/linux/if_fddi.h is an exported header.
> It uses __be16. Include linux/types.h to get this prototype.
Please note that for userland it does not matter. With glibc you should
include <netinet/if_fddi.h> which does the necessary bits before including
<linux/if_fddi.h>. Any other C library should likely take a similar
approach.
It still seems right for Linux itself though.
Maciej
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] include linux/types.h in if_fddi.h
2007-08-09 16:36 ` Maciej W. Rozycki
@ 2007-08-09 17:38 ` Olaf Hering
2007-08-09 17:53 ` Olaf Hering
2007-08-18 18:14 ` Adrian Bunk
1 sibling, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2007-08-09 17:38 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Andrew Morton, linux-kernel
On Thu, Aug 09, Maciej W. Rozycki wrote:
> On Thu, 9 Aug 2007, Olaf Hering wrote:
>
> > include/linux/if_fddi.h is an exported header.
> > It uses __be16. Include linux/types.h to get this prototype.
>
> Please note that for userland it does not matter. With glibc you should
> include <netinet/if_fddi.h> which does the necessary bits before including
> <linux/if_fddi.h>. Any other C library should likely take a similar
> approach.
Ok, I will update the failing package.
Please drop the patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] include linux/types.h in if_fddi.h
2007-08-09 17:38 ` Olaf Hering
@ 2007-08-09 17:53 ` Olaf Hering
2007-08-10 10:49 ` Maciej W. Rozycki
0 siblings, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2007-08-09 17:53 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Andrew Morton, linux-kernel
On Thu, Aug 09, Olaf Hering wrote:
> Please drop the patch.
glibc includes asm/types.h, not linux/types.h. So changing the package
to netinet/if_fddi.h does not fix anything.
Please dont drop it.
Or should all glibc includes be changed from asm/types.h to linux/types.h?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] include linux/types.h in if_fddi.h
2007-08-09 17:53 ` Olaf Hering
@ 2007-08-10 10:49 ` Maciej W. Rozycki
0 siblings, 0 replies; 6+ messages in thread
From: Maciej W. Rozycki @ 2007-08-10 10:49 UTC (permalink / raw)
To: Olaf Hering; +Cc: Andrew Morton, linux-kernel
On Thu, 9 Aug 2007, Olaf Hering wrote:
> glibc includes asm/types.h, not linux/types.h. So changing the package
> to netinet/if_fddi.h does not fix anything.
>
> Please dont drop it.
> Or should all glibc includes be changed from asm/types.h to linux/types.h?
Well, it looks like we have changed the rules at one point, so it is up
to us to fix the things up. Even if the glibc maintainers are persuaded
to accept a change (which I might try to do), older versions are already
out there and people may still want to use it for one reason or another
(including myself -- I am not ready to move on with glibc and will have to
stick to version 2.4 for several months yet).
Maciej
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] include linux/types.h in if_fddi.h
2007-08-09 16:36 ` Maciej W. Rozycki
2007-08-09 17:38 ` Olaf Hering
@ 2007-08-18 18:14 ` Adrian Bunk
1 sibling, 0 replies; 6+ messages in thread
From: Adrian Bunk @ 2007-08-18 18:14 UTC (permalink / raw)
To: Maciej W. Rozycki; +Cc: Olaf Hering, Andrew Morton, linux-kernel
On Thu, Aug 09, 2007 at 05:36:39PM +0100, Maciej W. Rozycki wrote:
> On Thu, 9 Aug 2007, Olaf Hering wrote:
>
> > include/linux/if_fddi.h is an exported header.
> > It uses __be16. Include linux/types.h to get this prototype.
>
> Please note that for userland it does not matter. With glibc you should
> include <netinet/if_fddi.h> which does the necessary bits before including
> <linux/if_fddi.h>. Any other C library should likely take a similar
> approach.
It doesn't make any sense to habe all libc's figure out inter-header
dependencies.
For each userspace exported header file an #include <linux/foo.h> should
always compile, and if it fails due to missing #include's in the header
that's a bug that should be fixed.
> It still seems right for Linux itself though.
>
> Maciej
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] 6+ messages in thread
end of thread, other threads:[~2007-08-18 18:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-09 14:55 [PATCH] include linux/types.h in if_fddi.h Olaf Hering
2007-08-09 16:36 ` Maciej W. Rozycki
2007-08-09 17:38 ` Olaf Hering
2007-08-09 17:53 ` Olaf Hering
2007-08-10 10:49 ` Maciej W. Rozycki
2007-08-18 18:14 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox