* [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/2.6.24: 03_all_linux-export-aligned-64bits.patch 05_all_no-glibc-ifdefs.patch 07_all_pull-libc-headers-asm.patch 07_all_pull-libc-headers-linux.patch 09_all_include-other-linux-headers.patch 10_all_remove-page-user-headers.patch 35_all_c99-types.patch
@ 2008-01-26 9:26 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2008-01-26 9:26 UTC (permalink / raw
To: gentoo-commits
vapier 08/01/26 09:26:56
Added: 03_all_linux-export-aligned-64bits.patch
05_all_no-glibc-ifdefs.patch
07_all_pull-libc-headers-asm.patch
07_all_pull-libc-headers-linux.patch
09_all_include-other-linux-headers.patch
10_all_remove-page-user-headers.patch
35_all_c99-types.patch
Log:
new 2.6.24 patchset based on last 2.6.23 patchset
Revision Changes Path
1.1 src/patchsets/gentoo-headers/2.6.24/03_all_linux-export-aligned-64bits.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/03_all_linux-export-aligned-64bits.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/03_all_linux-export-aligned-64bits.patch?rev=1.1&content-type=text/plain
Index: 03_all_linux-export-aligned-64bits.patch
===================================================================
http://bugs.gentoo.org/204448
some headers rely on these aligned_* macros and they dont conflict with normal
userspace / libc types, so always export them regardless of the define
__KERNEL_STRICT_NAMES
--- include/linux/types.h
+++ include/linux/types.h
@@ -125,11 +125,6 @@
typedef __s64 int64_t;
#endif
-/* this is a special 64bit data type that is 8-byte aligned */
-#define aligned_u64 unsigned long long __attribute__((aligned(8)))
-#define aligned_be64 __be64 __attribute__((aligned(8)))
-#define aligned_le64 __le64 __attribute__((aligned(8)))
-
/**
* The type used for indexing onto a disc or disc partition.
*
@@ -161,6 +156,11 @@
#endif /* __KERNEL_STRICT_NAMES */
+/* this is a special 64bit data type that is 8-byte aligned */
+#define aligned_u64 unsigned long long __attribute__((aligned(8)))
+#define aligned_be64 __be64 __attribute__((aligned(8)))
+#define aligned_le64 __le64 __attribute__((aligned(8)))
+
/*
* Below are truly Linux-specific types that should never collide with
* any application/library that wants linux/types.h.
1.1 src/patchsets/gentoo-headers/2.6.24/05_all_no-glibc-ifdefs.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/05_all_no-glibc-ifdefs.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/05_all_no-glibc-ifdefs.patch?rev=1.1&content-type=text/plain
Index: 05_all_no-glibc-ifdefs.patch
===================================================================
only check KERNEL so we dont assume libc == glibc
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -16,7 +16,7 @@ struct __kernel_sockaddr_storage {
/* _SS_MAXSIZE value minus size of ss_family */
} __attribute__ ((aligned(_K_SS_ALIGNSIZE))); /* force desired alignment */
-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
+#ifdef __KERNEL__
#include <asm/socket.h> /* arch-dependent defines */
#include <linux/sockios.h> /* the SIOCxxx I/O controls */
--- a/include/linux/stat.h
+++ b/include/linux/stat.h
@@ -7,7 +7,7 @@
#endif
-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
+#ifdef __KERNEL__
#define S_IFMT 00170000
#define S_IFSOCK 0140000
1.1 src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-asm.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-asm.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-asm.patch?rev=1.1&content-type=text/plain
Index: 07_all_pull-libc-headers-asm.patch
===================================================================
pull in the libc versions of these headers so that the proper
userspace defines/typedefs are utilized
--- a/include/asm-generic/siginfo.h
+++ b/include/asm-generic/siginfo.h
@@ -1,6 +1,10 @@
#ifndef _ASM_GENERIC_SIGINFO_H
#define _ASM_GENERIC_SIGINFO_H
+#ifndef __KERNEL__
+# include <signal.h>
+#else
+
#include <linux/compiler.h>
#include <linux/types.h>
@@ -267,7 +271,6 @@ typedef struct sigevent {
#define sigev_notify_attributes _sigev_un._sigev_thread._attribute
#define sigev_notify_thread_id _sigev_un._tid
-#ifdef __KERNEL__
struct siginfo;
void do_schedule_next_timer(struct siginfo *info);
1.1 src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-linux.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-linux.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/07_all_pull-libc-headers-linux.patch?rev=1.1&content-type=text/plain
Index: 07_all_pull-libc-headers-linux.patch
===================================================================
pull in the libc versions of these headers so that the proper userspace
defines/typedefs are utilized.
the trouble here is that some of the linux/ headers define structs that the
libc net/ headers define (like the if.h header). we cannot simply say
"your program should not include linux/if.h when using net/if.h" because some
of the other linux/ headers may correctly be utilized with net/if.h but they
correctly include linux/if.h. we also cannot say "just use the linux/ headers
and not the libc net/ headers" because the libc headers include more
definitions than its kernel equivalent.
since there is no obvious (at least to me) answer here, we hack the linux/
headers to simply pull in userspace headers and ignore the linux/ ones
completely. this seems to give a proper clean userspace experience.
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -303,4 +303,9 @@ extern int put_cmsg(struct msghdr*, int
#endif
#endif /* not kernel and not glibc */
+
+#ifndef __KERNEL__
+# include <sys/socket.h>
+#endif
+
#endif /* _LINUX_SOCKET_H */
--- a/include/linux/stat.h
+++ b/include/linux/stat.h
@@ -74,4 +74,8 @@ struct kstat {
#endif
+#ifndef __KERNEL__
+# include <sys/stat.h>
+#endif
+
#endif
--- a/include/linux/time.h
+++ b/include/linux/time.h
@@ -1,3 +1,9 @@
+#ifndef _LINUX_TIME_H
+# include <time.h>
+# include <sys/time.h>
+# define _LINUX_TIME_H
+#endif
+
#ifndef _LINUX_TIME_H
#define _LINUX_TIME_H
--- a/include/linux/if.h
+++ b/include/linux/if.h
@@ -17,6 +17,11 @@
* 2 of the License, or (at your option) any later version.
*/
#ifndef _LINUX_IF_H
+# include <net/if.h>
+# define _LINUX_IF_H
+#endif
+
+#ifndef _LINUX_IF_H
#define _LINUX_IF_H
#include <linux/types.h> /* for "__kernel_caddr_t" et al */
--- a/include/linux/ip.h
+++ b/include/linux/ip.h
@@ -15,6 +15,11 @@
* 2 of the License, or (at your option) any later version.
*/
#ifndef _LINUX_IP_H
+# include <netinet/ip.h>
+# define _LINUX_IP_H
+#endif
+
+#ifndef _LINUX_IP_H
#define _LINUX_IP_H
#include <linux/types.h>
#include <asm/byteorder.h>
--- a/include/linux/cdrom.h
+++ b/include/linux/cdrom.h
@@ -11,6 +11,10 @@
#ifndef _LINUX_CDROM_H
#define _LINUX_CDROM_H
+#ifndef __KERNEL__
+# include <limits.h>
+#endif
+
#include <asm/byteorder.h>
/*******************************************************
1.1 src/patchsets/gentoo-headers/2.6.24/09_all_include-other-linux-headers.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/09_all_include-other-linux-headers.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/09_all_include-other-linux-headers.patch?rev=1.1&content-type=text/plain
Index: 09_all_include-other-linux-headers.patch
===================================================================
diff --git a/include/linux/atalk.h b/include/linux/atalk.h
index 75b8bac..c0b7727 100644
--- a/include/linux/atalk.h
+++ b/include/linux/atalk.h
@@ -2,6 +2,7 @@
#define __LINUX_ATALK_H__
#include <asm/byteorder.h>
+#include <linux/socket.h>
/*
* AppleTalk networking structures
diff --git a/include/linux/atm.h b/include/linux/atm.h
index 6013668..5e12916 100644
--- a/include/linux/atm.h
+++ b/include/linux/atm.h
@@ -16,10 +16,8 @@
* 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>
diff --git a/include/linux/atm_tcp.h b/include/linux/atm_tcp.h
index 18787f9..e1eba63 100644
--- a/include/linux/atm_tcp.h
+++ b/include/linux/atm_tcp.h
@@ -8,10 +8,8 @@
#define LINUX_ATM_TCP_H
#include <linux/atmapi.h>
-
-#ifdef __KERNEL__
#include <linux/types.h>
-#endif
+#include <linux/atm.h>
#include <linux/atmioc.h>
diff --git a/include/linux/atm_zatm.h b/include/linux/atm_zatm.h
index 10f0fa2..ca03fef 100644
--- a/include/linux/atm_zatm.h
+++ b/include/linux/atm_zatm.h
@@ -12,6 +12,7 @@
* sys/types.h for struct timeval
*/
+#include <linux/time.h>
#include <linux/atmapi.h>
#include <linux/atmioc.h>
diff --git a/include/linux/auto_fs.h b/include/linux/auto_fs.h
index c21e597..9a5c539 100644
--- a/include/linux/auto_fs.h
+++ b/include/linux/auto_fs.h
@@ -16,10 +16,10 @@
#ifdef __KERNEL__
#include <linux/fs.h>
-#include <linux/limits.h>
#include <asm/types.h>
#endif /* __KERNEL__ */
+#include <linux/limits.h>
#include <linux/ioctl.h>
/* This file describes autofs v3 */
diff --git a/include/linux/auto_fs4.h b/include/linux/auto_fs4.h
index 0a6bc52..ce9c79c 100644
--- a/include/linux/auto_fs4.h
+++ b/include/linux/auto_fs4.h
@@ -11,6 +11,8 @@
#ifndef _LINUX_AUTO_FS4_H
#define _LINUX_AUTO_FS4_H
+#include <linux/types.h>
+
/* Include common v3 definitions */
#include <linux/auto_fs.h>
diff --git a/include/linux/bfs_fs.h b/include/linux/bfs_fs.h
index 8ed6dfd..2ca3e8f 100644
--- a/include/linux/bfs_fs.h
+++ b/include/linux/bfs_fs.h
@@ -6,6 +6,8 @@
#ifndef _LINUX_BFS_FS_H
#define _LINUX_BFS_FS_H
+#include <linux/types.h>
+
#define BFS_BSIZE_BITS 9
#define BFS_BSIZE (1<<BFS_BSIZE_BITS)
diff --git a/include/linux/cm4000_cs.h b/include/linux/cm4000_cs.h
index 605ebe2..8d95b2f 100644
--- a/include/linux/cm4000_cs.h
+++ b/include/linux/cm4000_cs.h
@@ -1,6 +1,9 @@
#ifndef _CM4000_H_
#define _CM4000_H_
+#include <linux/types.h>
+#include <linux/ioctl.h>
+
#define MAX_ATR 33
#define CM4000_MAX_DEV 4
diff --git a/include/linux/dirent.h b/include/linux/dirent.h
index 5d6023b..d5b642d 100644
--- a/include/linux/dirent.h
+++ b/include/linux/dirent.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_DIRENT_H
#define _LINUX_DIRENT_H
+#include <linux/types.h>
+
struct dirent {
long d_ino;
__kernel_off_t d_off;
diff --git a/include/linux/dlm.h b/include/linux/dlm.h
index 1b1dcb9..415c400 100644
--- a/include/linux/dlm.h
+++ b/include/linux/dlm.h
@@ -19,6 +19,8 @@
* routines and structures to use DLM lockspaces
*/
+#include <linux/types.h>
+
/*
* Lock Modes
*/
diff --git a/include/linux/dlm_device.h b/include/linux/dlm_device.h
index 2a2dd18..52544a0 100644
--- a/include/linux/dlm_device.h
+++ b/include/linux/dlm_device.h
@@ -11,10 +11,16 @@
*******************************************************************************
******************************************************************************/
+#ifndef _LINUX_DLM_DEVICE_H
+#define _LINUX_DLM_DEVICE_H
+
/* This is the device interface for dlm, most users will use a library
* interface.
*/
+#include <linux/dlm.h>
+#include <linux/types.h>
+
#define DLM_USER_LVB_LEN 32
/* Version of the device interface */
@@ -84,3 +90,4 @@ struct dlm_lock_result {
#define DLM_USER_LSFLG_AUTOFREE 1
#define DLM_USER_LSFLG_FORCEFREE 2
+#endif
diff --git a/include/linux/dn.h b/include/linux/dn.h
index 10b6a6f..9a13dd6 100644
--- a/include/linux/dn.h
+++ b/include/linux/dn.h
@@ -7,6 +7,9 @@
*/
+#include <linux/ioctl.h>
+#include <linux/types.h>
+
/*
* DNPROTO_NSP can't be the same as SOL_SOCKET,
* so increment each by one (compared to ULTRIX)
diff --git a/include/linux/efs_fs_sb.h b/include/linux/efs_fs_sb.h
index ff1945e..a742b29 100644
--- a/include/linux/efs_fs_sb.h
+++ b/include/linux/efs_fs_sb.h
@@ -10,6 +10,7 @@
#define __EFS_FS_SB_H__
#include <linux/magic.h>
+#include <linux/types.h>
/* EFS superblock magic numbers */
#define EFS_MAGIC 0x072959
diff --git a/include/linux/elfcore.h b/include/linux/elfcore.h
index 9631ddd..2d5484e 100644
--- a/include/linux/elfcore.h
+++ b/include/linux/elfcore.h
@@ -20,7 +20,6 @@ struct elf_siginfo
typedef elf_greg_t greg_t;
typedef elf_gregset_t gregset_t;
typedef elf_fpregset_t fpregset_t;
-typedef elf_fpxregset_t fpxregset_t;
#define NGREG ELF_NGREG
#endif
diff --git a/include/linux/errqueue.h b/include/linux/errqueue.h
index 92f8d4f..ceb1454 100644
--- a/include/linux/errqueue.h
+++ b/include/linux/errqueue.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_ERRQUEUE_H
#define _LINUX_ERRQUEUE_H 1
+#include <linux/types.h>
+
struct sock_extended_err
{
__u32 ee_errno;
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index c6310ae..f6fd474 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -12,6 +12,7 @@
#ifndef _LINUX_ETHTOOL_H
#define _LINUX_ETHTOOL_H
+#include <linux/types.h>
/* This should work for both 32 and 64 bit userland. */
struct ethtool_cmd {
diff --git a/include/linux/gfs2_ondisk.h b/include/linux/gfs2_ondisk.h
index 8b7e4c1..e707cb5 100644
--- a/include/linux/gfs2_ondisk.h
+++ b/include/linux/gfs2_ondisk.h
@@ -10,6 +10,8 @@
#ifndef __GFS2_ONDISK_DOT_H__
#define __GFS2_ONDISK_DOT_H__
+#include <linux/types.h>
+
#define GFS2_MAGIC 0x01161970
#define GFS2_BASIC_BLOCK 512
#define GFS2_BASIC_BLOCK_SHIFT 9
diff --git a/include/linux/hdlc/ioctl.h b/include/linux/hdlc/ioctl.h
index 5839723..09dc723 100644
--- a/include/linux/hdlc/ioctl.h
+++ b/include/linux/hdlc/ioctl.h
@@ -1,6 +1,7 @@
#ifndef __HDLC_IOCTL_H__
#define __HDLC_IOCTL_H__
+#include <linux/if.h>
#define GENERIC_HDLC_VERSION 4 /* For synchronization with sethdlc utility */
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h
index acbdae6..3b35f72 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -29,6 +29,8 @@
* Vojtech Pavlik, Ucitelska 1576, Prague 8, 182 00 Czech Republic
*/
+#include <linux/types.h>
+
/*
* The event structure itself
*/
diff --git a/include/linux/if_fc.h b/include/linux/if_fc.h
index 376a34e..6ed7f1b 100644
--- a/include/linux/if_fc.h
+++ b/include/linux/if_fc.h
@@ -20,6 +20,7 @@
#ifndef _LINUX_IF_FC_H
#define _LINUX_IF_FC_H
+#include <linux/types.h>
#define FC_ALEN 6 /* Octets in one ethernet addr */
#define FC_HLEN (sizeof(struct fch_hdr)+sizeof(struct fcllc))
diff --git a/include/linux/if_ppp.h b/include/linux/if_ppp.h
index 768372f..b8d05b8 100644
--- a/include/linux/if_ppp.h
+++ b/include/linux/if_ppp.h
@@ -36,6 +36,9 @@
#define _IF_PPP_H_
#include <linux/compiler.h>
+#include <linux/if.h>
+#include <linux/ppp_defs.h>
+#include <linux/types.h>
/*
* Packet sizes
diff --git a/include/linux/ppp_defs.h b/include/linux/ppp_defs.h
index c6b13ff..a71510a 100644
--- a/include/linux/ppp_defs.h
+++ b/include/linux/ppp_defs.h
@@ -42,6 +42,8 @@
#ifndef _PPP_DEFS_H_
#define _PPP_DEFS_H_
+#include <linux/types.h>
+
/*
* The basic PPP frame.
*/
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 4fab3d0..5f971f9 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -20,10 +20,10 @@
#include <asm/types.h>
#include <asm/byteorder.h>
-#ifdef __KERNEL__
#include <linux/if_ether.h>
#include <linux/if.h>
#include <linux/netdevice.h>
+#ifdef __KERNEL__
#include <asm/semaphore.h>
#include <linux/ppp_channel.h>
#endif /* __KERNEL__ */
diff --git a/include/linux/if_shaper.h b/include/linux/if_shaper.h
index 68c896a..6d5038e 100644
--- a/include/linux/if_shaper.h
+++ b/include/linux/if_shaper.h
@@ -1,6 +1,8 @@
#ifndef __LINUX_SHAPER_H
#define __LINUX_SHAPER_H
+#include <linux/types.h>
+
#ifdef __KERNEL__
#define SHAPER_QLEN 10
diff --git a/include/linux/if_strip.h b/include/linux/if_strip.h
index fb5c5c9..6526a62 100644
--- a/include/linux/if_strip.h
+++ b/include/linux/if_strip.h
@@ -18,6 +18,8 @@
#ifndef __LINUX_STRIP_H
#define __LINUX_STRIP_H
+#include <linux/types.h>
+
typedef struct {
__u8 c[6];
} MetricomAddress;
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h
index 660b501..3331fc4 100644
--- a/include/linux/if_tunnel.h
+++ b/include/linux/if_tunnel.h
@@ -2,6 +2,9 @@
#define _IF_TUNNEL_H_
#include <linux/types.h>
+#include <asm/byteorder.h>
+#include <linux/if.h>
+#include <linux/ip.h>
#define SIOCGETTUNNEL (SIOCDEVPRIVATE + 0)
#define SIOCADDTUNNEL (SIOCDEVPRIVATE + 1)
diff --git a/include/linux/inet_diag.h b/include/linux/inet_diag.h
index 6e8bc54..bc8c490 100644
--- a/include/linux/inet_diag.h
+++ b/include/linux/inet_diag.h
@@ -1,6 +1,8 @@
#ifndef _INET_DIAG_H_
#define _INET_DIAG_H_ 1
+#include <linux/types.h>
+
/* Just some random number */
#define TCPDIAG_GETSOCK 18
#define DCCPDIAG_GETSOCK 19
diff --git a/include/linux/ipv6_route.h b/include/linux/ipv6_route.h
index b323ff5..d5865f0 100644
--- a/include/linux/ipv6_route.h
+++ b/include/linux/ipv6_route.h
@@ -13,6 +13,8 @@
#ifndef _LINUX_IPV6_ROUTE_H
#define _LINUX_IPV6_ROUTE_H
+#include <linux/in6.h>
+
#define RTF_DEFAULT 0x00010000 /* default - learned via ND */
#define RTF_ALLONLINK 0x00020000 /* (deprecated and will be removed)
fallback, no routers on link */
diff --git a/include/linux/ipx.h b/include/linux/ipx.h
index eb19b4e..22d379f 100644
--- a/include/linux/ipx.h
+++ b/include/linux/ipx.h
@@ -2,6 +2,7 @@
#define _IPX_H_
#include <linux/sockios.h>
#include <linux/socket.h>
+#include <linux/types.h>
#define IPX_NODE_LEN 6
#define IPX_MTU 576
diff --git a/include/linux/irda.h b/include/linux/irda.h
index 09d8f10..b41984f 100644
--- a/include/linux/irda.h
+++ b/include/linux/irda.h
@@ -31,6 +31,9 @@
* this one, or preferably to include <net/irda/irda.h> instead.
* Jean II */
+#include <linux/types.h>
+#include <linux/socket.h>
+
/* Hint bit positions for first hint byte */
#define HINT_PNP 0x01
#define HINT_PDA 0x02
diff --git a/include/linux/llc.h b/include/linux/llc.h
index 09f2e6d..f3a34ca 100644
--- a/include/linux/llc.h
+++ b/include/linux/llc.h
@@ -12,6 +12,10 @@
*
* See the GNU General Public License for more details.
*/
+
+#include <linux/if.h>
+#include <linux/socket.h>
+
#define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */
struct sockaddr_llc {
sa_family_t sllc_family; /* AF_LLC */
diff --git a/include/linux/lock_dlm_plock.h b/include/linux/lock_dlm_plock.h
index fc34151..d3c2a54 100644
--- a/include/linux/lock_dlm_plock.h
+++ b/include/linux/lock_dlm_plock.h
@@ -9,6 +9,8 @@
#ifndef __LOCK_DLM_PLOCK_DOT_H__
#define __LOCK_DLM_PLOCK_DOT_H__
+#include <linux/types.h>
+
#define GDLM_PLOCK_MISC_NAME "lock_dlm_plock"
#define GDLM_PLOCK_VERSION_MAJOR 1
diff --git a/include/linux/minix_fs.h b/include/linux/minix_fs.h
index 916e8f7..bb33d11 100644
--- a/include/linux/minix_fs.h
+++ b/include/linux/minix_fs.h
@@ -2,6 +2,7 @@
#define _LINUX_MINIX_FS_H
#include <linux/magic.h>
+#include <linux/types.h>
/*
* The minix filesystem constants/structures
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h
index 022edfa..175741c 100644
--- a/include/linux/netfilter/x_tables.h
+++ b/include/linux/netfilter/x_tables.h
@@ -1,6 +1,8 @@
#ifndef _X_TABLES_H
#define _X_TABLES_H
+#include <linux/types.h>
+
#define XT_FUNCTION_MAXNAMELEN 30
#define XT_TABLE_MAXNAMELEN 32
diff --git a/include/linux/netrom.h b/include/linux/netrom.h
index 6939b32..af7313c 100644
--- a/include/linux/netrom.h
+++ b/include/linux/netrom.h
@@ -7,6 +7,8 @@
#ifndef NETROM_KERNEL_H
#define NETROM_KERNEL_H
+#include <linux/ax25.h>
+
#define NETROM_MTU 236
#define NETROM_T1 1
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h
index 15a9f3b..91a1c24 100644
--- a/include/linux/nfs_idmap.h
+++ b/include/linux/nfs_idmap.h
@@ -37,6 +37,8 @@
#ifndef NFS_IDMAP_H
#define NFS_IDMAP_H
+#include <linux/types.h>
+
/* XXX from bits/utmp.h */
#define IDMAP_NAMESZ 128
diff --git a/include/linux/nubus.h b/include/linux/nubus.h
index 870e66a..72c8774 100644
--- a/include/linux/nubus.h
+++ b/include/linux/nubus.h
@@ -12,6 +12,8 @@
#ifndef LINUX_NUBUS_H
#define LINUX_NUBUS_H
+#include <linux/types.h>
+
#ifdef __KERNEL__
#include <asm/nubus.h>
#endif
diff --git a/include/linux/pkt_cls.h b/include/linux/pkt_cls.h
index c3f01b3..762f048 100644
--- a/include/linux/pkt_cls.h
+++ b/include/linux/pkt_cls.h
@@ -2,6 +2,7 @@
#define __LINUX_PKT_CLS_H
#include <linux/pkt_sched.h>
+#include <linux/types.h>
/* I think i could have done better macros ; for now this is stolen from
* some arch/mips code - jhs
diff --git a/include/linux/pkt_sched.h b/include/linux/pkt_sched.h
index d10f353..2169d79 100644
--- a/include/linux/pkt_sched.h
+++ b/include/linux/pkt_sched.h
@@ -1,6 +1,8 @@
#ifndef __LINUX_PKT_SCHED_H
#define __LINUX_PKT_SCHED_H
+#include <linux/types.h>
+
/* Logical priority bands not depending on specific packet scheduler.
Every scheduler will map them to real traffic classes, if it has
no more precise mechanism to classify packets.
diff --git a/include/linux/random.h b/include/linux/random.h
index 01ad710..57195d0 100644
--- a/include/linux/random.h
+++ b/include/linux/random.h
@@ -8,6 +8,7 @@
#define _LINUX_RANDOM_H
#include <linux/ioctl.h>
+#include <linux/types.h>
/* ioctl()'s for the random number generator */
diff --git a/include/linux/romfs_fs.h b/include/linux/romfs_fs.h
index e20bbf9..1404f8d 100644
--- a/include/linux/romfs_fs.h
+++ b/include/linux/romfs_fs.h
@@ -1,6 +1,8 @@
#ifndef __LINUX_ROMFS_FS_H
#define __LINUX_ROMFS_FS_H
+#include <linux/types.h>
+
/* The basic structures of the romfs filesystem */
#define ROMBSIZE BLOCK_SIZE
diff --git a/include/linux/rose.h b/include/linux/rose.h
index c7b4b18..5bcbba1 100644
--- a/include/linux/rose.h
+++ b/include/linux/rose.h
@@ -7,6 +7,9 @@
#ifndef ROSE_KERNEL_H
#define ROSE_KERNEL_H
+#include <linux/socket.h>
+#include <linux/ax25.h>
+
#define ROSE_MTU 251
#define ROSE_MAX_DIGIS 6
diff --git a/include/linux/scc.h b/include/linux/scc.h
index 3495bd9..d5916e5 100644
--- a/include/linux/scc.h
+++ b/include/linux/scc.h
@@ -3,6 +3,7 @@
#ifndef _SCC_H
#define _SCC_H
+#include <linux/sockios.h>
/* selection of hardware types */
diff --git a/include/linux/selinux_netlink.h b/include/linux/selinux_netlink.h
index bbf489d..faf9675 100644
--- a/include/linux/selinux_netlink.h
+++ b/include/linux/selinux_netlink.h
@@ -12,6 +12,8 @@
#ifndef _LINUX_SELINUX_NETLINK_H
#define _LINUX_SELINUX_NETLINK_H
+#include <linux/types.h>
+
/* Message types. */
#define SELNL_MSG_BASE 0x10
enum {
diff --git a/include/linux/synclink.h b/include/linux/synclink.h
index c8b0426..ba59b6d 100644
--- a/include/linux/synclink.h
+++ b/include/linux/synclink.h
@@ -11,6 +11,9 @@
#ifndef _SYNCLINK_H_
#define _SYNCLINK_H_
+
+#include <linux/types.h>
+
#define SYNCLINK_H_VERSION 3.6
#define BOOLEAN int
diff --git a/include/linux/un.h b/include/linux/un.h
index 45561c5..77371f5 100644
--- a/include/linux/un.h
+++ b/include/linux/un.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_UN_H
#define _LINUX_UN_H
+#include <linux/socket.h>
+
#define UNIX_PATH_MAX 108
struct sockaddr_un {
diff --git a/include/linux/video_decoder.h b/include/linux/video_decoder.h
index 121e26d..e26c0c8 100644
--- a/include/linux/video_decoder.h
+++ b/include/linux/video_decoder.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_VIDEO_DECODER_H
#define _LINUX_VIDEO_DECODER_H
+#include <linux/types.h>
+
#define HAVE_VIDEO_DECODER 1
struct video_decoder_capability { /* this name is too long */
diff --git a/include/linux/video_encoder.h b/include/linux/video_encoder.h
index 4b0e690..b7b6423 100644
--- a/include/linux/video_encoder.h
+++ b/include/linux/video_encoder.h
@@ -1,6 +1,8 @@
#ifndef _LINUX_VIDEO_ENCODER_H
#define _LINUX_VIDEO_ENCODER_H
+#include <linux/types.h>
+
struct video_encoder_capability { /* this name is too long */
__u32 flags;
#define VIDEO_ENCODER_PAL 1 /* can encode PAL signal */
diff --git a/include/linux/wireless.h b/include/linux/wireless.h
index 7c269f4..9ba6355 100644
--- a/include/linux/wireless.h
+++ b/include/linux/wireless.h
@@ -72,11 +72,9 @@
/* This header is used in user-space, therefore need to be sanitised
* for that purpose. Those includes are usually not compatible with glibc.
* To know which includes to use in user-space, check iwlib.h. */
-#ifdef __KERNEL__
#include <linux/types.h> /* for "caddr_t" et al */
#include <linux/socket.h> /* for "struct sockaddr" et al */
#include <linux/if.h> /* for IFNAMSIZ and co... */
-#endif /* __KERNEL__ */
/***************************** VERSION *****************************/
/*
diff --git a/include/linux/x25.h b/include/linux/x25.h
index d035e4e..00dcc34 100644
--- a/include/linux/x25.h
+++ b/include/linux/x25.h
@@ -12,6 +12,7 @@
#define X25_KERNEL_H
#include <linux/types.h>
+#include <linux/socket.h>
#define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
#define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
diff --git a/include/linux/times.h b/include/linux/times.h
index e2d3020..813446f 100644
--- a/include/linux/times.h
+++ b/include/linux/times.h
@@ -2,6 +2,7 @@
#define _LINUX_TIMES_H
#include <linux/types.h>
+#include <linux/time.h>
struct tms {
clock_t tms_utime;
diff --git a/include/linux/ext2_fs.h b/include/linux/ext2_fs.h
index 153d755..0f9cac0 100644
--- a/include/linux/ext2_fs.h
+++ b/include/linux/ext2_fs.h
@@ -18,6 +18,7 @@
#include <linux/types.h>
#include <linux/magic.h>
+#include <linux/fs.h>
/*
* The second extended filesystem constants/structures
diff --git a/include/linux/isdn_divertif.h b/include/linux/isdn_divertif.h
index 0e7e44c..ec61201 100644
--- a/include/linux/isdn_divertif.h
+++ b/include/linux/isdn_divertif.h
@@ -10,6 +10,7 @@
*
*/
+#include <linux/types.h>
/***********************************************************/
/* magic value is also used to control version information */
diff --git a/include/linux/nfsd/syscall.h b/include/linux/nfsd/syscall.h
index 8bcddcc..a84b922 100644
--- a/include/linux/nfsd/syscall.h
+++ b/include/linux/nfsd/syscall.h
@@ -10,10 +10,8 @@
#define NFSD_SYSCALL_H
#include <asm/types.h>
-#ifdef __KERNEL__
-# include <linux/types.h>
-# include <linux/in.h>
-#endif
+#include <linux/types.h>
+#include <linux/in.h>
#include <linux/posix_types.h>
#include <linux/nfsd/const.h>
#include <linux/nfsd/export.h>
--- a/include/linux/mroute.h
+++ b/include/linux/mroute.h
@@ -3,6 +3,7 @@
#include <linux/sockios.h>
#include <linux/in.h>
+#include <linux/types.h>
/*
* Based on the MROUTING 3.5 defines primarily to keep
diff --git a/include/linux/if_pppol2tp.h b/include/linux/if_pppol2tp.h
index a7d6a22..223c09d 100644
--- a/include/linux/if_pppol2tp.h
+++ b/include/linux/if_pppol2tp.h
@@ -15,11 +15,8 @@
#ifndef __LINUX_IF_PPPOL2TP_H
#define __LINUX_IF_PPPOL2TP_H
-#include <asm/types.h>
-
-#ifdef __KERNEL__
+#include <linux/types.h>
#include <linux/in.h>
-#endif
/* Structure used to connect() the socket to a particular tunnel UDP
* socket.
1.1 src/patchsets/gentoo-headers/2.6.24/10_all_remove-page-user-headers.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/10_all_remove-page-user-headers.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/10_all_remove-page-user-headers.patch?rev=1.1&content-type=text/plain
Index: 10_all_remove-page-user-headers.patch
===================================================================
Most arches stub these headers anyways, so lets just plain punt them
diff --git a/include/asm-generic/Kbuild.asm b/include/asm-generic/Kbuild.asm
index a37e95f..8731ae4 100644
--- a/include/asm-generic/Kbuild.asm
+++ b/include/asm-generic/Kbuild.asm
@@ -27,8 +27,5 @@ unifdef-y += termbits.h
unifdef-y += termios.h
unifdef-y += types.h
unifdef-y += unistd.h
-unifdef-y += user.h
# These probably shouldn't be exported
-unifdef-y += elf.h
-unifdef-y += page.h
--- a/include/asm-x86/Kbuild
+++ b/include/asm-x86/Kbuild
@@ -23,7 +23,5 @@
unifdef-y += ptrace.h
unifdef-y += unistd_32.h
unifdef-y += unistd_64.h
-unifdef-y += user_32.h
-unifdef-y += user_64.h
unifdef-y += vm86.h
unifdef-y += vsyscall.h
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index e81e301..43bc871 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -15,7 +15,6 @@ header-y += usb/
header-y += affs_hardblocks.h
header-y += aio_abi.h
-header-y += a.out.h
header-y += arcfb.h
header-y += atmapi.h
header-y += atmbr2684.h
@@ -54,8 +53,6 @@ header-y += dqblk_v1.h
header-y += dqblk_v2.h
header-y += dqblk_xfs.h
header-y += efs_fs_sb.h
-header-y += elf-fdpic.h
-header-y += elf.h
header-y += elf-em.h
header-y += fadvise.h
header-y += fd.h
@@ -162,6 +159,7 @@ unifdef-y += acct.h
unifdef-y += adb.h
unifdef-y += adfs_fs.h
unifdef-y += agpgart.h
+unifdef-y += a.out.h
unifdef-y += apm_bios.h
unifdef-y += atalk.h
unifdef-y += atmarp.h
@@ -185,7 +183,6 @@ unifdef-y += cyclades.h
unifdef-y += dirent.h
unifdef-y += dlm.h
unifdef-y += edd.h
-unifdef-y += elfcore.h
unifdef-y += errno.h
unifdef-y += errqueue.h
unifdef-y += ethtool.h
@@ -328,7 +325,6 @@ unifdef-y += uinput.h
unifdef-y += uio.h
unifdef-y += unistd.h
unifdef-y += usbdevice_fs.h
-unifdef-y += user.h
unifdef-y += utsname.h
unifdef-y += videodev2.h
unifdef-y += videodev.h
diff --git a/include/linux/a.out.h b/include/linux/a.out.h
index f913cc3..98210e6 100644
--- a/include/linux/a.out.h
+++ b/include/linux/a.out.h
@@ -128,12 +128,20 @@ enum machine_type {
#endif
#ifdef linux
+#ifdef __KERNEL__
#include <asm/page.h>
+#else
+#include <unistd.h>
+#endif
#if defined(__i386__) || defined(__mc68000__)
#define SEGMENT_SIZE 1024
#else
#ifndef SEGMENT_SIZE
+#ifdef __KERNEL__
#define SEGMENT_SIZE PAGE_SIZE
+#else
+#define SEGMENT_SIZE getpagesize()
+#endif
#endif
#endif
#endif
diff --git a/include/linux/shm.h b/include/linux/shm.h
index ad2e3af..b95ce87 100644
--- a/include/linux/shm.h
+++ b/include/linux/shm.h
@@ -3,7 +3,11 @@
#include <linux/ipc.h>
#include <linux/errno.h>
+#ifdef __KERNEL__
#include <asm/page.h>
+#else
+#include <unistd.h>
+#endif
/*
* SHMMAX, SHMMNI and SHMALL are upper limits are defaults which can
@@ -13,7 +17,11 @@
#define SHMMAX 0x2000000 /* max shared seg size (bytes) */
#define SHMMIN 1 /* min shared seg size (bytes) */
#define SHMMNI 4096 /* max num of segs system wide */
+#ifdef __KERNEL__
#define SHMALL (SHMMAX/PAGE_SIZE*(SHMMNI/16)) /* max shm system wide (pages) */
+#else
+#define SHMALL (SHMMAX/getpagesize()*(SHMMNI/16))
+#endif
#define SHMSEG SHMMNI /* max shared segs per process */
#include <asm/shmparam.h>
1.1 src/patchsets/gentoo-headers/2.6.24/35_all_c99-types.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/35_all_c99-types.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gentoo-headers/2.6.24/35_all_c99-types.patch?rev=1.1&content-type=text/plain
Index: 35_all_c99-types.patch
===================================================================
The asm-*/types.h no longer depend on STRICT_ANSI, so change linux/types.h as well
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -120,7 +123,7 @@
typedef __u16 uint16_t;
typedef __u32 uint32_t;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if defined(__GNUC__)
typedef __u64 uint64_t;
typedef __u64 u_int64_t;
typedef __s64 int64_t;
@@ -182,7 +185,7 @@
typedef __u16 __bitwise __be16;
typedef __u32 __bitwise __le32;
typedef __u32 __bitwise __be32;
-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+#if defined(__GNUC__)
typedef __u64 __bitwise __le64;
typedef __u64 __bitwise __be64;
#endif
--
gentoo-commits@lists.gentoo.org mailing list
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-01-26 9:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-26 9:26 [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/2.6.24: 03_all_linux-export-aligned-64bits.patch 05_all_no-glibc-ifdefs.patch 07_all_pull-libc-headers-asm.patch 07_all_pull-libc-headers-linux.patch 09_all_include-other-linux-headers.patch 10_all_remove-page-user-headers.patch 35_all_c99-types.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox