Skip to content

Commit f8a4570

Browse files
kjwinchesterIngo Molnar
authored andcommitted
x86: fix pointer type warning in arch/x86/mm/init_64.c:early_memtest
Changed the call to find_e820_area_size to pass u64 instead of unsigned long. Signed-off-by: Kevin Winchester <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 4461145 commit f8a4570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/x86/mm/init_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ early_param("memtest", parse_memtest);
506506

507507
static void __init early_memtest(unsigned long start, unsigned long end)
508508
{
509-
unsigned long t_start, t_size;
509+
u64 t_start, t_size;
510510
unsigned pattern;
511511

512512
if (!memtest_pattern)
@@ -525,7 +525,7 @@ static void __init early_memtest(unsigned long start, unsigned long end)
525525
if (t_start + t_size > end)
526526
t_size = end - t_start;
527527

528-
printk(KERN_CONT "\n %016lx - %016lx pattern %d",
528+
printk(KERN_CONT "\n %016llx - %016llx pattern %d",
529529
t_start, t_start + t_size, pattern);
530530

531531
memtest(t_start, t_size, pattern);

0 commit comments

Comments
 (0)