Skip to content

Commit

Permalink
asm-generic: Use __BITS_PER_LONG in statfs.h
Browse files Browse the repository at this point in the history
<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>
Cc: <stable@vger.kernel.org>
  • Loading branch information
H. Peter Anvin committed Apr 30, 2012
1 parent f7f286a commit f5c2347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-generic/statfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5c2347

Please sign in to comment.