Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, x32: Use __kernel_long_t for __statfs_word

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>

authored by

H.J. Lu and committed by
H. Peter Anvin
79dbbc60 b70fedc1

+1 -1
+1 -1
include/uapi/asm-generic/statfs.h
··· 13 13 */ 14 14 #ifndef __statfs_word 15 15 #if __BITS_PER_LONG == 64 16 - #define __statfs_word long 16 + #define __statfs_word __kernel_long_t 17 17 #else 18 18 #define __statfs_word __u32 19 19 #endif