mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 18:30:06 +00:00
![Yury Norov](/assets/img/avatar_default.png)
All new 32-bit architectures should have 64-bit userspace off_t type, but existing architectures has 32-bit ones. To enforce the rule, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled for new 32-bit architectures. All existing 32-bit architectures enable it explicitly. New option affects force_o_largefile() behaviour. Namely, if userspace off_t is 64-bits long, we have no reason to reject user to open big files. Note that even if architectures has only 64-bit off_t in the kernel (arc, c6x, h8300, hexagon, nios2, openrisc, and unicore32), a libc may use 32-bit off_t, and therefore want to limit the file size to 4GB unless specified differently in the open flags. Signed-off-by: Yury Norov <ynorov@caviumnetworks.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Yury Norov <ynorov@marvell.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
50 lines
856 B
Text
50 lines
856 B
Text
# SPDX-License-Identifier: GPL-2.0
|
|
config H8300
|
|
def_bool y
|
|
select ARCH_32BIT_OFF_T
|
|
select GENERIC_ATOMIC64
|
|
select HAVE_UID16
|
|
select VIRT_TO_BUS
|
|
select GENERIC_IRQ_SHOW
|
|
select FRAME_POINTER
|
|
select GENERIC_CPU_DEVICES
|
|
select MODULES_USE_ELF_RELA
|
|
select GENERIC_CLOCKEVENTS
|
|
select CLKDEV_LOOKUP
|
|
select COMMON_CLK
|
|
select ARCH_WANT_FRAME_POINTERS
|
|
select OF
|
|
select OF_IRQ
|
|
select OF_EARLY_FLATTREE
|
|
select TIMER_OF
|
|
select H8300_TMR8
|
|
select HAVE_KERNEL_GZIP
|
|
select HAVE_KERNEL_LZO
|
|
select HAVE_ARCH_KGDB
|
|
select HAVE_ARCH_HASH
|
|
select CPU_NO_EFFICIENT_FFS
|
|
|
|
config CPU_BIG_ENDIAN
|
|
def_bool y
|
|
|
|
config RWSEM_GENERIC_SPINLOCK
|
|
def_bool y
|
|
|
|
config GENERIC_HWEIGHT
|
|
def_bool y
|
|
|
|
config NO_IOPORT_MAP
|
|
def_bool y
|
|
|
|
config GENERIC_CSUM
|
|
def_bool y
|
|
|
|
config HZ
|
|
int
|
|
default 100
|
|
|
|
config NR_CPUS
|
|
int
|
|
default 1
|
|
|
|
source "arch/h8300/Kconfig.cpu"
|