[intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size
From: kernel test robot
Date: Wed Nov 24 2021 - 12:01:12 EST
tree: https://github.com/intel/tdx.git guest
head: 41fe88a1b3c28543f49fa6ed9e0e9b6650ed7614
commit: f6aa202e95b516db1b1b365f08a338387a3b78d7 [113/144] x86/boot/compressed: Handle unaccepted memory
config: i386-randconfig-c021-20211122 (https://download.01.org/0day-ci/archive/20211125/202111250023.2nQP8Msm-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/f6aa202e95b516db1b1b365f08a338387a3b78d7
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx guest
git checkout f6aa202e95b516db1b1b365f08a338387a3b78d7
# save the config file to linux build tree
make W=1 ARCH=i386
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:443:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
443 | accept_memory((phys_addr_t)output,
| ^
arch/x86/boot/compressed/misc.c:444:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
444 | (phys_addr_t)output + needed_size);
| ^
vim +443 arch/x86/boot/compressed/misc.c
437
438 debug_putstr("\nDecompressing Linux... ");
439
440 if (IS_ENABLED(CONFIG_UNACCEPTED_MEMORY) &&
441 boot_params->unaccepted_memory) {
442 debug_putstr("Accepting memory... ");
> 443 accept_memory((phys_addr_t)output,
444 (phys_addr_t)output + needed_size);
445 }
446
447 __decompress(input_data, input_len, NULL, NULL, output, output_len,
448 NULL, error);
449 parse_elf(output);
450 handle_relocations(output, output_len, virt_addr);
451 debug_putstr("done.\nBooting the kernel.\n");
452
453 /* Disable exception handling before booting the kernel */
454 cleanup_exception_handling();
455
456 return output;
457 }
458
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx