From: Greg Kroah-Hartman Date: Fri, 7 Oct 2022 06:46:52 +0000 (+0200) Subject: 5.4-stable patches X-Git-Tag: v5.4.217~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5eea6aef07f4b0f99ed8d68a565aaff349a94ad0;p=thirdparty%2Fkernel%2Fstable-queue.git 5.4-stable patches added patches: perf-tools-fixup-get_current_dir_name-compilation.patch --- diff --git a/queue-5.4/perf-tools-fixup-get_current_dir_name-compilation.patch b/queue-5.4/perf-tools-fixup-get_current_dir_name-compilation.patch new file mode 100644 index 00000000000..ba684604902 --- /dev/null +++ b/queue-5.4/perf-tools-fixup-get_current_dir_name-compilation.patch @@ -0,0 +1,38 @@ +From 128dbd78bd673f9edbc4413072b23efb6657feb0 Mon Sep 17 00:00:00 2001 +From: Alexey Dobriyan +Date: Tue, 17 Aug 2021 14:58:33 +0300 +Subject: perf tools: Fixup get_current_dir_name() compilation + +From: Alexey Dobriyan + +commit 128dbd78bd673f9edbc4413072b23efb6657feb0 upstream. + +strdup() prototype doesn't live in stdlib.h . + +Add limits.h for PATH_MAX definition as well. + +This fixes the build on Android. + +Signed-off-by: Alexey Dobriyan (SK hynix) +Acked-by: Namhyung Kim +Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain +Signed-off-by: Arnaldo Carvalho de Melo +Signed-off-by: Florian Fainelli +Signed-off-by: Greg Kroah-Hartman +--- + tools/perf/util/get_current_dir_name.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +--- a/tools/perf/util/get_current_dir_name.c ++++ b/tools/perf/util/get_current_dir_name.c +@@ -3,8 +3,9 @@ + // + #ifndef HAVE_GET_CURRENT_DIR_NAME + #include "get_current_dir_name.h" ++#include ++#include + #include +-#include + + /* Android's 'bionic' library, for one, doesn't have this */ + diff --git a/queue-5.4/series b/queue-5.4/series index 61a9bce98e5..c26c7e34435 100644 --- a/queue-5.4/series +++ b/queue-5.4/series @@ -1,3 +1,4 @@ mm-pagewalk-fix-race-between-unmap-and-page-walker.patch wait_on_bit-add-an-acquire-memory-barrier.patch provide-arch_test_bit_acquire-for-architectures-that-define-test_bit.patch +perf-tools-fixup-get_current_dir_name-compilation.patch