All of lore.kernel.org
 help / color / mirror / Atom feed
* [intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size
@ 2021-11-24 16:43 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-24 16:43 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: kbuild-all, linux-kernel, Kuppuswamy Sathyanarayanan

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

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

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

* [intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size
@ 2021-11-24 16:43 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-24 16:43 UTC (permalink / raw)
  To: kbuild-all

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

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

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

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

end of thread, other threads:[~2021-11-24 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-24 16:43 [intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size kernel test robot
2021-11-24 16:43 ` 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.