projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1bc76
)
mm: remove guard around pgd_offset_k() macro
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Sat, 16 Mar 2024 11:52:41 +0000
(12:52 +0100)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:55:43 +0000
(20:55 -0700)
The last architecture redefining pgd_offset_k() was IA64 and it was
removed by commit
cf8e8658100d
("arch: Remove Itanium (IA-64)
architecture")
There is no need anymore to guard generic version of pgd_offset_k()
with #ifndef pgd_offset_k
Link:
https://lkml.kernel.org/r/59d3f47d5615d18cca1986f269be2fcb3df34556.1710589838.git.christophe.leroy@csgroup.eu
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/pgtable.h
patch
|
blob
|
history
diff --git
a/include/linux/pgtable.h
b/include/linux/pgtable.h
index
85fc755
..
bd9c718
100644
(file)
--- a/
include/linux/pgtable.h
+++ b/
include/linux/pgtable.h
@@
-149,9
+149,7
@@
static inline pgd_t *pgd_offset_pgd(pgd_t *pgd, unsigned long address)
* a shortcut which implies the use of the kernel's pgd, instead
* of a process's
*/
-#ifndef pgd_offset_k
#define pgd_offset_k(address) pgd_offset(&init_mm, (address))
-#endif
/*
* In many cases it is known that a virtual address is mapped at PMD or PTE