]> code.ossystems Code Review - openembedded-core.git/commit
perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for powerpc64
authorTing Liu <b28495@freescale.com>
Fri, 11 Oct 2013 08:11:44 +0000 (16:11 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Wed, 11 Dec 2013 02:12:18 +0000 (21:12 -0500)
commit7d55375ddc1a928e77d5687a8e7b36eecb91c594
tree26c25638c50e10c657ba51834c03e6c58802c243
parente54864e6db9fddb8ec98e323fe6da88e02ff070a
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 master 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>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-kernel/perf/perf.bb