projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0055f3
)
pgtable: add pud_index() fallback
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Tue, 9 Jan 2024 13:10:48 +0000
(14:10 +0100)
committer
Marek Szyprowski
<m.szyprowski@samsung.com>
Wed, 17 Jan 2024 17:15:54 +0000
(18:15 +0100)
Change-Id: I4ef23d27ca85afc9933cf1dc70b8b605ee4f6591
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
include/asm-generic/pgtable.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/pgtable.h
b/include/asm-generic/pgtable.h
index
7f9eced
..
660b70c
100644
(file)
--- a/
include/asm-generic/pgtable.h
+++ b/
include/asm-generic/pgtable.h
@@
-1207,4
+1207,12
@@
static inline bool arch_has_pfn_modify_check(void)
#define pmd_leaf(x) 0
#endif
+#ifndef pud_index
+static inline unsigned long pud_index(unsigned long address)
+{
+ return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1);
+}
+#define pud_index pud_index
+#endif
+
#endif /* _ASM_GENERIC_PGTABLE_H */