From c6b53a12cbf203b95006be8107bf135ec0828200 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 7 Oct 2022 08:47:09 +0200 Subject: [PATCH] 5.10-stable patches added patches: perf-tools-fixup-get_current_dir_name-compilation.patch --- ...xup-get_current_dir_name-compilation.patch | 38 +++++++++++++++++++ queue-5.10/series | 1 + 2 files changed, 39 insertions(+) create mode 100644 queue-5.10/perf-tools-fixup-get_current_dir_name-compilation.patch diff --git a/queue-5.10/perf-tools-fixup-get_current_dir_name-compilation.patch b/queue-5.10/perf-tools-fixup-get_current_dir_name-compilation.patch new file mode 100644 index 00000000000..ba684604902 --- /dev/null +++ b/queue-5.10/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.10/series b/queue-5.10/series index 096c3c91197..639d64bf76a 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -1,5 +1,6 @@ makefile.extrawarn-move-wcast-function-type-strict-to-w-1.patch docs-update-mediator-information-in-coc-docs.patch +perf-tools-fixup-get_current_dir_name-compilation.patch mm-gup-fix-the-fast-gup-race-against-thp-collapse.patch powerpc-64s-radix-don-t-need-to-broadcast-ipi-for-radix-pmd-collapse-flush.patch wait_on_bit-add-an-acquire-memory-barrier.patch -- 2.47.3