Skip to content

Commit

Permalink
x86, x32: Use __kernel_long_t for __statfs_word
Browse files Browse the repository at this point in the history
x32 statfs system call is the same as x86-64 statfs system call, which
uses 64-bit integer for __statfs_word.  This patch defines __statfs_word
as __kernel_long_t instead of long.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Link: http://lkml.kernel.org/r/CAMe9rOrcppHvC5g8U9n7D%2BpxVGdu1G598pge3Erfw7Pr-iEpAQ@mail.gmail.com
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
H.J. Lu authored and H. Peter Anvin committed Dec 21, 2013
1 parent b70fedc commit 79dbbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/uapi/asm-generic/statfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
#ifndef __statfs_word
#if __BITS_PER_LONG == 64
#define __statfs_word long
#define __statfs_word __kernel_long_t
#else
#define __statfs_word __u32
#endif
Expand Down

0 comments on commit 79dbbc6

Please sign in to comment.