diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-07-28 18:57:19 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-07-31 11:08:17 +0200 |
commit | e4cb955bf173474a61f56200610004aacc7a62ff (patch) | |
tree | c7cfe94c4501429ad715225ee6fac41eb32e0aee /arch/x86/boot/compressed/kaslr.c | |
parent | 4268b4da572f8bde8bc2f3243927ff5795687a6f (diff) | |
download | linux-stable-e4cb955bf173474a61f56200610004aacc7a62ff.tar.gz linux-stable-e4cb955bf173474a61f56200610004aacc7a62ff.tar.bz2 linux-stable-e4cb955bf173474a61f56200610004aacc7a62ff.zip |
x86/kaslr: Make minimum/image_size 'unsigned long'
Change type of minimum/image_size arguments in process_mem_region to
'unsigned long'. These actually can never be above 4G (even on x86_64),
and they're 'unsigned long' in every other function except this one.
Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200728225722.67457-19-nivedita@alum.mit.edu
Diffstat (limited to 'arch/x86/boot/compressed/kaslr.c')
-rw-r--r-- | arch/x86/boot/compressed/kaslr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index ecdf33da2a97..3244f5b865e0 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -649,8 +649,8 @@ static void __process_mem_region(struct mem_vector *entry, } static bool process_mem_region(struct mem_vector *region, - unsigned long long minimum, - unsigned long long image_size) + unsigned long minimum, + unsigned long image_size) { int i; /* |