]> www.infradead.org Git - users/dwmw2/linux.git/commit
uapi: simplify __ARCH_FLOCK{,64}_PAD a little
authorChristoph Hellwig <hch@lst.de>
Tue, 5 Apr 2022 07:12:55 +0000 (15:12 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 26 Apr 2022 20:35:14 +0000 (13:35 -0700)
commit9f79b8b7233942e9c4b071f1f331f17e7282bbfa
treed0b4d6cc5aa25bfa8517c3277c1633300ecc8665
parent3123109284176b1532874591f7c81f3837bbdc17
uapi: simplify __ARCH_FLOCK{,64}_PAD a little

Don't bother to define the symbols empty, just don't use them.
That makes the intent a little more clear.

Remove the unused HAVE_ARCH_STRUCT_FLOCK64 define and merge the
32-bit mips struct flock into the generic one.

Add a new __ARCH_FLOCK_EXTRA_SYSID macro following the style of
__ARCH_FLOCK_PAD to avoid having a separate definition just for
one architecture.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220405071314.3225832-2-guoren@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/mips/include/uapi/asm/fcntl.h
include/uapi/asm-generic/fcntl.h
tools/include/uapi/asm-generic/fcntl.h