summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-06-01 07:36:04 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2020-06-01 07:36:04 +0100
commitc42f3711d46217a5ce2abcb801aa61a01190946a (patch)
tree353771f04c3949d916207b59797b0b30b6445567 /5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
parent5.4: backport from 5.6 time64 alsa patches (diff)
downloadlinux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.tar.gz
linux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.tar.bz2
linux-headers-patches-c42f3711d46217a5ce2abcb801aa61a01190946a.zip
5.7: base on 5.6 patches
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to '5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch')
-rw-r--r--5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch b/5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
new file mode 100644
index 0000000..625fb6e
--- /dev/null
+++ b/5.7/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
@@ -0,0 +1,54 @@
+From 091dfce6aed898f4bc4eaca0edab942dd03b8016 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 9dc0bf0c5a6e..dc9b2e467ad9 100644
+--- a/include/uapi/asm-generic/fcntl.h
++++ b/include/uapi/asm-generic/fcntl.h
+@@ -153,7 +153,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;
+ };
+@@ -193,7 +193,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;
+@@ -208,7 +208,7 @@ struct flock {
+ #define __ARCH_FLOCK64_PAD
+ #endif
+
+-struct flock64 {
++struct __kernel_flock64 {
+ short l_type;
+ short l_whence;
+ __kernel_loff_t l_start;
+--
+2.16.1
+