aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/hack-5.4/212-byteshift_portability.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-05-12 15:23:01 +0200
committerFelix Fietkau <nbd@nbd.name>2020-06-04 21:52:57 +0200
commit2dd26fda16a4574c91d02f4b1ccb2ce121e764c8 (patch)
tree7f5d777032c81d484db0431cb7da9f6738249d5d /target/linux/generic/hack-5.4/212-byteshift_portability.patch
parent5aa2ddd0d6b9759c62bbb7bb11b72a7f4269c16b (diff)
downloadupstream-2dd26fda16a4574c91d02f4b1ccb2ce121e764c8.tar.gz
upstream-2dd26fda16a4574c91d02f4b1ccb2ce121e764c8.tar.bz2
upstream-2dd26fda16a4574c91d02f4b1ccb2ce121e764c8.zip
kernel: fix portability issue with perf on linux 5.4
Remove dependencies on core kernel headers in host tools used to build perf, which break on any non-linux system Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/hack-5.4/212-byteshift_portability.patch')
-rw-r--r--target/linux/generic/hack-5.4/212-byteshift_portability.patch65
1 files changed, 0 insertions, 65 deletions
diff --git a/target/linux/generic/hack-5.4/212-byteshift_portability.patch b/target/linux/generic/hack-5.4/212-byteshift_portability.patch
deleted file mode 100644
index 1a5ac87988..0000000000
--- a/target/linux/generic/hack-5.4/212-byteshift_portability.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From 48232d3d931c95953ce2ddfe7da7bb164aef6a73 Mon Sep 17 00:00:00 2001
-From: Felix Fietkau <nbd@nbd.name>
-Date: Fri, 7 Jul 2017 17:03:16 +0200
-Subject: linux-3.6: fix portability of some includes files in tools/ used on the host
-
-lede-commit: 6040b1d29ab1f047c5e49b748abcb6a3196add28
-Signed-off-by: Felix Fietkau <nbd@nbd.name>
----
- tools/include/tools/be_byteshift.h | 4 ++++
- tools/include/tools/le_byteshift.h | 4 ++++
- tools/include/tools/linux_types.h | 22 ++++++++++++++++++++++
- 3 files changed, 30 insertions(+)
- create mode 100644 tools/include/tools/linux_types.h
-
---- a/tools/include/tools/be_byteshift.h
-+++ b/tools/include/tools/be_byteshift.h
-@@ -2,6 +2,10 @@
- #ifndef _TOOLS_BE_BYTESHIFT_H
- #define _TOOLS_BE_BYTESHIFT_H
-
-+#ifndef __linux__
-+#include "linux_types.h"
-+#endif
-+
- #include <stdint.h>
-
- static inline uint16_t __get_unaligned_be16(const uint8_t *p)
---- a/tools/include/tools/le_byteshift.h
-+++ b/tools/include/tools/le_byteshift.h
-@@ -2,6 +2,10 @@
- #ifndef _TOOLS_LE_BYTESHIFT_H
- #define _TOOLS_LE_BYTESHIFT_H
-
-+#ifndef __linux__
-+#include "linux_types.h"
-+#endif
-+
- #include <stdint.h>
-
- static inline uint16_t __get_unaligned_le16(const uint8_t *p)
---- /dev/null
-+++ b/tools/include/tools/linux_types.h
-@@ -0,0 +1,22 @@
-+#ifndef __LINUX_TYPES_H
-+#define __LINUX_TYPES_H
-+
-+#include <stdint.h>
-+
-+typedef uint8_t __u8;
-+typedef uint8_t __be8;
-+typedef uint8_t __le8;
-+
-+typedef uint16_t __u16;
-+typedef uint16_t __be16;
-+typedef uint16_t __le16;
-+
-+typedef uint32_t __u32;
-+typedef uint32_t __be32;
-+typedef uint32_t __le32;
-+
-+typedef uint64_t __u64;
-+typedef uint64_t __be64;
-+typedef uint64_t __le64;
-+
-+#endif