Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

asm-generic: remove _STK_LIM_MAX

_STK_LIM_MAX could be used to override the RLIMIT_STACK hard limit from
an arch's include/uapi/asm-generic/resource.h file, but is no longer
used since both parisc and metag removed the override. Therefore remove
it entirely, setting the hard RLIMIT_STACK limit to RLIM_INFINITY
directly in include/asm-generic/resource.h.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: linux-arch@vger.kernel.org
Cc: Helge Deller <deller@gmx.de>
Cc: John David Anglin <dave.anglin@bell.net>

+1 -8
+1 -1
include/asm-generic/resource.h
··· 12 12 [RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \ 13 13 [RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \ 14 14 [RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \ 15 - [RLIMIT_STACK] = { _STK_LIM, _STK_LIM_MAX }, \ 15 + [RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \ 16 16 [RLIMIT_CORE] = { 0, RLIM_INFINITY }, \ 17 17 [RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \ 18 18 [RLIMIT_NPROC] = { 0, 0 }, \
-7
include/uapi/asm-generic/resource.h
··· 57 57 # define RLIM_INFINITY (~0UL) 58 58 #endif 59 59 60 - /* 61 - * RLIMIT_STACK default maximum - some architectures override it: 62 - */ 63 - #ifndef _STK_LIM_MAX 64 - # define _STK_LIM_MAX RLIM_INFINITY 65 - #endif 66 - 67 60 68 61 #endif /* _UAPI_ASM_GENERIC_RESOURCE_H */