]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
posix_types: Make it possible to override __kernel_fsid_t
authorH. Peter Anvin <hpa@zytor.com>
Wed, 8 Feb 2012 05:08:46 +0000 (21:08 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 14 Feb 2012 20:01:27 +0000 (12:01 -0800)
__kernel_fsid_t has members of type "long" on at least one
architecture (MIPS32), so make it possible to override the definition.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/1328677745-20121-3-git-send-email-hpa@zytor.com
Cc: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/posix_types.h

index ac83f6beb538e97ef3a40f391355bbef38ac1c61..ac217600a9c74273f9b3e6a26227c7679550d839 100644 (file)
@@ -73,6 +73,12 @@ typedef long         __kernel_ptrdiff_t;
 #endif
 #endif
 
+#ifndef __kernel_fsid_t
+typedef struct {
+       int     val[2];
+} __kernel_fsid_t;
+#endif
+
 /*
  * anything below here should be completely generic
  */
@@ -86,10 +92,6 @@ typedef char *               __kernel_caddr_t;
 typedef unsigned short __kernel_uid16_t;
 typedef unsigned short __kernel_gid16_t;
 
-typedef struct {
-       int     val[2];
-} __kernel_fsid_t;
-
 #ifdef __KERNEL__
 
 #undef __FD_SET