Skip to content
Snippets Groups Projects
Commit 101daf6b authored by Boqun Feng's avatar Boqun Feng Committed by Pekka Enberg
Browse files

mmu: fix an unsigned/signed comparison error


-Werror=sign-compare complains about when comparing (unsigned)level with
page_mapper.nr_page_sizes().
Since nr_page_sizes() is meaningful only when it's non-negative and the
mmu::nr_page_sizes is unsigned, changing the return types of all
nr_page_sizes functions to unsigned is reasonable.

Signed-off-by: default avatarBoqun Feng <boqun.feng@linux.vnet.ibm.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 4db42e4f
No related branches found
No related tags found
No related merge requests found
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