]> git.baikalelectronics.ru Git - kernel.git/commit
syscalls: Declare sys_*stat64 prototypes if __ARCH_WANT_(COMPAT_)STAT64
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Jan 2015 16:52:38 +0000 (16:52 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 27 Jan 2015 09:38:00 +0000 (09:38 +0000)
commite6a24a8e02b414944a99bc8cc01621bf29b9106c
tree12dddd58fc6ec2b791ab4549d3b7f1e6eb0c33d3
parent664760137c56ad28d75a3db39f3628eeacdc2c96
syscalls: Declare sys_*stat64 prototypes if __ARCH_WANT_(COMPAT_)STAT64

Currently, the sys_stat64, sys_fstat64 and sys_lstat64 prototpyes are
only declared if BITS_PER_LONG == 32. Following commit 89d3fd3870d7
(fs: Build sys_stat64() and friends if __ARCH_WANT_COMPAT_STAT64), the
implementation of these functions is allowed on 64-bit systems for
compat support. The patch changes the condition on the prototype
declaration from BITS_PER_LONG == 32 to defined(__ARCH_WANT_STAT64) ||
defined(__ARCH_WANT_COMPAT_STAT64).

In addition, it moves the sys_fstatat64 prototype under the same #if
block

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
include/linux/syscalls.h