]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2022 06:47:09 +0000 (08:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2022 06:47:09 +0000 (08:47 +0200)
added patches:
perf-tools-fixup-get_current_dir_name-compilation.patch

queue-5.10/perf-tools-fixup-get_current_dir_name-compilation.patch [new file with mode: 0644]
queue-5.10/series

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 (file)
index 0000000..ba68460
--- /dev/null
@@ -0,0 +1,38 @@
+From 128dbd78bd673f9edbc4413072b23efb6657feb0 Mon Sep 17 00:00:00 2001
+From: Alexey Dobriyan <adobriyan@gmail.com>
+Date: Tue, 17 Aug 2021 14:58:33 +0300
+Subject: perf tools: Fixup get_current_dir_name() compilation
+
+From: Alexey Dobriyan <adobriyan@gmail.com>
+
+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) <adobriyan@gmail.com>
+Acked-by: Namhyung Kim <namhyung@kernel.org>
+Link: http://lore.kernel.org/lkml/YRukaQbrgDWhiwGr@localhost.localdomain
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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 <limits.h>
++#include <string.h>
+ #include <unistd.h>
+-#include <stdlib.h>
+ /* Android's 'bionic' library, for one, doesn't have this */
index 096c3c911976810b011ba118aa9fc2d9c189f97f..639d64bf76a59e03c1acca5a2c03dbfcb5a8b10f 100644 (file)
@@ -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