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:   Thu, 29 Sep 2022 23:19:06 +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 15/18] drivers/s390/cio/css.c:1427:21:
 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:   4c12c0413887fb8f76e86ff52c9ef37992c93788
commit: 4c12c0413887fb8f76e86ff52c9ef37992c93788 [15/18] driver core: make struct bus_type.uevent() take a const *
config: s390-allmodconfig
compiler: s390-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=4c12c0413887fb8f76e86ff52c9ef37992c93788
        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 4c12c0413887fb8f76e86ff52c9ef37992c93788
        # 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=s390 SHELL=/bin/bash drivers/s390/

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/s390/cio/css.c:1427:21: 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]
    1427 |         .uevent   = css_uevent,
         |                     ^~~~~~~~~~
   drivers/s390/cio/css.c:1427:21: note: (near initialization for 'css_bus_type.uevent')
   cc1: some warnings being treated as errors
--
>> drivers/s390/cio/device.c:1768:19: 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]
    1768 |         .uevent = ccw_uevent,
         |                   ^~~~~~~~~~
   drivers/s390/cio/device.c:1768:19: note: (near initialization for 'ccw_bus_type.uevent')
   cc1: some warnings being treated as errors
--
>> drivers/s390/cio/scm.c:49:19: 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]
      49 |         .uevent = scmdev_uevent,
         |                   ^~~~~~~~~~~~~
   drivers/s390/cio/scm.c:49:19: note: (near initialization for 'scm_bus_type.uevent')
   cc1: some warnings being treated as errors
--
>> drivers/s390/crypto/ap_bus.c:1575:19: 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]
    1575 |         .uevent = &ap_uevent,
         |                   ^
   drivers/s390/crypto/ap_bus.c:1575:19: note: (near initialization for 'ap_bus_type.uevent')
   cc1: some warnings being treated as errors


vim +1427 drivers/s390/cio/css.c

7e9db9eaefdb87 Cornelia Huck  2008-07-14  1420  
3041b6ab5f36ac Sebastian Ott  2011-03-15  1421  static struct bus_type css_bus_type = {
^1da177e4c3f41 Linus Torvalds 2005-04-16  1422  	.name     = "css",
8bbace7e686f15 Cornelia Huck  2006-01-11  1423  	.match    = css_bus_match,
8bbace7e686f15 Cornelia Huck  2006-01-11  1424  	.probe    = css_probe,
8bbace7e686f15 Cornelia Huck  2006-01-11  1425  	.remove   = css_remove,
8bbace7e686f15 Cornelia Huck  2006-01-11  1426  	.shutdown = css_shutdown,
7e9db9eaefdb87 Cornelia Huck  2008-07-14 @1427  	.uevent   = css_uevent,
^1da177e4c3f41 Linus Torvalds 2005-04-16  1428  };
^1da177e4c3f41 Linus Torvalds 2005-04-16  1429  

:::::: The code at line 1427 was first introduced by commit
:::::: 7e9db9eaefdb8798730790214ff1b7746006ec98 [S390] cio: Introduce modalias for css bus.

:::::: TO: Cornelia Huck <cornelia.huck@...ibm.com>
:::::: CC: Heiko Carstens <heiko.carstens@...ibm.com>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ