aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2020-02-05 19:48:27 +0000
committerKevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>2020-02-28 17:47:58 +0000
commit0b7ad6f7f061e0cd7a3f267b23d411cc2bd44e00 (patch)
tree723f6765c8162d6f33bdd5c99b7a3b4a3c546282 /target/linux
parent29c6ddd99eeb0aa9fa7f65fbe50c5b12ead67918 (diff)
downloadupstream-0b7ad6f7f061e0cd7a3f267b23d411cc2bd44e00.tar.gz
upstream-0b7ad6f7f061e0cd7a3f267b23d411cc2bd44e00.tar.bz2
upstream-0b7ad6f7f061e0cd7a3f267b23d411cc2bd44e00.zip
kernel: 5.4 fix build on darwin
Fix typedef clash on darwin. HOSTCC scripts/mod/file2alias.o scripts/mod/file2alias.c:47:3: error: typedef redefinition with different types ('struct uuid_t' vs '__darwin_uuid_t' (aka 'unsigned char [16]')) } uuid_t; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/_types/_uuid_t.h:31:25: note: previous definition is here typedef __darwin_uuid_t uuid_t; ^ scripts/mod/file2alias.c:1305:42: error: array initializer must be an initializer list or string literal DEF_FIELD(symval, tee_client_device_id, uuid); ^ 2 errors generated. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/hack-5.4/211-darwin-uuid-typedef-clash.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/generic/hack-5.4/211-darwin-uuid-typedef-clash.patch b/target/linux/generic/hack-5.4/211-darwin-uuid-typedef-clash.patch
new file mode 100644
index 0000000000..4a424c99c1
--- /dev/null
+++ b/target/linux/generic/hack-5.4/211-darwin-uuid-typedef-clash.patch
@@ -0,0 +1,27 @@
+From e44fc2af1ddc452b6659d08c16973d65c73b7d0a Mon Sep 17 00:00:00 2001
+From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
+Date: Wed, 5 Feb 2020 18:36:43 +0000
+Subject: [PATCH] file2alias: build on macos
+
+Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
+---
+ scripts/mod/file2alias.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
+index c91eba751804..e756fd80b721 100644
+--- a/scripts/mod/file2alias.c
++++ b/scripts/mod/file2alias.c
+@@ -38,6 +38,9 @@ typedef struct {
+ __u8 b[16];
+ } guid_t;
+
++#ifdef __APPLE__
++#define uuid_t compat_uuid_t
++#endif
+ /* backwards compatibility, don't use in new code */
+ typedef struct {
+ __u8 b[16];
+--
+2.21.1 (Apple Git-122.3)
+