[PATCH] Consolidate asm-ppc*/fcntl.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Sep 2005 22:17:58 +0000 (15:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:37 +0000 (16:57 -0700)
These two files are basically identical, so make one just include the other
(protecting the 32-bit-only parts with __powerpc64__).  Also remove some
completely unused defines.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-ppc/fcntl.h
include/asm-ppc64/fcntl.h

index e8c2dc2..2f1cfb6 100644 (file)
 #define F_SETSIG       10      /*  for sockets. */
 #define F_GETSIG       11      /*  for sockets. */
 
+#ifndef __powerpc64__
 #define F_GETLK64      12      /*  using 'struct flock64' */
 #define F_SETLK64      13
 #define F_SETLKW64     14
+#endif
 
 /* for posix fcntl() and lockf() */
 #define F_RDLCK                0
 /* for leases */
 #define F_INPROGRESS   16
 
-#ifdef __KERNEL__
-#define F_POSIX                1
-#define F_FLOCK                2
-#define F_BROKEN       4       /* broken flock() emulation */
-#endif /* __KERNEL__ */
-
 struct flock {
        short l_type;
        short l_whence;
@@ -57,6 +53,7 @@ struct flock {
        pid_t l_pid;
 };
 
+#ifndef __powerpc64__
 struct flock64 {
        short  l_type;
        short  l_whence;
@@ -64,7 +61,8 @@ struct flock64 {
        loff_t l_len;
        pid_t  l_pid;
 };
+#endif
 
 #include <asm-generic/fcntl.h>
 
-#endif
+#endif /* _PPC_FCNTL_H */
Simple merge