x86/boot: Simplify pointer casting in choose_random_location()
[linux-2.6-block.git] / arch / x86 / boot / compressed / misc.c
index 9536d778149e4f01a53cb53046499b59a114f9d6..f14db4e21654401940aab6a06c75192e05af721d 100644 (file)
@@ -366,7 +366,8 @@ asmlinkage __visible void *extract_kernel(void *rmode, memptr heap,
         * the entire decompressed kernel plus relocation table, or the
         * entire decompressed kernel plus .bss and .brk sections.
         */
-       output = choose_random_location(input_data, input_len, output,
+       output = choose_random_location((unsigned long)input_data, input_len,
+                                       (unsigned long)output,
                                        max(output_len, kernel_total_size));
 
        /* Validate memory location choices. */