[-next,0/2] Minor cleanup in PAT

Message ID 20230306084316.2275757-1-mawupeng1@huawei.com
Headers
Series Minor cleanup in PAT |

Message

mawupeng March 6, 2023, 8:43 a.m. UTC
  From: Ma Wupeng <mawupeng1@huawei.com>

Patch #1 move follow_phys to memtype.c since only pat use this.
Patch #2 drop the unnecessary WARN_ON_ONCE if follow_phys fails.

Ma Wupeng (2):
  x86/mm/pat: Move follow_phys to pat-related file
  x86/mm/pat: Drop the unnecessary WARN_ON_ONCE if follow_phys fails

 arch/x86/mm/pat/memtype.c | 32 ++++++++++++++++++++++++++------
 include/linux/mm.h        |  2 --
 mm/memory.c               | 28 ----------------------------
 3 files changed, 26 insertions(+), 36 deletions(-)