linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [efi:next 7/8] drivers/firmware/google/gsmi.c:477:18: error: initialization of 'efi_status_t (*)(const efi_char16_t *, const efi_guid_t *, u32 *, long unsigned int *, void *)' {aka 'long unsigned int (*)(const short unsigned int *, const struct <anonymous> *, unsigned i...
@ 2021-03-29  3:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-29  3:31 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: kbuild-all, linux-efi

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git next
head:   66d988c324a018de02a0924232c68618b6433e80
commit: 91e81f2344ea77e9f22ef6dba0cbdc6817e331b1 [7/8] efi: use const* parameters for get/setvar by-ref arguments annotated as IN
config: x86_64-randconfig-p001-20210329 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git/commit/?id=91e81f2344ea77e9f22ef6dba0cbdc6817e331b1
        git remote add efi https://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
        git fetch --no-tags efi next
        git checkout 91e81f2344ea77e9f22ef6dba0cbdc6817e331b1
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

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

All errors (new ones prefixed by >>):

>> drivers/firmware/google/gsmi.c:477:18: error: initialization of 'efi_status_t (*)(const efi_char16_t *, const efi_guid_t *, u32 *, long unsigned int *, void *)' {aka 'long unsigned int (*)(const short unsigned int *, const struct <anonymous> *, unsigned int *, long unsigned int *, void *)'} from incompatible pointer type 'efi_status_t (*)(efi_char16_t *, efi_guid_t *, u32 *, long unsigned int *, void *)' {aka 'long unsigned int (*)(short unsigned int *, struct <anonymous> *, unsigned int *, long unsigned int *, void *)'} [-Werror=incompatible-pointer-types]
     477 |  .get_variable = gsmi_get_variable,
         |                  ^~~~~~~~~~~~~~~~~
   drivers/firmware/google/gsmi.c:477:18: note: (near initialization for 'efivar_ops.get_variable')
   drivers/firmware/google/gsmi.c:478:18: error: initialization of 'efi_status_t (*)(const efi_char16_t *, const efi_guid_t *, u32,  long unsigned int,  void *)' {aka 'long unsigned int (*)(const short unsigned int *, const struct <anonymous> *, unsigned int,  long unsigned int,  void *)'} from incompatible pointer type 'efi_status_t (*)(efi_char16_t *, efi_guid_t *, u32,  long unsigned int,  void *)' {aka 'long unsigned int (*)(short unsigned int *, struct <anonymous> *, unsigned int,  long unsigned int,  void *)'} [-Werror=incompatible-pointer-types]
     478 |  .set_variable = gsmi_set_variable,
         |                  ^~~~~~~~~~~~~~~~~
   drivers/firmware/google/gsmi.c:478:18: note: (near initialization for 'efivar_ops.set_variable')
   cc1: some warnings being treated as errors


vim +477 drivers/firmware/google/gsmi.c

74c5b31c6618f0 Mike Waychison 2011-04-29  475  
74c5b31c6618f0 Mike Waychison 2011-04-29  476  static const struct efivar_operations efivar_ops = {
74c5b31c6618f0 Mike Waychison 2011-04-29 @477  	.get_variable = gsmi_get_variable,
74c5b31c6618f0 Mike Waychison 2011-04-29  478  	.set_variable = gsmi_set_variable,
74c5b31c6618f0 Mike Waychison 2011-04-29  479  	.get_next_variable = gsmi_get_next_variable,
74c5b31c6618f0 Mike Waychison 2011-04-29  480  };
74c5b31c6618f0 Mike Waychison 2011-04-29  481  

:::::: The code at line 477 was first introduced by commit
:::::: 74c5b31c6618f01079212332b2e5f6c42f2d6307 driver: Google EFI SMI

:::::: TO: Mike Waychison <mikew@google.com>
:::::: CC: Greg Kroah-Hartman <gregkh@suse.de>

---
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: 32451 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-29  3:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  3:31 [efi:next 7/8] drivers/firmware/google/gsmi.c:477:18: error: initialization of 'efi_status_t (*)(const efi_char16_t *, const efi_guid_t *, u32 *, long unsigned int *, void *)' {aka 'long unsigned int (*)(const short unsigned int *, const struct <anonymous> *, unsigned i kernel test robot

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).