Skip to contentSkip to conversation

asm-generic: Use __BITS_PER_LONG in statfs.h

PATCH In review H. Peter Anvin 2 participants 3 messages Apr 26, 2012 – Apr 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 asm-generic: Use __BITS_PER_LONG in statfs.h

From: "H. Peter Anvin" <[email protected]>

<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.

---
 include/asm-generic/statfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/statfs.h +1 -1
index 0fd28e0..c749af9 100644
@@ -15,7 +15,7 @@ typedef __kernel_fsid_t	fsid_t;
  * with a 10' pole.
  */
 #ifndef __statfs_word
-#if BITS_PER_LONG == 64
+#if __BITS_PER_LONG == 64
 #define __statfs_word long
 #else
 #define __statfs_word __u32
Signature · 1 line
1.7.6.5
#2 lore raw
In reply to H. Peter Anvin
Commit-ID:  f5c2347ee20a8d6964d6a6b1ad04f200f8d4dfa7
Gitweb:     http://git.kernel.org/tip/f5c2347ee20a8d6964d6a6b1ad04f200f8d4dfa7
Author:     H. Peter Anvin <[email protected]>
AuthorDate: Thu, 26 Apr 2012 11:45:16 -0700
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Mon, 30 Apr 2012 12:55:15 -0700

asm-generic: Use __BITS_PER_LONG in statfs.h

<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.

---
 include/asm-generic/statfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/statfs.h +1 -1
index 0fd28e0..c749af9 100644
@@ -15,7 +15,7 @@ typedef __kernel_fsid_t	fsid_t;
  * with a 10' pole.
  */
 #ifndef __statfs_word
-#if BITS_PER_LONG == 64
+#if __BITS_PER_LONG == 64
 #define __statfs_word long
 #else
 #define __statfs_word __u32