aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-08-19 04:18:37 +0100
committerAndrew Morton <[email protected]>2023-08-24 16:20:29 -0700
commitbb7dbaafff3f582d18028a5b99a8faa789842678 (patch)
tree753149b5f230ae2474fcfd95784ec65b205802e5 /include/linux
parent14a405c3a933ce261147a60dfb8bf586b45ec9de (diff)
mm: remove checks for pte_index
Since pte_index is always defined, we don't need to check whether it's defined or not. Delete the slow version that doesn't depend on it and remove the #define since nobody needs to test for it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Reviewed-by: Mike Rapoport (IBM) <[email protected]> Cc: Christian Dietrich <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/pgtable.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
index fc811c9b421a..95ad544ad395 100644
--- a/include/linux/pgtable.h
+++ b/include/linux/pgtable.h
@@ -63,7 +63,6 @@ static inline unsigned long pte_index(unsigned long address)
{
return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1);
}
-#define pte_index pte_index
#ifndef pmd_index
static inline unsigned long pmd_index(unsigned long address)