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

coredump: pass struct linux_binfmt as const

We don't actually modify it.

Link: https://patch.msgid.link/20251103-work-creds-guards-prepare_creds-v1-6-b447b82f2c9b@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>

+2 -2
+2 -2
fs/coredump.c
··· 1036 1036 1037 1037 static bool coredump_write(struct core_name *cn, 1038 1038 struct coredump_params *cprm, 1039 - struct linux_binfmt *binfmt) 1039 + const struct linux_binfmt *binfmt) 1040 1040 { 1041 1041 1042 1042 if (dump_interrupted()) ··· 1093 1093 struct core_state core_state; 1094 1094 struct core_name cn; 1095 1095 struct mm_struct *mm = current->mm; 1096 - struct linux_binfmt *binfmt = mm->binfmt; 1096 + const struct linux_binfmt *binfmt = mm->binfmt; 1097 1097 const struct cred *old_cred; 1098 1098 int argc = 0; 1099 1099 struct coredump_params cprm = {