All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [ardb:efi-remove-mixed-mode 25/30] include/linux/efi.h:576:41: warning: initialization of 'const efi_config_table_t *' from 'long unsigned int' makes pointer from integer without a cast
Date: Sat, 13 May 2023 10:23:41 +0800	[thread overview]
Message-ID: <202305131018.3TGPQTGY-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git efi-remove-mixed-mode
head:   cd57f70012e67876ab331fb83fd05670727e44d1
commit: e078fe8a2777069c99a70bcfac840380d2bbf578 [25/30] efi: get rid of efi_table_attr()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230513/202305131018.3TGPQTGY-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=e078fe8a2777069c99a70bcfac840380d2bbf578
        git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
        git fetch --no-tags ardb efi-remove-mixed-mode
        git checkout e078fe8a2777069c99a70bcfac840380d2bbf578
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/xen/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305131018.3TGPQTGY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/x86/xen/efi.c:7:
>> include/linux/efi.h:576:41: warning: initialization of 'const efi_config_table_t *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
     576 | #define EFI_INVALID_TABLE_ADDR          (~0UL)
         |                                         ^
   arch/x86/xen/efi.c:42:27: note: in expansion of macro 'EFI_INVALID_TABLE_ADDR'
      42 |         .tables         = EFI_INVALID_TABLE_ADDR  /* Initialized later. */
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/efi.h:576:41: note: (near initialization for 'efi_systab_xen.tables')
     576 | #define EFI_INVALID_TABLE_ADDR          (~0UL)
         |                                         ^
   arch/x86/xen/efi.c:42:27: note: in expansion of macro 'EFI_INVALID_TABLE_ADDR'
      42 |         .tables         = EFI_INVALID_TABLE_ADDR  /* Initialized later. */
         |                           ^~~~~~~~~~~~~~~~~~~~~~
   arch/x86/xen/efi.c: In function 'xen_efi_probe':
>> arch/x86/xen/efi.c:62:31: warning: assignment to 'const efi_config_table_t *' from 'uint64_t' {aka 'long long unsigned int'} makes pointer from integer without a cast [-Wint-conversion]
      62 |         efi_systab_xen.tables = info->cfg.addr;
         |                               ^
   arch/x86/xen/efi.c: At top level:
   arch/x86/xen/efi.c:130:13: warning: no previous prototype for 'xen_efi_init' [-Wmissing-prototypes]
     130 | void __init xen_efi_init(struct boot_params *boot_params)
         |             ^~~~~~~~~~~~


vim +576 include/linux/efi.h

fe4db90a80cd12 Ard Biesheuvel 2020-01-23  575  
b2c99e3c70d77f Bjorn Helgaas  2006-03-26 @576  #define EFI_INVALID_TABLE_ADDR		(~0UL)
b2c99e3c70d77f Bjorn Helgaas  2006-03-26  577  

:::::: The code at line 576 was first introduced by commit
:::::: b2c99e3c70d77fb194df5aa1642030080d28ea48 [PATCH] EFI: keep physical table addresses in efi structure

:::::: TO: Bjorn Helgaas <bjorn.helgaas@hp.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-05-13  2:24 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=202305131018.3TGPQTGY-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ardb@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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.