Skip to content

Commit 17435e5

Browse files
deepa-hubarndb
authored andcommitted
time: Introduce CONFIG_COMPAT_32BIT_TIME
Compat functions are now used to support 32 bit time_t in compat mode on 64 bit architectures and in native mode on 32 bit architectures. Introduce COMPAT_32BIT_TIME to conditionally compile these functions. Note that turning off 32 bit time_t support requires more changes on architecture side. For instance, architecure syscall tables need to be updated to drop support for 32 bit time_t syscalls. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent d4703dd commit 17435e5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,13 @@ config 64BIT_TIME
878878
architectures, and 64-bit architectures as part of compat syscall
879879
handling.
880880

881+
config COMPAT_32BIT_TIME
882+
def_bool (!64BIT && 64BIT_TIME) || COMPAT
883+
help
884+
This enables 32 bit time_t support in addition to 64 bit time_t support.
885+
This is relevant on all 32-bit architectures, and 64-bit architectures
886+
as part of compat syscall handling.
887+
881888
config ARCH_NO_COHERENT_DMA_MMAP
882889
bool
883890

0 commit comments

Comments
 (0)