From: Greg Kroah-Hartman Date: Tue, 8 Oct 2024 13:26:55 +0000 (+0200) Subject: 6.11-stable patches X-Git-Tag: v6.6.55~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=274c26f5bf9d471dce2cd54bca13507390e43477;p=thirdparty%2Fkernel%2Fstable-queue.git 6.11-stable patches added patches: perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch --- diff --git a/queue-6.11/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch b/queue-6.11/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch new file mode 100644 index 00000000000..15393bb7bdc --- /dev/null +++ b/queue-6.11/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch @@ -0,0 +1,37 @@ +From b81162302001f41157f6e93654aaccc30e817e2a Mon Sep 17 00:00:00 2001 +From: Arnaldo Carvalho de Melo +Date: Thu, 22 Aug 2024 14:13:49 -0300 +Subject: perf python: Allow checking for the existence of warning options in clang + +From: Arnaldo Carvalho de Melo + +commit b81162302001f41157f6e93654aaccc30e817e2a upstream. + +We'll need to check if an warning option introduced in clang 19 is +available on the clang version being used, so cover the error message +emitted when testing for a -W option. + +Tested-by: Sedat Dilek +Cc: Ian Rogers +Cc: Ingo Molnar +Cc: Namhyung Kim +Cc: Nathan Chancellor +Cc: Peter Zijlstra +Link: https://lore.kernel.org/lkml/CA+icZUVtHn8X1Tb_Y__c-WswsO0K8U9uy3r2MzKXwTA5THtL7w@mail.gmail.com +Signed-off-by: Arnaldo Carvalho de Melo +Signed-off-by: Greg Kroah-Hartman +--- + tools/perf/util/setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tools/perf/util/setup.py ++++ b/tools/perf/util/setup.py +@@ -17,7 +17,7 @@ src_feature_tests = getenv('srctree') + + + def clang_has_option(option): + cc_output = Popen([cc, cc_options + option, path.join(src_feature_tests, "test-hello.c") ], stderr=PIPE).stderr.readlines() +- return [o for o in cc_output if ((b"unknown argument" in o) or (b"is not supported" in o))] == [ ] ++ return [o for o in cc_output if ((b"unknown argument" in o) or (b"is not supported" in o) or (b"unknown warning option" in o))] == [ ] + + if cc_is_clang: + from sysconfig import get_config_vars diff --git a/queue-6.11/series b/queue-6.11/series index 54fdbc2a6c1..a16857c4bf8 100644 --- a/queue-6.11/series +++ b/queue-6.11/series @@ -556,3 +556,4 @@ crypto-octeontx-select-crypto_authenc.patch drm-amd-display-revert-avoid-overflow-assignment.patch perf-report-fix-segfault-when-sym-sort-key-is-not-used.patch pmdomain-core-reduce-debug-summary-table-width.patch +perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch