mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2/2] Use __kernel_long_t for __statfs_word
@ 2013-12-17  0:19 H.J. Lu
  2013-12-21  0:09 ` [tip:x86/x32] x86, x32: " tip-bot for H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2013-12-17  0:19 UTC (permalink / raw)
  To: H. Peter Anvin, LKML

[-- Attachment #1: Type: text/plain, Size: 191 bytes --]

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.


-- 
H.J.

[-- Attachment #2: 0002-Use-__kernel_long_t-for-__statfs_word.patch --]
[-- Type: text/plain, Size: 926 bytes --]

From f4b600158d9365fc2aad11e144699e7ffaefaf3b Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Mon, 16 Dec 2013 16:12:57 -0800
Subject: [PATCH 2/2] 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.

H.J.
---
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
---
 include/uapi/asm-generic/statfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/asm-generic/statfs.h b/include/uapi/asm-generic/statfs.h
index 0999647..cb89cc7 100644
--- a/include/uapi/asm-generic/statfs.h
+++ b/include/uapi/asm-generic/statfs.h
@@ -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
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-21  0:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-17  0:19 [PATCH 2/2] Use __kernel_long_t for __statfs_word H.J. Lu
2013-12-21  0:09 ` [tip:x86/x32] x86, x32: " tip-bot for H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®