Re: [PATCH V12 02/20] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-06-12 Thread Guo Ren
On Wed, Jun 8, 2022 at 5:41 PM Eugene Syromiatnikov wrote: > > On Tue, Apr 05, 2022 at 03:12:56PM +0800, guo...@kernel.org wrote: > > From: Christoph Hellwig > > > > Note that before this change they were never visible to userspace due > > to the fact that CONFIG_64BIT is only set for kernel

Re: [PATCH V12 02/20] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-06-08 Thread Eugene Syromiatnikov
On Tue, Apr 05, 2022 at 03:12:56PM +0800, guo...@kernel.org wrote: > From: Christoph Hellwig > > Note that before this change they were never visible to userspace due > to the fact that CONFIG_64BIT is only set for kernel builds. > -#ifndef CONFIG_64BIT > +#if __BITS_PER_LONG == 32 ||

[PATCH V12 02/20] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2022-04-05 Thread guoren
From: Christoph Hellwig The F_GETLK64/F_SETLK64/F_SETLKW64 fcntl opcodes are only implemented for the 32-bit syscall APIs, but are also needed for compat handling on 64-bit kernels. Consolidate them in unistd.h instead of definining the internal compat definitions in compat.h, which is rather