linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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,
	Kuppuswamy Sathyanarayanan 
	<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: [intel-tdx:guest 113/144] arch/x86/boot/compressed/misc.c:443:17: warning: cast from pointer to integer of different size
Date: Thu, 25 Nov 2021 00:43:40 +0800	[thread overview]
Message-ID: <202111250023.2nQP8Msm-lkp@intel.com> (raw)

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

                 reply	other threads:[~2021-11-24 17:01 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=202111250023.2nQP8Msm-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 \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).