2021-04-12 21:34:45

by Christoph Hellwig

[permalink] [raw]
Subject: consolidate the flock uapi definitions

Hi all,

currently we deal with the slight differents in the various architecture
variants of the flock and flock64 stuctures in a very cruft way. This
series switches to just use small arch hooks and define the rest in
asm-generic and linux/compat.h instead.

Diffstat:
arch/arm64/include/asm/compat.h | 20 --------------------
arch/mips/include/asm/compat.h | 23 ++---------------------
arch/mips/include/uapi/asm/fcntl.h | 28 +++-------------------------
arch/parisc/include/asm/compat.h | 16 ----------------
arch/powerpc/include/asm/compat.h | 20 --------------------
arch/s390/include/asm/compat.h | 20 --------------------
arch/sparc/include/asm/compat.h | 22 +---------------------
arch/x86/include/asm/compat.h | 24 +++---------------------
include/linux/compat.h | 31 +++++++++++++++++++++++++++++++
include/uapi/asm-generic/fcntl.h | 21 +++++++--------------
tools/include/uapi/asm-generic/fcntl.h | 21 +++++++--------------
11 files changed, 54 insertions(+), 192 deletions(-)


2021-04-15 12:22:45

by Heiko Carstens

[permalink] [raw]
Subject: Re: consolidate the flock uapi definitions

On Mon, Apr 12, 2021 at 10:55:40AM +0200, Christoph Hellwig wrote:
> Hi all,
>
> currently we deal with the slight differents in the various architecture
> variants of the flock and flock64 stuctures in a very cruft way. This
> series switches to just use small arch hooks and define the rest in
> asm-generic and linux/compat.h instead.
>
> Diffstat:
> arch/arm64/include/asm/compat.h | 20 --------------------
> arch/mips/include/asm/compat.h | 23 ++---------------------
> arch/mips/include/uapi/asm/fcntl.h | 28 +++-------------------------
> arch/parisc/include/asm/compat.h | 16 ----------------
> arch/powerpc/include/asm/compat.h | 20 --------------------
> arch/s390/include/asm/compat.h | 20 --------------------
> arch/sparc/include/asm/compat.h | 22 +---------------------
> arch/x86/include/asm/compat.h | 24 +++---------------------
> include/linux/compat.h | 31 +++++++++++++++++++++++++++++++
> include/uapi/asm-generic/fcntl.h | 21 +++++++--------------
> tools/include/uapi/asm-generic/fcntl.h | 21 +++++++--------------
> 11 files changed, 54 insertions(+), 192 deletions(-)

for the s390 bits:
Acked-by: Heiko Carstens <[email protected]>