Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_GENERIC_RESOURCE_H
|
|
#define _ASM_GENERIC_RESOURCE_H
|
|
|
|
#include <uapi/asm-generic/resource.h>
|
|
|
|
|
|
/*
|
|
* boot-time rlimit defaults for the init task:
|
|
*/
|
|
#define INIT_RLIMITS \
|
|
{ \
|
|
[RLIMIT_CPU] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_FSIZE] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_DATA] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_STACK] = { _STK_LIM, RLIM_INFINITY }, \
|
|
[RLIMIT_CORE] = { 0, RLIM_INFINITY }, \
|
|
[RLIMIT_RSS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_NPROC] = { 0, 0 }, \
|
|
[RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
|
[RLIMIT_MEMLOCK] = { MLOCK_LIMIT, MLOCK_LIMIT }, \
|
|
[RLIMIT_AS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_LOCKS] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
[RLIMIT_SIGPENDING] = { 0, 0 }, \
|
|
[RLIMIT_MSGQUEUE] = { MQ_BYTES_MAX, MQ_BYTES_MAX }, \
|
|
[RLIMIT_NICE] = { 0, 0 }, \
|
|
[RLIMIT_RTPRIO] = { 0, 0 }, \
|
|
[RLIMIT_RTTIME] = { RLIM_INFINITY, RLIM_INFINITY }, \
|
|
}
|
|
|
|
#endif
|