lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 3 Oct 2022 20:19:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [driver-core:kobject-const 15/18] drivers/amba/bus.c:447:13: error:
 incompatible function pointer types initializing 'int (*)(const struct
 device *, struct kobj_uevent_env *)' with an expression of type 'int (struct
 device *, struct kobj_uevent_env *)'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const
head:   ed9d0211c055e56f57141bc3a62b4ce7036083a2
commit: 57f0edb9a3d781a8a8817ae7005aa3c17076054c [15/18] driver core: make struct bus_type.uevent() take a const *
config: arm64-randconfig-r022-20221002
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=57f0edb9a3d781a8a8817ae7005aa3c17076054c
        git remote add driver-core https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git
        git fetch --no-tags driver-core kobject-const
        git checkout 57f0edb9a3d781a8a8817ae7005aa3c17076054c
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/amba/ drivers/gpu/host1x/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> drivers/amba/bus.c:447:13: error: incompatible function pointer types initializing 'int (*)(const struct device *, struct kobj_uevent_env *)' with an expression of type 'int (struct device *, struct kobj_uevent_env *)' [-Wincompatible-function-pointer-types]
           .uevent         = amba_uevent,
                             ^~~~~~~~~~~
   1 error generated.
--
>> drivers/gpu/host1x/bus.c:388:12: error: incompatible function pointer types initializing 'int (*)(const struct device *, struct kobj_uevent_env *)' with an expression of type 'int (struct device *, struct kobj_uevent_env *)' [-Wincompatible-function-pointer-types]
           .uevent = host1x_device_uevent,
                     ^~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +447 drivers/amba/bus.c

ba74ec7f6b2bf9 drivers/amba/bus.c     Rabin Vincent      2011-02-23  436  
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  437  /*
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  438   * Primecells are part of the Advanced Microcontroller Bus Architecture,
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  439   * so we call the bus "amba".
07397df29e57cd drivers/amba/bus.c     Nipun Gupta        2018-04-28  440   * DMA configuration for platform and AMBA bus is same. So here we reuse
07397df29e57cd drivers/amba/bus.c     Nipun Gupta        2018-04-28  441   * platform's DMA config routine.
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  442   */
394d5aefcdecb5 drivers/amba/bus.c     Rob Herring        2011-02-12  443  struct bus_type amba_bustype = {
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  444  	.name		= "amba",
966449a3d8a04e drivers/amba/bus.c     Greg Kroah-Hartman 2017-06-06  445  	.dev_groups	= amba_dev_groups,
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  446  	.match		= amba_match,
6d20b035dee430 arch/arm/common/amba.c Paul Jackson       2005-11-25 @447  	.uevent		= amba_uevent,
f170b59fedd733 drivers/amba/bus.c     Uwe Kleine-König   2021-01-26  448  	.probe		= amba_probe,
f170b59fedd733 drivers/amba/bus.c     Uwe Kleine-König   2021-01-26  449  	.remove		= amba_remove,
f170b59fedd733 drivers/amba/bus.c     Uwe Kleine-König   2021-01-26  450  	.shutdown	= amba_shutdown,
4a6d9dd564d0e7 drivers/amba/bus.c     Lu Baolu           2022-04-18  451  	.dma_configure	= amba_dma_configure,
512881eacfa72c drivers/amba/bus.c     Lu Baolu           2022-04-18  452  	.dma_cleanup	= amba_dma_cleanup,
26825cfd90f94f drivers/amba/bus.c     Ulf Hansson        2013-12-09  453  	.pm		= &amba_pm,
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  454  };
e9ac68c34f70a0 drivers/amba/bus.c     Kim Phillips       2018-05-14  455  EXPORT_SYMBOL_GPL(amba_bustype);
^1da177e4c3f41 arch/arm/common/amba.c Linus Torvalds     2005-04-16  456  

:::::: The code at line 447 was first introduced by commit
:::::: 6d20b035dee4300e9786c6e1cb77a765c7f9460a [PATCH] driver kill hotplug word from sn and others fix

:::::: TO: Paul Jackson <pj@....com>
:::::: CC: Greg Kroah-Hartman <gregkh@...e.de>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (176273 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ