From: Greg Kroah-Hartman Date: Thu, 9 Jul 2026 14:23:37 +0000 (+0200) Subject: 6.6-stable patches X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=75c489a8960f83f3ea1b86692bfa15a89ed12cb4;p=thirdparty%2Fkernel%2Fstable-queue.git 6.6-stable patches added patches: perf-trace-beauty-fcntl-fix-build-with-older-kernel-headers.patch --- diff --git a/queue-6.6/perf-trace-beauty-fcntl-fix-build-with-older-kernel-headers.patch b/queue-6.6/perf-trace-beauty-fcntl-fix-build-with-older-kernel-headers.patch new file mode 100644 index 0000000000..b16d05ce5c --- /dev/null +++ b/queue-6.6/perf-trace-beauty-fcntl-fix-build-with-older-kernel-headers.patch @@ -0,0 +1,60 @@ +From 7ee7f48413c42b90230de4a8e40898b757bc8e82 Mon Sep 17 00:00:00 2001 +From: Florian Fainelli +Date: Wed, 13 May 2026 12:23:46 -0700 +Subject: perf trace beauty fcntl: Fix build with older kernel headers + +From: Florian Fainelli + +commit 7ee7f48413c42b90230de4a8e40898b757bc8e82 upstream. + +Toolchains with older kernel headers that do not include upstream commit +c75b1d9421f80f41 ("fs: add fcntl() interface for setting/getting write +life time hints") will now fail to build perf due to missing definitions +for F_GET_RW_HINT/F_SET_RW_HINT/F_GET_FILE_RW_HINT/F_SET_FILE_RW_HINT. + +Provide a fallback definition for these when they are not already +defined. + +Fixes: 9c47f66748381ecb ("perf trace beauty fcntl: Basic 'arg' beautifier") +Reviewed-by: Ian Rogers +Signed-off-by: Florian Fainelli +Cc: Adrian Hunter +Cc: Alexander Shishkin +Cc: Ingo Molnar +Cc: James Clark +Cc: Jiri Olsa +Cc: Mark Rutland +Cc: Markus Mayer +Cc: Namhyung Kim +Cc: Peter Zijlstra +Signed-off-by: Arnaldo Carvalho de Melo +Signed-off-by: Greg Kroah-Hartman +--- + tools/perf/trace/beauty/fcntl.c | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +--- a/tools/perf/trace/beauty/fcntl.c ++++ b/tools/perf/trace/beauty/fcntl.c +@@ -9,6 +9,22 @@ + #include + #include + ++#ifndef F_GET_RW_HINT ++#define F_GET_RW_HINT (F_LINUX_SPECIFIC_BASE + 11) ++#endif ++ ++#ifndef F_SET_RW_HINT ++#define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12) ++#endif ++ ++#ifndef F_GET_FILE_RW_HINT ++#define F_GET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 13) ++#endif ++ ++#ifndef F_SET_FILE_RW_HINT ++#define F_SET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 14) ++#endif ++ + static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size, bool show_prefix) + { + return val ? scnprintf(bf, size, "%s", "0") : diff --git a/queue-6.6/series b/queue-6.6/series index e25bd47091..ecaba6b88e 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -57,3 +57,4 @@ xfs-dump-the-recovered-xattri-log-item-if-corruption.patch xfs-use-xfs_defer_finish_one-to-finish-recovered-wor.patch xfs-move-iop_recover-to-xfs_defer_op_type.patch bluetooth-iso-copy-base-if-service-data-matches-eir_.patch +perf-trace-beauty-fcntl-fix-build-with-older-kernel-headers.patch