diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:41:56 +0100 |
commit | 177ef53047019757b70b5ca87171b2c88e26ba07 (patch) | |
tree | 70e3284e64755ae93c130e00f810ba5c501801b9 /recipes-virtualization/hypervisor/files | |
download | meta-fsl-ppc-enea_linux_3.tar.gz |
initial commit of Enea Linux 3.1enea_linux_3
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'recipes-virtualization/hypervisor/files')
-rw-r--r-- | recipes-virtualization/hypervisor/files/0001-fix-sizeof-pointer-memaccess-error.patch | 39 | ||||
-rw-r--r-- | recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules | 2 |
2 files changed, 41 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 | |||
diff --git a/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules b/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules new file mode 100644 index 0000000..5edfa11 --- /dev/null +++ b/recipes-virtualization/hypervisor/files/81-fsl-embedded-hv.rules | |||
@@ -0,0 +1,2 @@ | |||
1 | # Add rule to handle setting up device node for FSL HV mgmt driver | ||
2 | SUBSYSTEM=="misc", KERNEL=="fsl-hv", NAME="fsl-hv" | ||