diff options
author | Zhenhua Luo <zhenhua.luo@nxp.com> | 2016-06-03 15:49:36 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-06-03 08:46:44 -0300 |
commit | a1ce123705d33e5deb5925399a0356a0598178a7 (patch) | |
tree | 473f11df9fa155e80ebbeb9f70445273dd41519b /recipes-extended | |
parent | 5187dd78045e88403485237bf12f4a6c64befbd0 (diff) | |
download | meta-freescale-a1ce123705d33e5deb5925399a0356a0598178a7.tar.gz |
skmm-ep: fix the build error caused by duplicated definition
Remove the duplicated definition to fix the following build errors:
| apps/skmm/lib/skmm_sram.c:42:18: error: redefinition of 'pa_to_va'
| apps/skmm/lib/skmm_sram.c:51:20: error: redefinition of 'va_to_pa'
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-extended')
-rw-r--r-- | recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch | 40 | ||||
-rw-r--r-- | recipes-extended/skmm-ep/skmm-ep_git.bb | 1 |
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch b/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch new file mode 100644 index 00000000..afa7e894 --- /dev/null +++ b/recipes-extended/skmm-ep/skmm-ep/skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | skmm-ep: remove duplicated definition | ||
2 | |||
3 | Remove the duplicated definition to fix the following build errors: | ||
4 | | apps/skmm/lib/skmm_sram.c:42:18: error: redefinition of 'pa_to_va' | ||
5 | | apps/skmm/lib/skmm_sram.c:51:20: error: redefinition of 'va_to_pa' | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com> | ||
10 | |||
11 | diff --git a/apps/skmm/lib/skmm_sram.c b/apps/skmm/lib/skmm_sram.c | ||
12 | index 2d84d93..6ab0421 100644 | ||
13 | --- a/apps/skmm/lib/skmm_sram.c | ||
14 | +++ b/apps/skmm/lib/skmm_sram.c | ||
15 | @@ -39,24 +39,6 @@ | ||
16 | static phys_addr_t sram_phys_addr; | ||
17 | static va_addr_t sram_virt_addr; | ||
18 | |||
19 | -inline va_addr_t pa_to_va(phys_addr_t addr) | ||
20 | -{ | ||
21 | - va_addr_t offset; | ||
22 | - | ||
23 | - offset = (va_addr_t)(addr - sram_phys_addr); | ||
24 | - | ||
25 | - return sram_virt_addr + offset; | ||
26 | -} | ||
27 | - | ||
28 | -inline phys_addr_t va_to_pa(va_addr_t addr) | ||
29 | -{ | ||
30 | - phys_addr_t offset; | ||
31 | - | ||
32 | - offset = (phys_addr_t)(addr - sram_virt_addr); | ||
33 | - | ||
34 | - return sram_phys_addr + offset; | ||
35 | -} | ||
36 | - | ||
37 | static int setup_law_for_plt_sram(phys_addr_t l2sram, u32 *size) | ||
38 | { | ||
39 | int fd; | ||
40 | -- | ||
diff --git a/recipes-extended/skmm-ep/skmm-ep_git.bb b/recipes-extended/skmm-ep/skmm-ep_git.bb index 13d4c08a..00466a6f 100644 --- a/recipes-extended/skmm-ep/skmm-ep_git.bb +++ b/recipes-extended/skmm-ep/skmm-ep_git.bb | |||
@@ -10,6 +10,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" | |||
10 | SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git;nobranch=1 \ | 10 | SRC_URI = "git://git.freescale.com/ppc/sdk/skmm-ep.git;nobranch=1 \ |
11 | file://add-two-missing-header-files.patch \ | 11 | file://add-two-missing-header-files.patch \ |
12 | file://skmm-ep-fix-the-inline-function-definition-with-gcc-.patch \ | 12 | file://skmm-ep-fix-the-inline-function-definition-with-gcc-.patch \ |
13 | file://skmm-ep-remove-duplicated-pa_to_va-and-va_to_pa.patch \ | ||
13 | " | 14 | " |
14 | SRCREV = "27156a6621c8f6d7f98210b1ca5cd97bde926875" | 15 | SRCREV = "27156a6621c8f6d7f98210b1ca5cd97bde926875" |
15 | 16 | ||