Patchwork [0/1] perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for mips64

login
register
mail settings
Submitter wenzong.fan@windriver.com
Date Oct. 26, 2013, 7:53 a.m.
Message ID <cover.1382773654.git.wenzong.fan@windriver.com>
Download mbox
Permalink /patch/60523/
State New
Headers show

Pull-request

git://git.pokylinux.org/poky-contrib wenzong/perf

Comments

wenzong.fan@windriver.com - Oct. 26, 2013, 7:53 a.m.
From: Wenzong Fan <wenzong.fan@windriver.com>

As the same reason to powerpc64, mips64 also need the flag:

    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) {
    |        ^


The following changes since commit 754e8768b69acba89bd6c3ba5dbe55b9df4d8083:

  base.bbclass: fix nondeterministic PACKAGECONFIG processing order (2013-10-24 08:38:27 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib wenzong/perf
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/perf

Wenzong Fan (1):
  perf: flag __SANE_USERSPACE_TYPES__ to include int-ll64.h for mips64

 meta/recipes-kernel/perf/perf.bb |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)