From: kernel test robot <lkp@intel.com>
To: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [intel-tdx:tdx/guest-rebased 38/133] arch/x86/boot/compressed/misc.c:454:17: warning: cast from pointer to integer of different size
Date: Fri, 14 Jan 2022 08:46:33 +0800 [thread overview]
Message-ID: <202201140813.Ymp2JKvR-lkp@intel.com> (raw)
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
reply other threads:[~2022-01-14 0:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202201140813.Ymp2JKvR-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=kirill.shutemov@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome