Commit a1a61a43 authored by Mike Frysinger's avatar Mike Frysinger Committed by David S. Miller

atm: Cleanup atm_tcp.h and atm.h for userspace.

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: default avatarMike Frysinger <vapier@gentoo.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 38d2f38b
...@@ -16,14 +16,11 @@ ...@@ -16,14 +16,11 @@
* documentation. Do not change them. * documentation. Do not change them.
*/ */
#ifdef __KERNEL__
#include <linux/socket.h>
#include <linux/types.h>
#endif
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/atmapi.h> #include <linux/atmapi.h>
#include <linux/atmsap.h> #include <linux/atmsap.h>
#include <linux/atmioc.h> #include <linux/atmioc.h>
#include <linux/types.h>
/* general ATM constants */ /* general ATM constants */
...@@ -212,7 +209,7 @@ struct sockaddr_atmsvc { ...@@ -212,7 +209,7 @@ struct sockaddr_atmsvc {
char pub[ATM_E164_LEN+1]; /* public address (E.164) */ char pub[ATM_E164_LEN+1]; /* public address (E.164) */
/* unused addresses must be bzero'ed */ /* unused addresses must be bzero'ed */
char lij_type; /* role in LIJ call; one of ATM_LIJ* */ 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 */ } sas_addr __ATM_API_ALIGN; /* SVC address */
}; };
......
...@@ -8,11 +8,9 @@ ...@@ -8,11 +8,9 @@
#define LINUX_ATM_TCP_H #define LINUX_ATM_TCP_H
#include <linux/atmapi.h> #include <linux/atmapi.h>
#include <linux/atm.h>
#ifdef __KERNEL__
#include <linux/types.h>
#endif
#include <linux/atmioc.h> #include <linux/atmioc.h>
#include <linux/types.h>
/* /*
...@@ -20,9 +18,9 @@ ...@@ -20,9 +18,9 @@
*/ */
struct atmtcp_hdr { struct atmtcp_hdr {
uint16_t vpi; __u16 vpi;
uint16_t vci; __u16 vci;
uint32_t length; /* ... of data part */ __u32 length; /* ... of data part */
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment