From f877a1524b36f0e157f2208f58fc5ff04e3670f7 Mon Sep 17 00:00:00 2001 From: Bogdan Oprescu Date: Thu, 26 Oct 2023 15:04:48 +0300 Subject: Adding the source code from EneaLinux 4.0_6 Signed-off-by: Bogdan Oprescu --- .../0001-fix-sizeof-pointer-memaccess-error.patch | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch (limited to 'recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch') 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 @@ +From 59e68351114a65a1f315ded1ee92f4370b8547e2 Mon Sep 17 00:00:00 2001 +From: Ting Liu +Date: Mon, 8 Jul 2013 17:03:43 +0800 +Subject: [PATCH] fix sizeof-pointer-memaccess error + +build: src/livetree.c +.../hypervisor/git-r3/git/src/devtree.c: In function 'read_intmap': +.../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] + memset(ent, 0, sizeof(ent)); + ^ +cc1: all warnings being treated as errors +build: src/ipi_doorbell.c +make[1]: *** [bin/devtree.o] Error 1 +make[1]: *** Waiting for unfinished jobs.... +make[1]: Leaving directory `.../hypervisor/git-r3/git/output' +make: *** [all] Error 2 +ERROR: oe_runmake failed + +Signed-off-by: Ting Liu +--- + src/devtree.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/devtree.c b/src/devtree.c +index f3710e4..3295e20 100644 +--- a/src/devtree.c ++++ b/src/devtree.c +@@ -1510,7 +1510,7 @@ static void read_intmap(dt_node_t *node) + } + + if (imap + ent->parent_naddr + ent->parent_nint > imap_end) { +- memset(ent, 0, sizeof(ent)); ++ memset(ent, 0, sizeof(intmap_entry_t)); + break; + } + +-- +1.7.5.4 + -- cgit v1.2.3-54-g00ecf