diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2023-08-19 04:18:37 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-24 16:20:29 -0700 |
commit | bb7dbaafff3f582d18028a5b99a8faa789842678 (patch) | |
tree | 753149b5f230ae2474fcfd95784ec65b205802e5 /include | |
parent | 14a405c3a933ce261147a60dfb8bf586b45ec9de (diff) | |
download | lwn-bb7dbaafff3f582d18028a5b99a8faa789842678.tar.gz lwn-bb7dbaafff3f582d18028a5b99a8faa789842678.zip |
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/20230819031837.3160096-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Christian Dietrich <stettberger@dokucode.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pgtable.h | 1 |
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) |