diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-03-02 02:15:22 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-03-02 02:15:22 +0000 |
commit | 597cefcf841ce13e1e33ac70ce4b4d43e56ab95d (patch) | |
tree | 4ddcce64275244528570cee9ff944c5e15c0a009 /3.8 | |
parent | fix typo (diff) | |
download | linux-headers-patches-597cefcf841ce13e1e33ac70ce4b4d43e56ab95d.tar.gz linux-headers-patches-597cefcf841ce13e1e33ac70ce4b4d43e56ab95d.tar.bz2 linux-headers-patches-597cefcf841ce13e1e33ac70ce4b4d43e56ab95d.zip |
initial 3.8 patchset based on last 3.7 patchset
Diffstat (limited to '3.8')
7 files changed, 280 insertions, 0 deletions
diff --git a/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch b/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch new file mode 100644 index 0000000..55fa5b1 --- /dev/null +++ b/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch @@ -0,0 +1,31 @@ +From 001e7c1c8b5332ef33b990de211842a4535170bc Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 29 Dec 2008 06:07:47 -0500 +Subject: [PATCH] kbuild: auto-convert size types in userspace headers + +Rather than constantly fixing up size type breakage in userspace headers, +auto convert the types u_intXX_t, uintXX_t, intXX_t, uXX, and sXX to the +appropriate __uXX or __sXX type. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + scripts/headers_install.pl | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl +index 581ca99..1c801a5 100644 +--- a/scripts/headers_install.pl ++++ b/scripts/headers_install.pl +@@ -42,6 +42,9 @@ foreach my $filename (@files) { + $line =~ s/(^|\s)(inline)\b/$1__$2__/g; + $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; + $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; ++ $line =~ s/\b([us](8|16|32|64))\b/__$1/g; ++ $line =~ s/\b(u_?int(8|16|32|64)_t)\b/__u$2/g; ++ $line =~ s/\b(int(8|16|32|64)_t)\b/__s$2/g; + $line =~ s/#ifndef\s+_UAPI/#ifndef /; + $line =~ s/#define\s+_UAPI/#define /; + $line =~ s!#endif\s+/[*]\s*_UAPI!#endif /* !; +-- +1.8.1.2 + diff --git a/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch b/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch new file mode 100644 index 0000000..ad1307f --- /dev/null +++ b/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch @@ -0,0 +1,28 @@ +From 2bf774549fd6339961dbde7e8ee52deca79ee52b Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 29 Dec 2008 06:52:59 -0500 +Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks + +Only check __KERNEL__ so we don't assume the C library is glibc. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/uapi/linux/stat.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h +index 7fec7e3..256ad24 100644 +--- a/include/uapi/linux/stat.h ++++ b/include/uapi/linux/stat.h +@@ -2,7 +2,7 @@ + #define _UAPI_LINUX_STAT_H + + +-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) ++#if defined(__KERNEL__) + + #define S_IFMT 00170000 + #define S_IFSOCK 0140000 +-- +1.8.1.2 + diff --git a/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch b/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch new file mode 100644 index 0000000..c9cd088 --- /dev/null +++ b/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch @@ -0,0 +1,53 @@ +From 54a163ca58793169e47fda55d232e0a00c65c966 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 29 Dec 2008 07:41:01 -0500 +Subject: [PATCH] linux/*: pull in other needed headers for userspace + +mondo patch + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/uapi/linux/cm4000_cs.h | 1 + + include/uapi/linux/dn.h | 1 + + include/uapi/linux/ppp-ioctl.h | 1 + + 3 files changed, 3 insertions(+) + +diff --git a/include/uapi/linux/cm4000_cs.h b/include/uapi/linux/cm4000_cs.h +index bc51f77..1217f75 100644 +--- a/include/uapi/linux/cm4000_cs.h ++++ b/include/uapi/linux/cm4000_cs.h +@@ -2,6 +2,7 @@ + #define _UAPI_CM4000_H_ + + #include <linux/types.h> ++#include <linux/ioctl.h> + + #define MAX_ATR 33 + +diff --git a/include/uapi/linux/dn.h b/include/uapi/linux/dn.h +index 9c50445..dc9f005 100644 +--- a/include/uapi/linux/dn.h ++++ b/include/uapi/linux/dn.h +@@ -1,6 +1,7 @@ + #ifndef _LINUX_DN_H + #define _LINUX_DN_H + ++#include <linux/ioctl.h> + #include <linux/types.h> + + /* +diff --git a/include/uapi/linux/ppp-ioctl.h b/include/uapi/linux/ppp-ioctl.h +index 2d9a885..63a23a3 100644 +--- a/include/uapi/linux/ppp-ioctl.h ++++ b/include/uapi/linux/ppp-ioctl.h +@@ -12,6 +12,7 @@ + + #include <linux/types.h> + #include <linux/compiler.h> ++#include <linux/ppp_defs.h> + + /* + * Bit definitions for flags argument to PPPIOCGFLAGS/PPPIOCSFLAGS. +-- +1.8.1.2 + diff --git a/3.8/00_all_0004-netfilter-pull-in-limits.h.patch b/3.8/00_all_0004-netfilter-pull-in-limits.h.patch new file mode 100644 index 0000000..e1fd32d --- /dev/null +++ b/3.8/00_all_0004-netfilter-pull-in-limits.h.patch @@ -0,0 +1,28 @@ +From ccdebef86f059de3af31374f3a9e87fd6f6b77bb Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Sat, 9 May 2009 17:30:35 -0400 +Subject: [PATCH] netfilter: pull in limits.h + +A few netfilter sub-headers use INT_MAX which is in limits.h. + +URL: http://bugs.gentoo.org/246160 +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/uapi/linux/netfilter.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/uapi/linux/netfilter.h b/include/uapi/linux/netfilter.h +index f7dc0eb..fcb9748 100644 +--- a/include/uapi/linux/netfilter.h ++++ b/include/uapi/linux/netfilter.h +@@ -4,6 +4,7 @@ + #include <linux/types.h> + #include <linux/compiler.h> + #include <linux/sysctl.h> ++#include <limits.h> + + + /* Responses from hook functions. */ +-- +1.8.1.2 + diff --git a/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch b/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch new file mode 100644 index 0000000..0a85290 --- /dev/null +++ b/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch @@ -0,0 +1,54 @@ +From f4f1cf93422b8991912d9fe44b663e666153ce03 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Sat, 13 Feb 2010 03:09:23 -0500 +Subject: [PATCH] convert PAGE_SIZE usage + +The size of a page may change at runtime or based on kernel settings, so +a static value at compile time doesn't work. More importantly, no one +exports PAGE_SIZE to user space anymore. + +URL: http://bugs.gentoo.org/301431 +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/uapi/linux/binfmts.h | 3 ++- + include/uapi/linux/resource.h | 3 ++- + 2 files changed, 4 insertions(+), 2 deletions(-) + +diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h +index 4eb5972..516bfcf 100644 +--- a/include/uapi/linux/binfmts.h ++++ b/include/uapi/linux/binfmts.h +@@ -1,6 +1,7 @@ + #ifndef _UAPI_LINUX_BINFMTS_H + #define _UAPI_LINUX_BINFMTS_H + ++#include <unistd.h> + #include <linux/capability.h> + + struct pt_regs; +@@ -11,7 +12,7 @@ struct pt_regs; + * prevent the kernel from being unduly impacted by misaddressed pointers. + * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. + */ +-#define MAX_ARG_STRLEN (PAGE_SIZE * 32) ++#define MAX_ARG_STRLEN (sysconf(_SC_PAGESIZE) * 32) + #define MAX_ARG_STRINGS 0x7FFFFFFF + + /* sizeof(linux_binprm->buf) */ +diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h +index e0ed284..db8acf3 100644 +--- a/include/uapi/linux/resource.h ++++ b/include/uapi/linux/resource.h +@@ -68,7 +68,8 @@ struct rlimit64 { + * GPG2 wants 64kB of mlocked memory, to make sure pass phrases + * and other sensitive information are never written to disk. + */ +-#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) ++/* No one currently defines PAGE_SIZE bigger than 64kB */ ++#define MLOCK_LIMIT (64 * 1024) + + /* + * Due to binary compatibility, the actual resource numbers +-- +1.8.1.2 + diff --git a/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch b/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch new file mode 100644 index 0000000..e1cb342 --- /dev/null +++ b/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch @@ -0,0 +1,54 @@ +From 925b1d9ec924021f34d23c633eb66a7c0fa8ce05 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 29 Dec 2008 07:39:14 -0500 +Subject: [PATCH] asm-generic/fcntl.h: namespace kernel file structs + +No one should be using these structs, but just in case they are, +keep them available in the __kernel_ namespace. + +Otherwise, trying to include something like: + #include <fcntl.h> + #include <linux/inotify.h> +leads to horrible failure. + +URL: http://bugs.gentoo.org/244470 +URL: http://bugs.gentoo.org/388633 +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + include/uapi/asm-generic/fcntl.h | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h +index a48937d..43a6e03 100644 +--- a/include/uapi/asm-generic/fcntl.h ++++ b/include/uapi/asm-generic/fcntl.h +@@ -128,7 +128,7 @@ + #define F_OWNER_PID 1 + #define F_OWNER_PGRP 2 + +-struct f_owner_ex { ++struct __kernel_f_owner_ex { + int type; + __kernel_pid_t pid; + }; +@@ -168,7 +168,7 @@ struct f_owner_ex { + #define __ARCH_FLOCK_PAD + #endif + +-struct flock { ++struct __kernel_flock { + short l_type; + short l_whence; + __kernel_off_t l_start; +@@ -185,7 +185,7 @@ struct flock { + #define __ARCH_FLOCK64_PAD + #endif + +-struct flock64 { ++struct __kernel_flock64 { + short l_type; + short l_whence; + __kernel_loff_t l_start; +-- +1.8.1.2 + diff --git a/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch b/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch new file mode 100644 index 0000000..8d00541 --- /dev/null +++ b/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch @@ -0,0 +1,32 @@ +From c5450410787576651c53d7db441b1229023c58d1 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Tue, 6 Dec 2011 17:22:42 -0500 +Subject: [PATCH] unifdef: drop unused errno.h include + +This is the only header on my system that ends up requiring kernel +headers, so if the kernel headers aren't available, we end up being +unable to install kernel headers :). + +Since this file doesn't actually use anything from errno.h, drop +the include so it at least makes us a bit more robust on glibc. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + scripts/unifdef.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/scripts/unifdef.c b/scripts/unifdef.c +index 7493c0e..c5dfae5 100644 +--- a/scripts/unifdef.c ++++ b/scripts/unifdef.c +@@ -48,7 +48,6 @@ + + #include <ctype.h> + #include <err.h> +-#include <errno.h> + #include <stdarg.h> + #include <stdbool.h> + #include <stdio.h> +-- +1.8.1.2 + |