[linux-tools] 01/01: [alpha] uapi: Add support for __SANE_USERSPACE_TYPES__(fixes FTBFS)

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Thu Oct 1 20:07:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch sid
in repository linux-tools.

commit 19679ebe60858e5d3d66697cdb4d286914a9835e
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Thu Oct 1 01:37:33 2015 +0100

    [alpha] uapi: Add support for __SANE_USERSPACE_TYPES__(fixes FTBFS)
---
 debian/changelog                                   |  1 +
 ...-add-support-for-__sane_userspace_types__.patch | 56 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 3 files changed, 58 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e775bd1..1cd2ccd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ linux-tools (4.2-2) UNRELEASED; urgency=medium
 
   * [x32] Don't attempt to build linux-perf (fixes FTBFS)
   * [x32] Build hyperv-daemons package
+  * [alpha] uapi: Add support for __SANE_USERSPACE_TYPES__(fixes FTBFS)
 
  -- Ben Hutchings <ben at decadent.org.uk>  Tue, 29 Sep 2015 04:50:43 +0100
 
diff --git a/debian/patches/alpha-uapi-add-support-for-__sane_userspace_types__.patch b/debian/patches/alpha-uapi-add-support-for-__sane_userspace_types__.patch
new file mode 100644
index 0000000..3b3e381
--- /dev/null
+++ b/debian/patches/alpha-uapi-add-support-for-__sane_userspace_types__.patch
@@ -0,0 +1,56 @@
+From: Ben Hutchings <ben at decadent.org.uk>
+Date: Tue, 29 Sep 2015 02:55:06 +0100
+Subject: [PATCH] alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
+Forwarded: http://mid.gmane.org/1443659755.2730.14.camel@decadent.org.uk
+
+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 at decadent.org.uk>
+Tested-by: Michael Cree <mcree at orcon.net.nz>
+Cc: stable at vger.kernel.org
+---
+ arch/alpha/include/asm/types.h      |  2 +-
+ arch/alpha/include/uapi/asm/types.h | 12 +++++++++++-
+ 2 files changed, 12 insertions(+), 2 deletions(-)
+
+diff --git a/arch/alpha/include/asm/types.h b/arch/alpha/include/asm/types.h
+index 4cb4b6d..0bc66e1 100644
+--- a/arch/alpha/include/asm/types.h
++++ b/arch/alpha/include/asm/types.h
+@@ -1,6 +1,6 @@
+ #ifndef _ALPHA_TYPES_H
+ #define _ALPHA_TYPES_H
+ 
+-#include <asm-generic/int-ll64.h>
++#include <uapi/asm/types.h>
+ 
+ #endif /* _ALPHA_TYPES_H */
+diff --git a/arch/alpha/include/uapi/asm/types.h b/arch/alpha/include/uapi/asm/types.h
+index 9fd3cd4..8d1024d 100644
+--- a/arch/alpha/include/uapi/asm/types.h
++++ b/arch/alpha/include/uapi/asm/types.h
+@@ -9,8 +9,18 @@
+  * need to be careful to avoid a name clashes.
+  */
+ 
+-#ifndef __KERNEL__
++/*
++ * This is here because we used to use l64 for alpha
++ * and we don't want to impact user mode with our change to ll64
++ * in the kernel.
++ *
++ * However, some user programs are fine with this.  They can
++ * flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here.
++ */
++#if !defined(__SANE_USERSPACE_TYPES__) && !defined(__KERNEL__)
+ #include <asm-generic/int-l64.h>
++#else
++#include <asm-generic/int-ll64.h>
+ #endif
+ 
+ #endif /* _UAPI_ALPHA_TYPES_H */
diff --git a/debian/patches/series b/debian/patches/series
index 97b2e64..9715fd9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,3 +15,4 @@ tools-lib-traceevent-use-ldflags.patch
 tools-lib-lockdep-use-ldflags.patch
 tools-hv-fix-fortify-format-warning.patch
 revert-perf-build-fix-libunwind-feature-detection-on.patch
+alpha-uapi-add-support-for-__sane_userspace_types__.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git



More information about the Kernel-svn-changes mailing list