]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.14-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Dec 2022 12:20:52 +0000 (13:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Dec 2022 12:20:52 +0000 (13:20 +0100)
added patches:
perf-script-python-remove-explicit-shebang-from-tests-attr.c.patch

queue-4.14/perf-script-python-remove-explicit-shebang-from-tests-attr.c.patch [new file with mode: 0644]
queue-4.14/series

diff --git a/queue-4.14/perf-script-python-remove-explicit-shebang-from-tests-attr.c.patch b/queue-4.14/perf-script-python-remove-explicit-shebang-from-tests-attr.c.patch
new file mode 100644 (file)
index 0000000..1d8abae
--- /dev/null
@@ -0,0 +1,35 @@
+From d72eadbc1d2866fc047edd4535ffb0298fe240be Mon Sep 17 00:00:00 2001
+From: Tony Jones <tonyj@suse.de>
+Date: Wed, 23 Jan 2019 16:52:27 -0800
+Subject: perf script python: Remove explicit shebang from tests/attr.c
+
+From: Tony Jones <tonyj@suse.de>
+
+commit d72eadbc1d2866fc047edd4535ffb0298fe240be upstream.
+
+tests/attr.c invokes attr.py via an explicit invocation of Python
+($PYTHON) so there is therefore no need for an explicit shebang.
+
+Also most distros follow pep-0394 which recommends that /usr/bin/python
+refer only to v2 and so may not exist on the system (if PYTHON=python3).
+
+Signed-off-by: Tony Jones <tonyj@suse.de>
+Acked-by: Jiri Olsa <jolsa@kernel.org>
+Cc: Jonathan Corbet <corbet@lwn.net>
+Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
+Cc: Seeteena Thoufeek <s1seetee@linux.vnet.ibm.com>
+Link: http://lkml.kernel.org/r/20190124005229.16146-5-tonyj@suse.de
+Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ tools/perf/tests/attr.py |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/tools/perf/tests/attr.py
++++ b/tools/perf/tests/attr.py
+@@ -1,4 +1,3 @@
+-#! /usr/bin/env python
+ # SPDX-License-Identifier: GPL-2.0
+ import os
index 4c2cd8f65e929d1f4f9829d22cb304672a3f993e..c83ae0dff81d5e239624afbaebeefa6f28d51098 100644 (file)
@@ -8,3 +8,4 @@ asoc-ops-check-bounds-for-second-channel-in-snd_soc_.patch
 can-sja1000-fix-size-of-ocr_mode_mask-define.patch
 can-mcba_usb-fix-termination-command-argument.patch
 asoc-ops-correct-bounds-check-for-second-channel-on-sx-controls.patch
+perf-script-python-remove-explicit-shebang-from-tests-attr.c.patch