mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
perf python: Remove some unused macros (_PyUnicode_FromString(arg), etc)
When python2 support was removed in e7e9943c87 ("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>
This commit is contained in:
committed by
Namhyung Kim
parent
1376c195e8
commit
1882625c91
@@ -22,13 +22,6 @@
|
||||
#include "util/sample.h"
|
||||
#include <internal/lib.h>
|
||||
|
||||
#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) \
|
||||
|
||||
Reference in New Issue
Block a user