diff options
| author | Christian Brauner <brauner@kernel.org> | 2025-11-03 15:57:33 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-05 23:11:51 +0100 |
| commit | 313a335057f0894e6e59290d4e7fb8b35ec250e6 (patch) | |
| tree | 10b1a4367a271f6287445045ea9298d79681231a /include | |
| parent | 1ec760fb42404dd7257d1c73dd68295a0d1a974f (diff) | |
coredump: mark struct mm_struct as const
We don't actually modify it.
Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-7-b447b82f2c9b@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/sched/coredump.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/sched/coredump.h b/include/linux/sched/coredump.h index b7fafe999073..624fda17a785 100644 --- a/include/linux/sched/coredump.h +++ b/include/linux/sched/coredump.h @@ -8,7 +8,7 @@ #define SUID_DUMP_USER 1 /* Dump as user of process */ #define SUID_DUMP_ROOT 2 /* Dump as root */ -static inline unsigned long __mm_flags_get_dumpable(struct mm_struct *mm) +static inline unsigned long __mm_flags_get_dumpable(const struct mm_struct *mm) { /* * By convention, dumpable bits are contained in first 32 bits of the |
