Skip to content

Commit 2b32ab0

Browse files
joergroedelIngo Molnar
authored andcommitted
x86/mm/64: Make sync_global_pgds() static
The function is only called from within init_64.c and can be static. Also remove it from pgtable_64.h. Signed-off-by: Joerg Roedel <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Mike Rapoport <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8bb9bf2 commit 2b32ab0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

arch/x86/include/asm/pgtable_64.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ static inline void native_pgd_clear(pgd_t *pgd)
168168
native_set_pgd(pgd, native_make_pgd(0));
169169
}
170170

171-
extern void sync_global_pgds(unsigned long start, unsigned long end);
172-
173171
/*
174172
* Conversion functions: convert a page and protection to a page entry,
175173
* and a page entry and page directory to the page they refer to.

arch/x86/mm/init_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void sync_global_pgds_l4(unsigned long start, unsigned long end)
209209
* When memory was added make sure all the processes MM have
210210
* suitable PGD entries in the local PGD level page.
211211
*/
212-
void sync_global_pgds(unsigned long start, unsigned long end)
212+
static void sync_global_pgds(unsigned long start, unsigned long end)
213213
{
214214
if (pgtable_l5_enabled())
215215
sync_global_pgds_l5(start, end);

0 commit comments

Comments
 (0)