]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Feb 2018 10:27:08 +0000 (02:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Feb 2018 10:27:08 +0000 (02:27 -0800)
added patches:
um-fix-out-of-tree-build.patch

queue-3.18/series
queue-3.18/um-fix-out-of-tree-build.patch [new file with mode: 0644]

index 2ba2cf3b494448d9f596b848e1fd0f7cfeb5dbf1..43f1a71d94f590f331f72e42484037f5045ebda8 100644 (file)
@@ -34,3 +34,4 @@ usb-uas-unconditionally-bring-back-host-after-reset.patch
 selinux-general-protection-fault-in-sock_has_perm.patch
 spi-imx-do-not-access-registers-while-clocks-disabled.patch
 asoc-pcm512x-add-missing-module_description-author-license.patch
+um-fix-out-of-tree-build.patch
diff --git a/queue-3.18/um-fix-out-of-tree-build.patch b/queue-3.18/um-fix-out-of-tree-build.patch
new file mode 100644 (file)
index 0000000..cc34449
--- /dev/null
@@ -0,0 +1,37 @@
+From 0b5aedfe0e6654ec54f35109e1929a1cf7fc4cdd Mon Sep 17 00:00:00 2001
+From: Richard Weinberger <richard@nod.at>
+Date: Sun, 28 Jun 2015 22:55:26 +0200
+Subject: um: Fix out-of-tree build
+
+From: Richard Weinberger <richard@nod.at>
+
+commit 0b5aedfe0e6654ec54f35109e1929a1cf7fc4cdd upstream.
+
+Commit 30b11ee9a (um: Remove copy&paste code from init.h)
+uncovered an issue wrt. out-of-tree builds.
+For out-of-tree builds, we must not rely on relative paths.
+Before 30b11ee9a it worked by chance as no host code included
+generated header files.
+
+Acked-by: Randy Dunlap <rdunlap@infradead.org>
+Signed-off-by: Richard Weinberger <richard@nod.at>
+Cc: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/um/Makefile |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/arch/um/Makefile
++++ b/arch/um/Makefile
+@@ -70,8 +70,8 @@ KBUILD_AFLAGS += $(ARCH_INCLUDE)
+ USER_CFLAGS = $(patsubst $(KERNEL_DEFINES),,$(patsubst -I%,,$(KBUILD_CFLAGS))) \
+               $(ARCH_INCLUDE) $(MODE_INCLUDE) $(filter -I%,$(CFLAGS)) \
+-              -D_FILE_OFFSET_BITS=64 -idirafter include \
+-              -D__KERNEL__ -D__UM_HOST__
++              -D_FILE_OFFSET_BITS=64 -idirafter $(srctree)/include \
++              -idirafter $(obj)/include -D__KERNEL__ -D__UM_HOST__
+ #This will adjust *FLAGS accordingly to the platform.
+ include $(srctree)/$(ARCH_DIR)/Makefile-os-$(OS)