aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-6.1/212-tools_portability.patch
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-22 18:07:13 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-22 22:28:16 +0200
commitaa56d00aa624ffdc3ed839300d1284f890d31bf7 (patch)
treed207f91c716db1bdcf10d5aa04e21122a44b979c /target/linux/generic/hack-6.1/212-tools_portability.patch
parentf79af593830ef766f54e7931a0fad28134ae44c9 (diff)
downloadupstream-aa56d00aa624ffdc3ed839300d1284f890d31bf7.tar.gz
upstream-aa56d00aa624ffdc3ed839300d1284f890d31bf7.tar.bz2
upstream-aa56d00aa624ffdc3ed839300d1284f890d31bf7.zip
generic: 6.1: refresh hack patches
Refresh hack patches with make target/linux/refresh. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'target/linux/generic/hack-6.1/212-tools_portability.patch')
-rw-r--r--target/linux/generic/hack-6.1/212-tools_portability.patch29
1 files changed, 1 insertions, 28 deletions
diff --git a/target/linux/generic/hack-6.1/212-tools_portability.patch b/target/linux/generic/hack-6.1/212-tools_portability.patch
index 0b908f7c7d1..4b1c6c49839 100644
--- a/target/linux/generic/hack-6.1/212-tools_portability.patch
+++ b/target/linux/generic/hack-6.1/212-tools_portability.patch
@@ -83,7 +83,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
struct kmem_cache;
--- a/tools/perf/pmu-events/jevents.py
+++ b/tools/perf/pmu-events/jevents.py
-@@ -684,6 +684,7 @@
+@@ -684,6 +684,7 @@ def main() -> None:
#include "util/header.h"
#include "util/pmu.h"
#include <string.h>
@@ -91,30 +91,3 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
#include <stddef.h>
struct compact_pmu_event {
-# --- a/tools/perf/pmu-events/jevents.c
-# +++ b/tools/perf/pmu-events/jevents.c
-# @@ -1,4 +1,6 @@
-# +#ifdef __linux__
-# #define _XOPEN_SOURCE 500 /* needed for nftw() */
-# +#endif
-# #define _GNU_SOURCE /* needed for asprintf() */
-
-# /* Parse event JSON files */
-# @@ -35,6 +37,7 @@
-# #include <stdlib.h>
-# #include <errno.h>
-# #include <string.h>
-# +#include <strings.h>
-# #include <ctype.h>
-# #include <unistd.h>
-# #include <stdarg.h>
-# --- a/tools/perf/pmu-events/json.c
-# +++ b/tools/perf/pmu-events/json.c
-# @@ -38,7 +38,6 @@
-# #include <unistd.h>
-# #include "jsmn.h"
-# #include "json.h"
-# -#include <linux/kernel.h>
-
-
-# static char *mapfile(const char *fn, size_t *size)