diff options
author | Bogdan Oprescu <bogdan.oprescu@enea.com> | 2023-10-26 15:04:48 +0300 |
---|---|---|
committer | Bogdan Oprescu <bogdan.oprescu@enea.com> | 2023-10-26 15:28:16 +0300 |
commit | f877a1524b36f0e157f2208f58fc5ff04e3670f7 (patch) | |
tree | 0a4bc099641efaa616ff9a3b5ab2da96c1dc13bf /recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch | |
download | meta-fsl-ppc-f877a1524b36f0e157f2208f58fc5ff04e3670f7.tar.gz |
Adding the source code from EneaLinux 4.0_6daisy-enea-231026
Signed-off-by: Bogdan Oprescu <bogdan.oprescu@enea.com>
Diffstat (limited to 'recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch')
-rw-r--r-- | recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch b/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch new file mode 100644 index 0000000..a562273 --- /dev/null +++ b/recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 59e68351114a65a1f315ded1ee92f4370b8547e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ting Liu <b28495@freescale.com> | ||
3 | Date: Mon, 8 Jul 2013 17:03:43 +0800 | ||
4 | Subject: [PATCH] fix sizeof-pointer-memaccess error | ||
5 | |||
6 | build: src/livetree.c | ||
7 | .../hypervisor/git-r3/git/src/devtree.c: In function 'read_intmap': | ||
8 | .../hypervisor/git-r3/git/src/devtree.c:1513:25: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess] | ||
9 | memset(ent, 0, sizeof(ent)); | ||
10 | ^ | ||
11 | cc1: all warnings being treated as errors | ||
12 | build: src/ipi_doorbell.c | ||
13 | make[1]: *** [bin/devtree.o] Error 1 | ||
14 | make[1]: *** Waiting for unfinished jobs.... | ||
15 | make[1]: Leaving directory `.../hypervisor/git-r3/git/output' | ||
16 | make: *** [all] Error 2 | ||
17 | ERROR: oe_runmake failed | ||
18 | |||
19 | Signed-off-by: Ting Liu <b28495@freescale.com> | ||
20 | --- | ||
21 | src/devtree.c | 2 +- | ||
22 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
23 | |||
24 | diff --git a/src/devtree.c b/src/devtree.c | ||
25 | index f3710e4..3295e20 100644 | ||
26 | --- a/src/devtree.c | ||
27 | +++ b/src/devtree.c | ||
28 | @@ -1510,7 +1510,7 @@ static void read_intmap(dt_node_t *node) | ||
29 | } | ||
30 | |||
31 | if (imap + ent->parent_naddr + ent->parent_nint > imap_end) { | ||
32 | - memset(ent, 0, sizeof(ent)); | ||
33 | + memset(ent, 0, sizeof(intmap_entry_t)); | ||
34 | break; | ||
35 | } | ||
36 | |||
37 | -- | ||
38 | 1.7.5.4 | ||
39 | |||