[oe-commits] Chunrong Guo : mdadm: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
git at git.openembedded.org
git at git.openembedded.org
Thu Nov 21 15:30:25 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: d3caab6eb03264b4f4d744f914598022299011ba
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d3caab6eb03264b4f4d744f914598022299011ba
Author: Chunrong Guo <B40290 at freescale.com>
Date: Tue Nov 12 11:40:49 2013 +0800
mdadm: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
*PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
prevents 64-bit userland from seeing this definition, instead defaulting
to u64 == long in userspace.
*fix the below error
|super-ddf.c:4542:5: error: format '%llu' expects argument of type 'long long unsigned int',
|but argument 5 has type '__u64' [-Werror=format=]
|dprintf("BVD %u has %08x at %llu\n", 0,
Signed-off-by: Chunrong Guo <B40290 at freescale.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/mdadm/mdadm_3.3.bb | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-extended/mdadm/mdadm_3.3.bb b/meta/recipes-extended/mdadm/mdadm_3.3.bb
index 586e04a..41816bc 100644
--- a/meta/recipes-extended/mdadm/mdadm_3.3.bb
+++ b/meta/recipes-extended/mdadm/mdadm_3.3.bb
@@ -26,6 +26,11 @@ do_configure_prepend () {
}
EXTRA_OEMAKE = "CHECK_RUN_DIR=0"
+# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
+# prevents 64-bit userland from seeing this definition, instead defaulting
+# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get
+# int-ll64.h included
+EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
do_compile() {
oe_runmake
More information about the Openembedded-commits
mailing list