summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2021-01-05 17:50:11 +0100
committerThorsten Leemhuis <fedora@leemhuis.info>2021-01-05 17:50:11 +0100
commitc6aa4364d055f1b02ed8aa61c465f40b45e4b078 (patch)
tree182330bc1e4555802aedd2d2acd465689ab2dee1
parent87da4064701f9ed70e8c25b5ee9165450b1d0c40 (diff)
parent3a91cbd61fc379fc559561ce4850e9e342dc18be (diff)
downloadkernel-c6aa4364d055f1b02ed8aa61c465f40b45e4b078.tar.gz
kernel-c6aa4364d055f1b02ed8aa61c465f40b45e4b078.tar.xz
kernel-c6aa4364d055f1b02ed8aa61c465f40b45e4b078.zip
Merge remote-tracking branch 'origin/master' into rawhide-user-thl-vanilla-fedora
-rw-r--r--aarch64build.patch17
-rw-r--r--gcc11-plugins-fix.patch13
-rw-r--r--kernel-aarch64-debug-fedora.config2
-rw-r--r--kernel-aarch64-debug-rhel.config2
-rwxr-xr-xkernel.spec5
5 files changed, 37 insertions, 2 deletions
diff --git a/aarch64build.patch b/aarch64build.patch
new file mode 100644
index 000000000..a26e647ac
--- /dev/null
+++ b/aarch64build.patch
@@ -0,0 +1,17 @@
+---
+ kernel/irq/manage.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c
+index ab8567f32501..dec3f73e8db9 100644
+--- a/kernel/irq/manage.c
++++ b/kernel/irq/manage.c
+@@ -2859,3 +2859,4 @@ bool irq_check_status_bit(unsigned int irq, unsigned int bitmask)
+ rcu_read_unlock();
+ return res;
+ }
++EXPORT_SYMBOL_GPL(irq_check_status_bit);
+--
+2.27.0
+
+ \ No newline at end of file
diff --git a/gcc11-plugins-fix.patch b/gcc11-plugins-fix.patch
new file mode 100644
index 000000000..caac69117
--- /dev/null
+++ b/gcc11-plugins-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
+index d66949bfeba4..a6c35d651704 100644
+--- a/scripts/gcc-plugins/Makefile
++++ b/scripts/gcc-plugins/Makefile
+@@ -22,7 +22,7 @@ always-y += $(GCC_PLUGIN)
+ GCC_PLUGINS_DIR = $(shell $(CC) -print-file-name=plugin)
+
+ plugin_cxxflags = -Wp,-MMD,$(depfile) $(KBUILD_HOSTCXXFLAGS) -fPIC \
+- -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++98 \
++ -I $(GCC_PLUGINS_DIR)/include -I $(obj) -std=gnu++11 \
+ -fno-rtti -fno-exceptions -fasynchronous-unwind-tables \
+ -ggdb -Wno-narrowing -Wno-unused-variable -Wno-c++11-compat \
+ -Wno-format-diag
diff --git a/kernel-aarch64-debug-fedora.config b/kernel-aarch64-debug-fedora.config
index 2a33d82bb..83fc4b61f 100644
--- a/kernel-aarch64-debug-fedora.config
+++ b/kernel-aarch64-debug-fedora.config
@@ -3269,7 +3269,7 @@ CONFIG_KALLSYMS_ALL=y
CONFIG_KALLSYMS=y
CONFIG_KARMA_PARTITION=y
CONFIG_KASAN_GENERIC=y
-CONFIG_KASAN_HW_TAGS=y
+# CONFIG_KASAN_HW_TAGS is not set
CONFIG_KASAN_INLINE=y
# CONFIG_KASAN_OUTLINE is not set
# CONFIG_KASAN_SW_TAGS is not set
diff --git a/kernel-aarch64-debug-rhel.config b/kernel-aarch64-debug-rhel.config
index 68567baed..0c3358348 100644
--- a/kernel-aarch64-debug-rhel.config
+++ b/kernel-aarch64-debug-rhel.config
@@ -2599,7 +2599,7 @@ CONFIG_KALLSYMS_BASE_RELATIVE=y
CONFIG_KALLSYMS=y
# CONFIG_KARMA_PARTITION is not set
CONFIG_KASAN_GENERIC=y
-CONFIG_KASAN_HW_TAGS=y
+# CONFIG_KASAN_HW_TAGS is not set
CONFIG_KASAN_INLINE=y
# CONFIG_KASAN_OUTLINE is not set
# CONFIG_KASAN_SW_TAGS is not set
diff --git a/kernel.spec b/kernel.spec
index f9adc5692..733fa5577 100755
--- a/kernel.spec
+++ b/kernel.spec
@@ -381,6 +381,7 @@ Summary: The Linux kernel
%define make_target vmlinux
%define kernel_image vmlinux
%define kernel_image_elf 1
+%define use_vdso 0
%define all_arch_configs kernel-%{version}-ppc64le*.config
%endif
@@ -744,6 +745,8 @@ Source4000: README.rst
Patch1: patch-%{rpmversion}-redhat.patch
Patch2: secureboot_merge_fix.patch
+Patch3: gcc11-plugins-fix.patch
+Patch4: aarch64build.patch
%endif
# empty final patch to facilitate testing of kernel patches
@@ -1248,6 +1251,8 @@ cd linux-%{KVERREL}
ApplyOptionalPatch patch-%{rpmversion}-redhat.patch
ApplyOptionalPatch secureboot_merge_fix.patch
+ApplyOptionalPatch gcc11-plugins-fix.patch
+ApplyOptionalPatch aarch64build.patch
%endif
ApplyOptionalPatch linux-kernel-test.patch