diff options
Diffstat (limited to 'recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch')
-rw-r--r-- | recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch b/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch index 000eff41..94050a06 100644 --- a/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch +++ b/recipes-bsp/imx-atf/imx-atf/0001-imx-Fix-multiple-definition-of-ipc_handle.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 8c433aa6c6b2eaed4084233beea99ee3fb0b652f Mon Sep 17 00:00:00 2001 | 1 | From 2338329e35254c1b8a887409d930ca76d9612093 Mon Sep 17 00:00:00 2001 |
2 | From: Samuel Holland <samuel@sholland.org> | 2 | From: Samuel Holland <samuel@sholland.org> |
3 | Date: Wed, 4 Dec 2019 02:45:58 -0600 | 3 | Date: Wed, 4 Dec 2019 02:45:58 -0600 |
4 | Subject: [PATCH] imx: Fix multiple definition of ipc_handle | 4 | Subject: [PATCH] imx: Fix multiple definition of ipc_handle |
@@ -15,20 +15,19 @@ Change-Id: I6535954cc567d6efa06919069b91e3f50975b073 | |||
15 | 2 files changed, 3 insertions(+), 1 deletion(-) | 15 | 2 files changed, 3 insertions(+), 1 deletion(-) |
16 | 16 | ||
17 | diff --git a/plat/imx/common/include/sci/sci_ipc.h b/plat/imx/common/include/sci/sci_ipc.h | 17 | diff --git a/plat/imx/common/include/sci/sci_ipc.h b/plat/imx/common/include/sci/sci_ipc.h |
18 | index 7cb109206..d2c3bba1c 100644 | 18 | index cc8e47b28..1e3e53247 100755 |
19 | --- a/plat/imx/common/include/sci/sci_ipc.h | 19 | --- a/plat/imx/common/include/sci/sci_ipc.h |
20 | +++ b/plat/imx/common/include/sci/sci_ipc.h | 20 | +++ b/plat/imx/common/include/sci/sci_ipc.h |
21 | @@ -63,7 +63,7 @@ void sc_ipc_read(sc_ipc_t ipc, void *data); | 21 | @@ -63,6 +63,6 @@ void sc_ipc_read(sc_ipc_t ipc, void *data); |
22 | */ | 22 | */ |
23 | void sc_ipc_write(sc_ipc_t ipc, const void *data); | 23 | void sc_ipc_write(sc_ipc_t ipc, const void *data); |
24 | 24 | ||
25 | -sc_ipc_t ipc_handle; | 25 | -sc_ipc_t ipc_handle; |
26 | +extern sc_ipc_t ipc_handle; | 26 | +extern sc_ipc_t ipc_handle; |
27 | 27 | ||
28 | #endif /* SC_IPC_H */ | 28 | #endif /* SCI_IPC_H */ |
29 | |||
30 | diff --git a/plat/imx/common/sci/ipc.c b/plat/imx/common/sci/ipc.c | 29 | diff --git a/plat/imx/common/sci/ipc.c b/plat/imx/common/sci/ipc.c |
31 | index 68b0b8ef0..3169b7e0b 100644 | 30 | index f329482fe..bf35a5ead 100755 |
32 | --- a/plat/imx/common/sci/ipc.c | 31 | --- a/plat/imx/common/sci/ipc.c |
33 | +++ b/plat/imx/common/sci/ipc.c | 32 | +++ b/plat/imx/common/sci/ipc.c |
34 | @@ -11,6 +11,8 @@ | 33 | @@ -11,6 +11,8 @@ |
@@ -37,7 +36,7 @@ index 68b0b8ef0..3169b7e0b 100644 | |||
37 | 36 | ||
38 | +sc_ipc_t ipc_handle; | 37 | +sc_ipc_t ipc_handle; |
39 | + | 38 | + |
40 | #include <bakery_lock.h> | 39 | #include <lib/bakery_lock.h> |
41 | DEFINE_BAKERY_LOCK(sc_ipc_bakery_lock); | 40 | DEFINE_BAKERY_LOCK(sc_ipc_bakery_lock); |
42 | #define sc_ipc_lock_init() bakery_lock_init(&sc_ipc_bakery_lock) | 41 | #define sc_ipc_lock_init() bakery_lock_init(&sc_ipc_bakery_lock) |
43 | -- | 42 | -- |