summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing Liu <b28495@freescale.com>2013-10-11 16:11:44 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-10-18 15:49:57 +0100
commitdb1d37aaacf2f330ca23c2d61fc2d2c60603433a (patch)
tree7f253aa2a70c24231a00569aa66aee0e8517a65c
parentacd1d3079f1f3318bfd74fe93bb24a9e7d772035 (diff)
downloadpoky-db1d37aaacf2f330ca23c2d61fc2d2c60603433a.tar.gz
perf: 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. Perf want LL64, flag __SANE_USERSPACE_TYPES__ to get int-ll64.h. Fix the below issue: | tests/attr.c:71:4: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64' [-Werror=format=] | tests/attr.c:80:7: error: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type '__u64' [-Werror=format=] | attr->type, attr->config, fd) < 0) { | ^ (From OE-Core rev: e0b56f7ed84da4f71f448548e15d5a75e8eada6e) Signed-off-by: Ting Liu <b28495@freescale.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/perf/perf.bb6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 269069f3af..d27e535605 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -89,6 +89,12 @@ EXTRA_OEMAKE += "\
89 'infodir=${@oe.path.relative(prefix, infodir)}' \ 89 'infodir=${@oe.path.relative(prefix, infodir)}' \
90" 90"
91 91
92# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h
93# prevents 64-bit userland from seeing this definition, instead defaulting
94# to u64 == long in userspace. Define __SANE_USERSPACE_TYPES__ to get
95# int-ll64.h included.
96EXTRA_OEMAKE_append_powerpc64 = ' CFLAGS=-D__SANE_USERSPACE_TYPES__'
97
92PARALLEL_MAKE = "" 98PARALLEL_MAKE = ""
93 99
94do_compile() { 100do_compile() {