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:   Tue, 11 Oct 2022 17:48:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     kbuild-all@...ts.01.org, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org
Subject: [driver-core:kobject-const 17/18] arch/sparc/kernel/vio.c:155:27:
 error: initialization of 'int (*)(const struct device *, struct
 kobj_uevent_env *)' from incompatible pointer 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:   318fbfc691ea7851bfa7c54e338e1b59544d8f6a
commit: 62211cebeec6bb2e48424e2c44f90ee268f7e6d6 [17/18] driver core: make struct bus_type.uevent() take a const *
config: sparc64-randconfig-r036-20221010
compiler: sparc64-linux-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=62211cebeec6bb2e48424e2c44f90ee268f7e6d6
        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 62211cebeec6bb2e48424e2c44f90ee268f7e6d6
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc64 SHELL=/bin/bash arch/sparc/kernel/

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

>> arch/sparc/kernel/vio.c:155:27: error: initialization of 'int (*)(const struct device *, struct kobj_uevent_env *)' from incompatible pointer type 'int (*)(struct device *, struct kobj_uevent_env *)' [-Werror=incompatible-pointer-types]
     155 |         .uevent         = vio_hotplug,
         |                           ^~~~~~~~~~~
   arch/sparc/kernel/vio.c:155:27: note: (near initialization for 'vio_bus_type.uevent')
   cc1: all warnings being treated as errors


vim +155 arch/sparc/kernel/vio.c

e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  151  
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  152  static struct bus_type vio_bus_type = {
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  153  	.name		= "vio",
33acc6db64f77a arch/sparc/kernel/vio.c   Greg Kroah-Hartman        2017-06-06  154  	.dev_groups	= vio_dev_groups,
5bde2c9be701c4 arch/sparc/kernel/vio.c   John Paul Adrian Glaubitz 2016-04-14 @155  	.uevent         = vio_hotplug,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  156  	.match		= vio_bus_match,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  157  	.probe		= vio_device_probe,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  158  	.remove		= vio_device_remove,
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  159  };
e53e97ce3c7119 arch/sparc64/kernel/vio.c David S. Miller           2007-07-09  160  

:::::: The code at line 155 was first introduced by commit
:::::: 5bde2c9be701c4583f0a9243bd46590ec401bfba sparc: Implement and wire up vio_hotplug for vio.

:::::: TO: Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>
:::::: CC: David S. Miller <davem@...emloft.net>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ