aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-11-01 12:53:18 +0100
committerDave Hansen <dave.hansen@linux.intel.com>2022-12-15 10:37:27 -0800
commit2dff2c359e829245bc3d80e42e296876d1f0cf8e (patch)
tree71aebb23a0263ec3e36e4675e7bc43f6ba377d0c /include
parentmm: Remove pointless barrier() after pmdp_get_lockless() (diff)
downloadwireguard-linux-2dff2c359e829245bc3d80e42e296876d1f0cf8e.tar.xz
wireguard-linux-2dff2c359e829245bc3d80e42e296876d1f0cf8e.zip
mm: Convert __HAVE_ARCH_P..P_GET to the new style
Since __HAVE_ARCH_* style guards have been depricated in favour of defining the function name onto itself, convert pxxp_get(). Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/Y2EUEBlQXNgaJgoI@hirez.programming.kicks-ass.net
Diffstat (limited to 'include')
-rw-r--r--include/linux/pgtable.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
index 23348528ff36..70e2a7e06a76 100644
--- a/include/linux/pgtable.h
+++ b/include/linux/pgtable.h
@@ -291,14 +291,14 @@ static inline void ptep_clear(struct mm_struct *mm, unsigned long addr,
ptep_get_and_clear(mm, addr, ptep);
}
-#ifndef __HAVE_ARCH_PTEP_GET
+#ifndef ptep_get
static inline pte_t ptep_get(pte_t *ptep)
{
return READ_ONCE(*ptep);
}
#endif
-#ifndef __HAVE_ARCH_PMDP_GET
+#ifndef pmdp_get
static inline pmd_t pmdp_get(pmd_t *pmdp)
{
return READ_ONCE(*pmdp);