]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/crash: Use set_memory_p() instead of __set_memory_prot()
authorCoiby Xu <coxu@redhat.com>
Tue, 6 Jan 2026 09:50:58 +0000 (17:50 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 13 Jan 2026 14:28:59 +0000 (15:28 +0100)
commit8a4e92b3260ae7664d0531e1b42c38d336e7717a
tree1f17032212a8916166905d6092bac5a25ae69b56
parent736a2dcfdae72483a36793bc92182f33bd61d30e
x86/crash: Use set_memory_p() instead of __set_memory_prot()

set_memory_p() is available to use outside of its compilation unit since:

  030ad7af9437 ("x86/mm: Regularize set_memory_p() parameters and make non-static").

There is no use for __set_memory_prot() anymore so drop it too.

  [ bp: Massage commit message. ]

Signed-off-by: Coiby Xu <coxu@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://patch.msgid.link/20260106095100.656292-1-coxu@redhat.com
arch/x86/include/asm/set_memory.h
arch/x86/kernel/machine_kexec_64.c
arch/x86/mm/pat/set_memory.c