* [patch 3/8] linux/atm_tcp.h linux/atm.h: cleanup for userspace
@ 2008-05-14 23:19 akpm
2008-05-14 23:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2008-05-14 23:19 UTC (permalink / raw)
To: davem; +Cc: netdev, akpm, vapier
From: Mike Frysinger <vapier@gentoo.org>
The atm_tcp.h uses types from linux/atm.h, but does not include it. It
should also use the standard __u## types from linux/types.h rather than
the uint##_t types since the former can be found with the kernel already.
Same goes for linux/atm.h. The linux/socket.h include there also gets
dropped as atm.h does not actually use anything from socket.h.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/atm.h | 7 ++-----
include/linux/atm_tcp.h | 12 +++++-------
2 files changed, 7 insertions(+), 12 deletions(-)
diff -puN include/linux/atm.h~linux-atm_tcph-linux-atmh-cleanup-for-userspace include/linux/atm.h
--- a/include/linux/atm.h~linux-atm_tcph-linux-atmh-cleanup-for-userspace
+++ a/include/linux/atm.h
@@ -16,14 +16,11 @@
* documentation. Do not change them.
*/
-#ifdef __KERNEL__
-#include <linux/socket.h>
-#include <linux/types.h>
-#endif
#include <linux/compiler.h>
#include <linux/atmapi.h>
#include <linux/atmsap.h>
#include <linux/atmioc.h>
+#include <linux/types.h>
/* general ATM constants */
@@ -212,7 +209,7 @@ struct sockaddr_atmsvc {
char pub[ATM_E164_LEN+1]; /* public address (E.164) */
/* unused addresses must be bzero'ed */
char lij_type; /* role in LIJ call; one of ATM_LIJ* */
- uint32_t lij_id; /* LIJ call identifier */
+ __u32 lij_id; /* LIJ call identifier */
} sas_addr __ATM_API_ALIGN; /* SVC address */
};
diff -puN include/linux/atm_tcp.h~linux-atm_tcph-linux-atmh-cleanup-for-userspace include/linux/atm_tcp.h
--- a/include/linux/atm_tcp.h~linux-atm_tcph-linux-atmh-cleanup-for-userspace
+++ a/include/linux/atm_tcp.h
@@ -8,11 +8,9 @@
#define LINUX_ATM_TCP_H
#include <linux/atmapi.h>
-
-#ifdef __KERNEL__
-#include <linux/types.h>
-#endif
+#include <linux/atm.h>
#include <linux/atmioc.h>
+#include <linux/types.h>
/*
@@ -20,9 +18,9 @@
*/
struct atmtcp_hdr {
- uint16_t vpi;
- uint16_t vci;
- uint32_t length; /* ... of data part */
+ __u16 vpi;
+ __u16 vci;
+ __u32 length; /* ... of data part */
};
/*
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 3/8] linux/atm_tcp.h linux/atm.h: cleanup for userspace
2008-05-14 23:19 [patch 3/8] linux/atm_tcp.h linux/atm.h: cleanup for userspace akpm
@ 2008-05-14 23:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-05-14 23:41 UTC (permalink / raw)
To: akpm; +Cc: netdev, vapier
From: akpm@linux-foundation.org
Date: Wed, 14 May 2008 16:19:42 -0700
> From: Mike Frysinger <vapier@gentoo.org>
>
> The atm_tcp.h uses types from linux/atm.h, but does not include it. It
> should also use the standard __u## types from linux/types.h rather than
> the uint##_t types since the former can be found with the kernel already.
>
> Same goes for linux/atm.h. The linux/socket.h include there also gets
> dropped as atm.h does not actually use anything from socket.h.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David S. Miller <davem@davemloft.net>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-14 23:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-14 23:19 [patch 3/8] linux/atm_tcp.h linux/atm.h: cleanup for userspace akpm
2008-05-14 23:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).