Skip to content

Commit

Permalink
asm-generic: fcntl: compat: Remove duplicate definitions
Browse files Browse the repository at this point in the history
Remove duplicate F_GETLK64,F_SETLK64,F_SETLKW64 definitions in
arch/*/include/asm/compat.h.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
guoren83 committed Dec 28, 2021
1 parent 90eaa76 commit 838b95d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 21 deletions.
4 changes: 0 additions & 4 deletions arch/arm64/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ struct compat_flock {
compat_pid_t l_pid;
};

#define F_GETLK64 12 /* using 'struct flock64' */
#define F_SETLK64 13
#define F_SETLKW64 14

struct compat_flock64 {
short l_type;
short l_whence;
Expand Down
4 changes: 0 additions & 4 deletions arch/powerpc/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ struct compat_flock {
compat_pid_t l_pid;
};

#define F_GETLK64 12 /* using 'struct flock64' */
#define F_SETLK64 13
#define F_SETLKW64 14

struct compat_flock64 {
short l_type;
short l_whence;
Expand Down
4 changes: 0 additions & 4 deletions arch/s390/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ struct compat_flock {
compat_pid_t l_pid;
};

#define F_GETLK64 12
#define F_SETLK64 13
#define F_SETLKW64 14

struct compat_flock64 {
short l_type;
short l_whence;
Expand Down
4 changes: 0 additions & 4 deletions arch/sparc/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ struct compat_flock {
short __unused;
};

#define F_GETLK64 12
#define F_SETLK64 13
#define F_SETLKW64 14

struct compat_flock64 {
short l_type;
short l_whence;
Expand Down
4 changes: 0 additions & 4 deletions arch/x86/include/asm/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ struct compat_flock {
compat_pid_t l_pid;
};

#define F_GETLK64 12 /* using 'struct flock64' */
#define F_SETLK64 13
#define F_SETLKW64 14

/*
* IA32 uses 4 byte alignment for 64 bit quantities,
* so we need to pack this structure.
Expand Down
2 changes: 1 addition & 1 deletion include/uapi/asm-generic/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
#define F_GETSIG 11 /* for sockets. */
#endif

#ifndef CONFIG_64BIT
#if !defined(CONFIG_64BIT) || defined(CONFIG_COMPAT)
#ifndef F_GETLK64
#define F_GETLK64 12 /* using 'struct flock64' */
#define F_SETLK64 13
Expand Down

0 comments on commit 838b95d

Please sign in to comment.