alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
authorBen Hutchings <ben@decadent.org.uk>
Thu, 1 Oct 2015 00:35:55 +0000 (01:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Sep 2017 06:35:40 +0000 (08:35 +0200)
commitd4e7dfda905ec08abd303068f22afd714dbda8d6
tree0f164f5dea97f7963869669d1cbc9bf5dcb4740e
parent309e4dbfaf3da435644b6d9c96a43c50ce9598be
alpha: uapi: Add support for __SANE_USERSPACE_TYPES__

commit cec80d82142ab25c71eee24b529cfeaf17c43062 upstream.

This fixes compiler errors in perf such as:

tests/attr.c: In function 'store_event':
tests/attr.c:66:27: error: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type '__u64 {aka long unsigned int}' [-Werror=format=]
  snprintf(path, PATH_MAX, "%s/event-%d-%llu-%d", dir,
                           ^

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Tested-by: Michael Cree <mcree@orcon.net.nz>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/alpha/include/asm/types.h
arch/alpha/include/uapi/asm/types.h