[intel-tdx:tdx/guest-rebased 38/133] arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size

From: kernel test robot
Date: Thu Jan 13 2022 - 19:47:40 EST


tree: https://github.com/intel/tdx.git tdx/guest-rebased
head: e3995864d37c56f431c93fc3dc454d9c65f5e9ea
commit: 38bb454722407639d0570dd216f8cf65e7f93b84 [38/133] x86/boot/compressed: Handle unaccepted memory
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220114/202201140813.Ymp2JKvR-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/38bb454722407639d0570dd216f8cf65e7f93b84
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx tdx/guest-rebased
git checkout 38bb454722407639d0570dd216f8cf65e7f93b84
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

arch/x86/boot/compressed/misc.c: In function 'extract_kernel':
>> arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
454 | accept_memory((phys_addr_t)output,
| ^
arch/x86/boot/compressed/misc.c:455:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
455 | (phys_addr_t)output + needed_size);
| ^


vim +454 arch/x86/boot/compressed/misc.c

448
449 debug_putstr("\nDecompressing Linux... ");
450
451 if (IS_ENABLED(CONFIG_UNACCEPTED_MEMORY) &&
452 boot_params->unaccepted_memory) {
453 debug_putstr("Accepting memory... ");
> 454 accept_memory((phys_addr_t)output,
455 (phys_addr_t)output + needed_size);
456 }
457
458 __decompress(input_data, input_len, NULL, NULL, output, output_len,
459 NULL, error);
460 parse_elf(output);
461 handle_relocations(output, output_len, virt_addr);
462 debug_putstr("done.\nBooting the kernel.\n");
463
464 /* Disable exception handling before booting the kernel */
465 cleanup_exception_handling();
466
467 return output;
468 }
469

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx