From 18b2be4cf4d3a536ee835d1f426c11ed55b3bfe6 Mon Sep 17 00:00:00 2001 From: Justin M. Forbes Date: Aug 22 2022 14:31:42 +0000 Subject: Linux v6.0-rc2 Signed-off-by: Justin M. Forbes --- diff --git a/kernel-tools.spec b/kernel-tools.spec index 12539d5..913d122 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -35,7 +35,7 @@ %global upstream_major 6 # The rc snapshot level -%global rcrev 1 +%global rcrev 2 # Set rpm version accordingly %global rpmversion %{upstream_major}.%{upstream_sublevel}.0 %endif @@ -114,6 +114,9 @@ Source5000: patch-%{upstream_major}.%{upstream_sublevel}-rc%{rcrev}.xz %endif %endif +#Temp build fix +Patch1: perf_tools_fix_compile_error_for_x86.patch + # rpmlint cleanup Patch6: 0002-perf-Don-t-make-sourced-script-executable.patch @@ -219,6 +222,7 @@ cd linux-%{kversion} xzcat %{SOURCE5000} | patch -p1 -F1 -s %endif +%patch1 -p1 %patch6 -p1 # END OF PATCH APPLICATIONS @@ -536,6 +540,9 @@ popd %{_mandir}/man1/rtla.1.gz %changelog +* Mon Aug 22 2022 Justin M. Forbes - 6.0.0-0.rc2.git0.1 +- Linux v6.0-rc2 + * Mon Aug 15 2022 Justin M. Forbes - 6.0.0-0.rc1.git0.1 - Linux v6.0-rc1 diff --git a/perf_tools_fix_compile_error_for_x86.patch b/perf_tools_fix_compile_error_for_x86.patch new file mode 100644 index 0000000..fc94f87 --- /dev/null +++ b/perf_tools_fix_compile_error_for_x86.patch @@ -0,0 +1,62 @@ +From nobody Mon Aug 22 09:25:09 2022 +From: Yang Jihong +To: , , , , , , , , , +Subject: [PATCH] perf tools: Fix compile error for x86 +Date: Mon, 22 Aug 2022 17:25:57 +0800 +Message-ID: <20220822092557.210209-1-yangjihong1@huawei.com> +List-ID: +X-Mailing-List: linux-kernel@vger.kernel.org +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + +Commit a0a12c3ed057 ("asm goto: eradicate CC_HAS_ASM_GOTO") eradicates +CC_HAS_ASM_GOTO, perf on x86 call asm_volatile_goto when compiling __GEN_RMWcc. +However, asm_volatile_goto is not declared, which causes compilation error: + +In file included from /home/linux/tools/include/asm/../../arch/x86/include/asm/atomic.h:7, + from /home/linux/tools/include/asm/atomic.h:6, + from /home/linux/tools/include/linux/atomic.h:5, + from /home/linux/tools/include/linux/refcount.h:41, + from /home/linux/tools/lib/perf/include/internal/cpumap.h:5, + from /home/linux/tools/perf/util/cpumap.h:7, + from /home/linux/tools/perf/util/env.h:7, + from /home/linux/tools/perf/util/header.h:12, + from pmu-events/pmu-events.c:9: +/home/linux/tools/include/asm/../../arch/x86/include/asm/atomic.h: In function ‘atomic_dec_and_test’: +/home/linux/tools/include/asm/../../arch/x86/include/asm/rmwcc.h:7:2: error: implicit declaration of function ‘asm_volatile_goto’ [-Werror=implicit-function-declaration] + asm_volatile_goto (fullop "; j" cc " %l[cc_label]" \ + ^~~~~~~~~~~~~~~~~ + +Solution: +Define asm_volatile_goto in compiler_types.h if not declared. + +Currently, only x86 architecture uses asm_volatile_goto. +Theoretically, this patch affects only the x86 architecture. + + + +Fixes: a0a12c3ed057 ("asm goto: eradicate CC_HAS_ASM_GOTO") +Signed-off-by: Yang Jihong +Tested-by: Arnaldo Carvalho de Melo +Tested-by: Ingo Molnar +--- + tools/include/linux/compiler_types.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/tools/include/linux/compiler_types.h b/tools/include/linux/compiler_types.h +index 24ae3054f304..1bdd834bdd57 100644 +--- a/tools/include/linux/compiler_types.h ++++ b/tools/include/linux/compiler_types.h +@@ -36,4 +36,8 @@ + #include + #endif + ++#ifndef asm_volatile_goto ++#define asm_volatile_goto(x...) asm goto(x) ++#endif ++ + #endif /* __LINUX_COMPILER_TYPES_H */ +-- +2.30.GIT + diff --git a/sources b/sources index 874c03a..23e90c6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (linux-5.19.tar.xz) = 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623 -SHA512 (patch-6.0-rc1.xz) = 11b0fe31d03720f7061273e4986e08e8e1b695415b0cabd7296368e0457a33cccbe291601d9acc4fd1a19b38c737927072af2f06bb2b86d99050f6f9de30de1a +SHA512 (patch-6.0-rc2.xz) = 8ca65337d73d3f6480610daced3e94ae02613915134a95f0dee1ddd60280e6861f4605b8bba334b88288b6f65cf700387710a509d2f595c686d4f2c4c5a2172e