[PATCH v2 0/2] Remove problematic include in <asm/set_memory.h>

From: Kevin Brodsky
Date: Thu Dec 12 2024 - 03:09:27 EST


This series removes an unnecessary and potentially problematic include
of <linux/mm.h> in <asm/set_memory.h>. There is no functional difference
in v2 compared to v1.

v1..v2:
* Squashed include fixups into the last patch removing the include from
<asm/set_memory.h>. [Borislav's suggestion]
* Moved new include in <asm/smp.h>. [Borislav's suggestion]

v1: https://lore.kernel.org/all/20241210184610.2080727-1-kevin.brodsky@xxxxxxx/

- Kevin

Cc: bp@xxxxxxxxx
Cc: dan.j.williams@xxxxxxxxx
Cc: dave.hansen@xxxxxxxxxxxxxxx
Cc: david@xxxxxxxxxx
Cc: jane.chu@xxxxxxxxxx
Cc: osalvador@xxxxxxx
Cc: tglx@xxxxxxxxxxxxx
---
Kevin Brodsky (2):
x86/mm: Remove unused __set_memory_prot()
x86/mm: Remove unnecessary include in set_memory.h

arch/x86/include/asm/set_memory.h | 2 --
arch/x86/include/asm/smp.h | 2 +-
arch/x86/mm/pat/set_memory.c | 13 -------------
drivers/virt/coco/sev-guest/sev-guest.c | 1 +
4 files changed, 2 insertions(+), 16 deletions(-)


base-commit: fac04efc5c793dccbd07e2d59af9f90b7fc0dca4
--
2.47.0