All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:tdx/guest-rebased 38/133] arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size
@ 2022-01-14  0:46 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-14  0:46 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: kbuild-all, linux-kernel

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@intel.com/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@intel.com>

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@lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [intel-tdx:tdx/guest-rebased 38/133] arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size
@ 2022-01-14  0:46 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-14  0:46 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2371 bytes --]

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(a)intel.com/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@intel.com>

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(a)lists.01.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-14  0:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14  0:46 [intel-tdx:tdx/guest-rebased 38/133] arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size kernel test robot
2022-01-14  0:46 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.