Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a9067d53 authored by Ingo Brueckl's avatar Ingo Brueckl Committed by Ingo Molnar
Browse files

x86: convert permanent_kmaps_init() from macro to inline



Impact: cleanup

This compiler warning:

  arch/x86/mm/init_32.c:515: warning: unused variable 'pgd_base'

triggers because permanent_kmaps_init() is a CPP macro in the
!CONFIG_HIGHMEM case, that does not tell the compiler that the
'pgd_base' parameter is used.

Convert permanent_kmaps_init() (and set_highmem_pages_init()) to
C inline functions - which gives the parameter a proper type and
which gets rid of the compiler warning as well.

Signed-off-by: default avatarIngo Brueckl <ib@wupperonline.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c64d8996
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment