]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2024 13:26:52 +0000 (15:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2024 13:26:52 +0000 (15:26 +0200)
added patches:
perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch

queue-6.6/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch [new file with mode: 0644]
queue-6.6/series

diff --git a/queue-6.6/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch b/queue-6.6/perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch
new file mode 100644 (file)
index 0000000..15393bb
--- /dev/null
@@ -0,0 +1,37 @@
+From b81162302001f41157f6e93654aaccc30e817e2a Mon Sep 17 00:00:00 2001
+From: Arnaldo Carvalho de Melo <acme@redhat.com>
+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 <acme@redhat.com>
+
+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 <sedat.dilek@gmail.com>
+Cc: Ian Rogers <irogers@google.com>
+Cc: Ingo Molnar <mingo@redhat.com>
+Cc: Namhyung Kim <namhyung@kernel.org>
+Cc: Nathan Chancellor <nathan@kernel.org>
+Cc: Peter Zijlstra <peterz@infradead.org>
+Link: https://lore.kernel.org/lkml/CA+icZUVtHn8X1Tb_Y__c-WswsO0K8U9uy3r2MzKXwTA5THtL7w@mail.gmail.com
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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
index d920c7c6bbfc51b51c25f4214d18891e4f5f6e1e..959a66d7fe8f7fc241713de2c3fa5eb5eda34420 100644 (file)
@@ -384,3 +384,4 @@ perf-report-fix-segfault-when-sym-sort-key-is-not-used.patch
 drm-amd-display-check-link_res-hpo_dp_link_enc-before-using-it.patch
 null_blk-fix-return-value-of-nullb_device_power_store.patch
 revert-ubifs-ubifs_symlink-fix-memleak-of-inode-i_link-in-error-path.patch
+perf-python-allow-checking-for-the-existence-of-warning-options-in-clang.patch