diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2012-04-26 14:45:16 -0400 |
---|---|---|
committer | Luis Henriques <luis.henriques@canonical.com> | 2012-05-25 12:24:43 -0400 |
commit | b139cb2bddad30955a4785ace1bdd177e9225029 (patch) | |
tree | a4c89f1c9d4e57cfc7740d5b071051acb32f8575 | |
parent | 9770fd11b879254b2e5b03dcc68a25ff81744319 (diff) |
asm-generic: Use __BITS_PER_LONG in statfs.h
BugLink: http://bugs.launchpad.net/bugs/1002880
commit f5c2347ee20a8d6964d6a6b1ad04f200f8d4dfa7 upstream.
<asm-generic/statfs.h> is exported to userspace, so using
BITS_PER_LONG is invalid. We need to use __BITS_PER_LONG instead.
This is kernel bugzilla 43165.
Reported-by: H.J. Lu <hjl.tools@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1335465916-16965-1-git-send-email-hpa@linux.intel.com
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-rw-r--r-- | include/asm-generic/statfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/statfs.h b/include/asm-generic/statfs.h index 0fd28e028de..c749af9c098 100644 --- a/include/asm-generic/statfs.h +++ b/include/asm-generic/statfs.h | |||
@@ -15,7 +15,7 @@ typedef __kernel_fsid_t fsid_t; | |||
15 | * with a 10' pole. | 15 | * with a 10' pole. |
16 | */ | 16 | */ |
17 | #ifndef __statfs_word | 17 | #ifndef __statfs_word |
18 | #if BITS_PER_LONG == 64 | 18 | #if __BITS_PER_LONG == 64 |
19 | #define __statfs_word long | 19 | #define __statfs_word long |
20 | #else | 20 | #else |
21 | #define __statfs_word __u32 | 21 | #define __statfs_word __u32 |