summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-12-28 16:23:11 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2017-12-28 16:23:11 +0000
commit49d93e56faa9aab05335156b155e2beafd2d548b (patch)
tree629f5b655979b4eea887234c77658029b269c8fc /src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch
parentrip-headers.sh: add tiny 'usage' banner (diff)
downloadgentoo-49d93e56faa9aab05335156b155e2beafd2d548b.tar.gz
gentoo-49d93e56faa9aab05335156b155e2beafd2d548b.tar.bz2
gentoo-49d93e56faa9aab05335156b155e2beafd2d548b.zip
4.14: new base patchset for gentoo-headers
Diffstat (limited to 'src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch')
-rw-r--r--src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch b/src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch
new file mode 100644
index 0000000000..9715d41ac1
--- /dev/null
+++ b/src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch
@@ -0,0 +1,76 @@
+From a1842c2ea8add14ed357ba2c9ff7c15331f32179 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Mon, 2 Nov 2015 13:30:12 -0500
+Subject: [PATCH] uapi: fix System V buf header includes
+
+These headers rely on kernel types but don't include the other headers
+that define them. So when you try to include them directly, you often
+hit build failures due to unknown types.
+
+Signed-off-by: Mike Frysinger <vapier@gentoo.org>
+---
+ include/uapi/asm-generic/ipcbuf.h | 2 ++
+ include/uapi/asm-generic/msgbuf.h | 3 +++
+ include/uapi/asm-generic/sembuf.h | 2 ++
+ include/uapi/asm-generic/shmbuf.h | 2 ++
+ 4 files changed, 9 insertions(+)
+
+diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic/ipcbuf.h
+index 3dbcc1e771c0..c37b32ab1304 100644
+--- a/include/uapi/asm-generic/ipcbuf.h
++++ b/include/uapi/asm-generic/ipcbuf.h
+@@ -1,6 +1,8 @@
+ #ifndef __ASM_GENERIC_IPCBUF_H
+ #define __ASM_GENERIC_IPCBUF_H
+
++#include <linux/types.h>
++
+ /*
+ * The generic ipc64_perm structure:
+ * Note extra padding because this structure is passed back and forth
+diff --git a/include/uapi/asm-generic/msgbuf.h b/include/uapi/asm-generic/msgbuf.h
+index f55ecc43c60f..473dcdc305a1 100644
+--- a/include/uapi/asm-generic/msgbuf.h
++++ b/include/uapi/asm-generic/msgbuf.h
+@@ -1,7 +1,10 @@
+ #ifndef __ASM_GENERIC_MSGBUF_H
+ #define __ASM_GENERIC_MSGBUF_H
+
++#include <linux/types.h>
+ #include <asm/bitsperlong.h>
++#include <asm/ipcbuf.h>
++
+ /*
+ * generic msqid64_ds structure.
+ *
+diff --git a/include/uapi/asm-generic/sembuf.h b/include/uapi/asm-generic/sembuf.h
+index 4cb2c13e5090..f57240f7e6a2 100644
+--- a/include/uapi/asm-generic/sembuf.h
++++ b/include/uapi/asm-generic/sembuf.h
+@@ -1,7 +1,9 @@
+ #ifndef __ASM_GENERIC_SEMBUF_H
+ #define __ASM_GENERIC_SEMBUF_H
+
++#include <linux/types.h>
+ #include <asm/bitsperlong.h>
++#include <asm/ipcbuf.h>
+
+ /*
+ * The semid64_ds structure for x86 architecture.
+diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h
+index 7e9fb2f0853b..f9e28e413c3c 100644
+--- a/include/uapi/asm-generic/shmbuf.h
++++ b/include/uapi/asm-generic/shmbuf.h
+@@ -1,7 +1,9 @@
+ #ifndef __ASM_GENERIC_SHMBUF_H
+ #define __ASM_GENERIC_SHMBUF_H
+
++#include <linux/types.h>
+ #include <asm/bitsperlong.h>
++#include <asm/ipcbuf.h>
+
+ /*
+ * The shmid64_ds structure for x86 architecture.
+--
+2.11.1
+