mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: drivers/firmware/efi/libstub/efistub.h:667:44: sparse: sparse: incorrect type in argument 2 (different type sizes)
Date: Mon, 6 Jul 2020 22:31:24 +0800	[thread overview]
Message-ID: <202007062216.lwYUqk54%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   dcb7fd82c75ee2d6e6f9d8cc71c52519ed52e258
commit: cf6b83664895a5c7e97710df282e220bd047f0f5 efi/libstub: Make initrd file loader configurable
date:   2 months ago
config: arm64-randconfig-s032-20200706 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-14-g8fce3d7a-dirty
        git checkout cf6b83664895a5c7e97710df282e220bd047f0f5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)

   drivers/firmware/efi/libstub/efi-stub.c:68:6: sparse: sparse: symbol 'install_memreserve_table' was not declared. Should it be static?
>> drivers/firmware/efi/libstub/efistub.h:667:44: sparse: sparse: incorrect type in argument 2 (different type sizes) @@     expected unsigned short const [usertype] *optstr @@     got char * @@
>> drivers/firmware/efi/libstub/efistub.h:667:44: sparse:     expected unsigned short const [usertype] *optstr
>> drivers/firmware/efi/libstub/efistub.h:667:44: sparse:     got char *
   drivers/firmware/efi/libstub/efistub.h:680:44: sparse: sparse: incorrect type in argument 2 (different type sizes) @@     expected unsigned short const [usertype] *optstr @@     got char * @@
   drivers/firmware/efi/libstub/efistub.h:680:44: sparse:     expected unsigned short const [usertype] *optstr
   drivers/firmware/efi/libstub/efistub.h:680:44: sparse:     got char *

vim +667 drivers/firmware/efi/libstub/efistub.h

   650	
   651	efi_status_t efi_setup_gop(struct screen_info *si, efi_guid_t *proto,
   652				   unsigned long size);
   653	
   654	efi_status_t handle_cmdline_files(efi_loaded_image_t *image,
   655					  const efi_char16_t *optstr,
   656					  int optstr_size,
   657					  unsigned long soft_limit,
   658					  unsigned long hard_limit,
   659					  unsigned long *load_addr,
   660					  unsigned long *load_size);
   661	
   662	
   663	static inline efi_status_t efi_load_dtb(efi_loaded_image_t *image,
   664						unsigned long *load_addr,
   665						unsigned long *load_size)
   666	{
 > 667		return handle_cmdline_files(image, L"dtb=", sizeof(L"dtb=") - 2,
   668					    ULONG_MAX, ULONG_MAX, load_addr, load_size);
   669	}
   670	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 37449 bytes --]

                 reply	other threads:[~2020-07-06 14:34 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=202007062216.lwYUqk54%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ardb@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --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

all inboxes | Powered by JetHome®