From: Arnaldo Carvalho de Melo Date: Wed, 12 Mar 2025 20:31:37 +0000 (-0300) Subject: perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc) X-Git-Tag: block-6.15-20250403~13^2~42 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1882625c9113a3cf775dd46695466c80b922991d;p=linux-block.git perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc) When python2 support was removed in e7e9943c87d857da ("perf python: Remove python 2 scripting support"), all use of the _PyUnicode_FromString(arg), _PyUnicode_FromFormat(...), and _PyLong_FromLong(arg) macros was removed as well, so remove it. Signed-off-by: Arnaldo Carvalho de Melo Reviewed-by: Ian Rogers Link: https://lore.kernel.org/r/20250312203141.285263-3-acme@kernel.org Signed-off-by: Namhyung Kim --- diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c index 6c5bb5e88939..f9491b669976 100644 --- a/tools/perf/util/python.c +++ b/tools/perf/util/python.c @@ -22,13 +22,6 @@ #include "util/sample.h" #include -#define _PyUnicode_FromString(arg) \ - PyUnicode_FromString(arg) -#define _PyUnicode_FromFormat(...) \ - PyUnicode_FromFormat(__VA_ARGS__) -#define _PyLong_FromLong(arg) \ - PyLong_FromLong(arg) - PyMODINIT_FUNC PyInit_perf(void); #define member_def(type, member, ptype, help) \