OSDN Git Service

x86/boot/compressed/64: Change add_identity_map() to take start and end
authorJoerg Roedel <jroedel@suse.de>
Mon, 7 Sep 2020 13:15:19 +0000 (15:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 7 Sep 2020 17:45:25 +0000 (19:45 +0200)
commit21cf2372618ef167d8c4ae04880fb873b55b2daa
tree3f130d8a75f0230eb1a48dbc0090c9834eff0868
parent8570978ea030757839747aa9944ea576708be3d4
x86/boot/compressed/64: Change add_identity_map() to take start and end

Changing the function to take start and end as parameters instead of
start and size simplifies the callers which don't need to calculate the
size if they already have start and end.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lkml.kernel.org/r/20200907131613.12703-19-joro@8bytes.org
arch/x86/boot/compressed/ident_map_64.c