]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Nov 2018 17:10:33 +0000 (09:10 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Nov 2018 17:10:33 +0000 (09:10 -0800)
added patches:
arm64-lse-remove-fcall-used-x0-flag.patch

queue-4.14/arm64-lse-remove-fcall-used-x0-flag.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/arm64-lse-remove-fcall-used-x0-flag.patch b/queue-4.14/arm64-lse-remove-fcall-used-x0-flag.patch
new file mode 100644 (file)
index 0000000..d764b7c
--- /dev/null
@@ -0,0 +1,36 @@
+From 2a6c7c367de82951c98a290a21156770f6f82c84 Mon Sep 17 00:00:00 2001
+From: Tri Vo <trong@android.com>
+Date: Wed, 19 Sep 2018 12:27:50 -0700
+Subject: arm64: lse: remove -fcall-used-x0 flag
+
+From: Tri Vo <trong@android.com>
+
+commit 2a6c7c367de82951c98a290a21156770f6f82c84 upstream.
+
+x0 is not callee-saved in the PCS. So there is no need to specify
+-fcall-used-x0.
+
+Clang doesn't currently support -fcall-used flags. This patch will help
+building the kernel with clang.
+
+Tested-by: Nick Desaulniers <ndesaulniers@google.com>
+Acked-by: Will Deacon <will.deacon@arm.com>
+Signed-off-by: Tri Vo <trong@android.com>
+Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/arm64/lib/Makefile |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm64/lib/Makefile
++++ b/arch/arm64/lib/Makefile
+@@ -12,7 +12,7 @@ lib-y                := bitops.o clear_user.o delay.o
+ # when supported by the CPU. Result and argument registers are handled
+ # correctly, based on the function prototype.
+ lib-$(CONFIG_ARM64_LSE_ATOMICS) += atomic_ll_sc.o
+-CFLAGS_atomic_ll_sc.o := -fcall-used-x0 -ffixed-x1 -ffixed-x2         \
++CFLAGS_atomic_ll_sc.o := -ffixed-x1 -ffixed-x2                        \
+                  -ffixed-x3 -ffixed-x4 -ffixed-x5 -ffixed-x6          \
+                  -ffixed-x7 -fcall-saved-x8 -fcall-saved-x9           \
+                  -fcall-saved-x10 -fcall-saved-x11 -fcall-saved-x12   \
index bf9c36b0a975a9d28f5b34a3a9e3aba7131b217d..1d3e82df5a7140f8f024b6059cd117dfad6d59fd 100644 (file)
@@ -161,7 +161,6 @@ iio-ad5064-fix-regulator-handling.patch
 iio-adc-imx25-gcq-fix-leak-of-device_node-in-mx25_gcq_setup_cfgs.patch
 iio-adc-at91-fix-acking-drdy-irq-on-simple-conversions.patch
 iio-adc-at91-fix-wrong-channel-number-in-triggered-buffer-mode.patch
-drivers-hv-kvp-fix-two-this-statement-may-fall-through-warnings.patch
 w1-omap-hdq-fix-missing-bus-unregister-at-removal.patch
 smb3-allow-stats-which-track-session-and-share-reconnects-to-be-reset.patch
 smb3-do-not-attempt-cifs-operation-in-smb3-query-info-error-path.patch
@@ -188,3 +187,4 @@ media-tvp5150-avoid-going-past-array-on-v4l2_querymenu.patch
 media-em28xx-fix-input-name-for-terratec-av-350.patch
 media-em28xx-make-v4l2-compliance-happier-by-starting-sequence-on-zero.patch
 media-media-colorspaces-.rst-rename-adobergb-to-oprgb.patch
+arm64-lse-remove-fcall-used-x0-flag.patch