linux-stable/arch/x86/mm/pat
Michael Kelley 030ad7af94 x86/mm: Regularize set_memory_p() parameters and make non-static
set_memory_p() is currently static.  It has parameters that don't
match set_memory_p() under arch/powerpc and that aren't congruent
with the other set_memory_* functions. There's no good reason for
the difference.

Fix this by making the parameters consistent, and update the one
existing call site.  Make the function non-static and add it to
include/asm/set_memory.h so that it is completely parallel to
set_memory_np() and is usable in other modules.

No functional change.

Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/r/20240116022008.1023398-3-mhklinux@outlook.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20240116022008.1023398-3-mhklinux@outlook.com>
2024-03-01 08:31:41 +00:00
..
cpa-test.c treewide: use get_random_u32_below() instead of deprecated function 2022-11-18 02:15:15 +01:00
Makefile
memtype.c arch/x86: Fix typos 2024-01-03 11:46:22 +01:00
memtype.h
memtype_interval.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
set_memory.c x86/mm: Regularize set_memory_p() parameters and make non-static 2024-03-01 08:31:41 +00:00