Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <acme@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250312203141.285263-3-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Arnaldo Carvalho de Melo and committed by
Namhyung Kim
1882625c 1376c195

-7
-7
tools/perf/util/python.c
··· 22 22 #include "util/sample.h" 23 23 #include <internal/lib.h> 24 24 25 - #define _PyUnicode_FromString(arg) \ 26 - PyUnicode_FromString(arg) 27 - #define _PyUnicode_FromFormat(...) \ 28 - PyUnicode_FromFormat(__VA_ARGS__) 29 - #define _PyLong_FromLong(arg) \ 30 - PyLong_FromLong(arg) 31 - 32 25 PyMODINIT_FUNC PyInit_perf(void); 33 26 34 27 #define member_def(type, member, ptype, help) \