From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-efi@vger.kernel.org
Subject: [efi:next 7/8] drivers/firmware/google/gsmi.c:477:18: error: incompatible function pointer types initializing 'efi_get_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int *, unsigned long *, void *)') with an expression of type 'ef...
Date: Mon, 29 Mar 2021 11:12:14 +0800 [thread overview]
Message-ID: <202103291103.u7CD3IbB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3331 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-a014-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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: incompatible function pointer types initializing 'efi_get_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int *, unsigned long *, void *)') with an expression of type 'efi_status_t (efi_char16_t *, efi_guid_t *, u32 *, unsigned long *, void *)' (aka 'unsigned long (unsigned short *, guid_t *, unsigned int *, unsigned long *, void *)') [-Werror,-Wincompatible-function-pointer-types]
.get_variable = gsmi_get_variable,
^~~~~~~~~~~~~~~~~
>> drivers/firmware/google/gsmi.c:478:18: error: incompatible function pointer types initializing 'efi_set_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int, unsigned long, void *)') with an expression of type 'efi_status_t (efi_char16_t *, efi_guid_t *, u32, unsigned long, void *)' (aka 'unsigned long (unsigned short *, guid_t *, unsigned int, unsigned long, void *)') [-Werror,-Wincompatible-function-pointer-types]
.set_variable = gsmi_set_variable,
^~~~~~~~~~~~~~~~~
2 errors generated.
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: 37894 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [efi:next 7/8] drivers/firmware/google/gsmi.c:477:18: error: incompatible function pointer types initializing 'efi_get_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int *, unsigned long *, void *)') with an expression of type 'ef...
Date: Mon, 29 Mar 2021 11:12:14 +0800 [thread overview]
Message-ID: <202103291103.u7CD3IbB-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3383 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-a014-20210329 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 2a28d1d3b7bf2062288b46af34e33ccc543a99fa)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# 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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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: incompatible function pointer types initializing 'efi_get_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int *, unsigned long *, void *)') with an expression of type 'efi_status_t (efi_char16_t *, efi_guid_t *, u32 *, unsigned long *, void *)' (aka 'unsigned long (unsigned short *, guid_t *, unsigned int *, unsigned long *, void *)') [-Werror,-Wincompatible-function-pointer-types]
.get_variable = gsmi_get_variable,
^~~~~~~~~~~~~~~~~
>> drivers/firmware/google/gsmi.c:478:18: error: incompatible function pointer types initializing 'efi_set_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int, unsigned long, void *)') with an expression of type 'efi_status_t (efi_char16_t *, efi_guid_t *, u32, unsigned long, void *)' (aka 'unsigned long (unsigned short *, guid_t *, unsigned int, unsigned long, void *)') [-Werror,-Wincompatible-function-pointer-types]
.set_variable = gsmi_set_variable,
^~~~~~~~~~~~~~~~~
2 errors generated.
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37894 bytes --]
next reply other threads:[~2021-03-29 3:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 3:12 kernel test robot [this message]
2021-03-29 3:12 ` [efi:next 7/8] drivers/firmware/google/gsmi.c:477:18: error: incompatible function pointer types initializing 'efi_get_variable_t *' (aka 'unsigned long (*)(const unsigned short *, const guid_t *, unsigned int *, unsigned long *, void *)') with an expression of type 'ef kernel test robot
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=202103291103.u7CD3IbB-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-efi@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 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.