tree:
git://git.infradead.org/users/hch/misc.git vgaarb-cleanups
head: 06ce75527991e82573f5127a13dd1550c3045c35
commit: 06ce75527991e82573f5127a13dd1550c3045c35 [4/4] vgaarb: remove the unused
irq_set_state argument to vga_client_register
config: arm64-randconfig-r023-20210315 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
a28facba1ccdc957f386b7753f4958307f1bfde8)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add hch-misc
git://git.infradead.org/users/hch/misc.git
git fetch --no-tags hch-misc vgaarb-cleanups
git checkout 06ce75527991e82573f5127a13dd1550c3045c35
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/gpu/drm/msm/adreno/adreno_device.c:9:
In file included from drivers/gpu/drm/msm/adreno/adreno_gpu.h:15:
In file included from drivers/gpu/drm/msm/msm_gpu.h:16:
In file included from drivers/gpu/drm/msm/msm_drv.h:28:
In file included from include/drm/drm_atomic.h:31:
In file included from include/drm/drm_crtc.h:28:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:35:
In file included from include/acpi/acpi_io.h:7:
In file included from arch/arm64/include/asm/acpi.h:12:
include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned
parameter 2 of 'get_var' may result in an unaligned pointer access
[-Walign-mismatch]
status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL,
&size,
^
include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned
parameter 2 of 'get_var' may result in an unaligned pointer access
[-Walign-mismatch]
get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
&setupmode);
^
In file included from drivers/gpu/drm/msm/adreno/adreno_device.c:9:
In file included from drivers/gpu/drm/msm/adreno/adreno_gpu.h:15:
In file included from drivers/gpu/drm/msm/msm_gpu.h:16:
In file included from drivers/gpu/drm/msm/msm_drv.h:32:
In file included from include/drm/drm_fb_helper.h:39:
> include/linux/vgaarb.h:136:40: error: too many arguments to
function call, expected 3, have 4
vga_client_register(pdev, NULL, NULL,
NULL);
~~~~~~~~~~~~~~~~~~~ ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/linux/vgaarb.h:127:19: note: 'vga_client_register' declared here
static inline int vga_client_register(struct pci_dev *pdev, void *cookie,
^
2 warnings and 1 error generated.
--
In file included from drivers/gpu/drm/msm/msm_gem_submit.c:15:
In file included from drivers/gpu/drm/msm/msm_drv.h:28:
In file included from include/drm/drm_atomic.h:31:
In file included from include/drm/drm_crtc.h:28:
In file included from include/linux/i2c.h:13:
In file included from include/linux/acpi.h:35:
In file included from include/acpi/acpi_io.h:7:
In file included from arch/arm64/include/asm/acpi.h:12:
include/linux/efi.h:1093:34: warning: passing 1-byte aligned argument to 4-byte aligned
parameter 2 of 'get_var' may result in an unaligned pointer access
[-Walign-mismatch]
status = get_var(L"SecureBoot", &EFI_GLOBAL_VARIABLE_GUID, NULL,
&size,
^
include/linux/efi.h:1101:24: warning: passing 1-byte aligned argument to 4-byte aligned
parameter 2 of 'get_var' may result in an unaligned pointer access
[-Walign-mismatch]
get_var(L"SetupMode", &EFI_GLOBAL_VARIABLE_GUID, NULL, &size,
&setupmode);
^
In file included from drivers/gpu/drm/msm/msm_gem_submit.c:15:
In file included from drivers/gpu/drm/msm/msm_drv.h:32:
In file included from include/drm/drm_fb_helper.h:39:
> include/linux/vgaarb.h:136:40: error: too many arguments to
function call, expected 3, have 4
vga_client_register(pdev, NULL, NULL,
NULL);
~~~~~~~~~~~~~~~~~~~ ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
#define NULL ((void *)0)
^~~~~~~~~~~
include/linux/vgaarb.h:127:19: note: 'vga_client_register' declared here
static inline int vga_client_register(struct pci_dev *pdev, void *cookie,
^
drivers/gpu/drm/msm/msm_gem_submit.c:206:10: warning: result of comparison of constant
18446744073709551615 with expression of type 'unsigned int' is always false
[-Wtautological-constant-out-of-range-compare]
if (sz == SIZE_MAX) {
~~ ^ ~~~~~~~~
3 warnings and 1 error generated.
vim +136 include/linux/vgaarb.h
deb2d2ecd43dfc Benjamin Herrenschmidt 2009-08-11 133
c6dc15a5e8f729 Christoph Hellwig 2021-03-15 134 static inline void
vga_client_unregister(struct pci_dev *pdev)
c6dc15a5e8f729 Christoph Hellwig 2021-03-15 135 {
c6dc15a5e8f729 Christoph Hellwig 2021-03-15 @136 vga_client_register(pdev, NULL,
NULL, NULL);
c6dc15a5e8f729 Christoph Hellwig 2021-03-15 137
:::::: The code at line 136 was first introduced by commit
:::::: c6dc15a5e8f729a599d8becc7b44e55908b9753e vgaarb: provide a vga_client_unregister
wrapper
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Christoph Hellwig <hch(a)lst.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org