On Mon, Oct 7, 2024 at 6:28 PM <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > > > This is a note to let you know that I've just added the patch titled > > perf python: Disable -Wno-cast-function-type-mismatch if present on clang > > to the 6.11-stable tree which can be found at: > http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary > > The filename of the patch is: > perf-python-disable-wno-cast-function-type-mismatch-if-present-on-clang.patch > and it can be found in the queue-6.11 subdirectory. > > If you, or anyone else, feels it should not be added to the stable tree, > please let <stable@xxxxxxxxxxxxxxx> know about it. > > > From 00dc514612fe98cfa117193b9df28f15e7c9db9c Mon Sep 17 00:00:00 2001 > From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > Date: Thu, 22 Aug 2024 14:13:49 -0300 > Subject: perf python: Disable -Wno-cast-function-type-mismatch if present on clang > > From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > > commit 00dc514612fe98cfa117193b9df28f15e7c9db9c upstream. > > The -Wcast-function-type-mismatch option was introduced in clang 19 and > its enabled by default, since we use -Werror, and python bindings do > casts that are valid but trips this warning, disable it if present. > > Closes: https://lore.kernel.org/all/CA+icZUXoJ6BS3GMhJHV3aZWyb5Cz2haFneX0C5pUMUUhG-UVKQ@xxxxxxxxxxxxxx > Reported-by: Sedat Dilek <sedat.dilek@xxxxxxxxx> > Tested-by: Sedat Dilek <sedat.dilek@xxxxxxxxx> > Cc: Ian Rogers <irogers@xxxxxxxxxx> > Cc: Ingo Molnar <mingo@xxxxxxxxxx> > Cc: Namhyung Kim <namhyung@xxxxxxxxxx> > Cc: Nathan Chancellor <nathan@xxxxxxxxxx> > Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx # To allow building with the upcoming clang 19 > Link: https://lore.kernel.org/lkml/CA+icZUVtHn8X1Tb_Y__c-WswsO0K8U9uy3r2MzKXwTA5THtL7w@xxxxxxxxxxxxxx > Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > --- > tools/perf/util/setup.py | 2 ++ > 1 file changed, 2 insertions(+) > > --- a/tools/perf/util/setup.py > +++ b/tools/perf/util/setup.py > @@ -63,6 +63,8 @@ cflags = getenv('CFLAGS', '').split() > cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter', '-Wno-redundant-decls' ] > if cc_is_clang: > cflags += ["-Wno-unused-command-line-argument" ] > + if clang_has_option("-Wno-cast-function-type-mismatch"): > + cflags += ["-Wno-cast-function-type-mismatch" ] > else: > cflags += ['-Wno-cast-function-type' ] > > > > Patches currently in stable-queue which might be from acme@xxxxxxxxxx are > > queue-6.11/perf-hist-update-hist-symbol-when-updating-maps.patch > queue-6.11/perf-callchain-fix-stitch-lbr-memory-leaks.patch > queue-6.11/perf-python-disable-wno-cast-function-type-mismatch-if-present-on-clang.patch You need both patches: upstream 00dc514612fe98cfa117193b9df28f15e7c9db9c perf python: Disable -Wno-cast-function-type-mismatch if present on clang ^^ You have only this one - sets only the warning flag upstream b81162302001f41157f6e93654aaccc30e817e2a perf python: Allow checking for the existence of warning ^^ Add this please to all stable trees affected, Thanks. -sed@- [1] https://lore.kernel.org/all/CA+icZUUfk6bMCo+JXUy=5g-4qt20rDNR3b=HC9Ln_47UozXEDQ@xxxxxxxxxxxxxx/