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]
Message-ID: <202210030018.DEdqnYgJ-lkp@intel.com>
Date:   Mon, 3 Oct 2022 00:41:27 +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/s390/cio/scm.c:49: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 *)'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const
head:   75b46b72e13aa3b904572a0a9511f14709eac779
commit: c3b2b3fa96a9536c18ab7f2663e62b1a971eab64 [15/18] driver core: make struct bus_type.uevent() take a const *
config: s390-randconfig-r021-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 s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=c3b2b3fa96a9536c18ab7f2663e62b1a971eab64
        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 c3b2b3fa96a9536c18ab7f2663e62b1a971eab64
        # 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=s390 SHELL=/bin/bash drivers/s390/cio/

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/scm.c:49: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 = scmdev_uevent,
                     ^~~~~~~~~~~~~
   1 error generated.


vim +49 drivers/s390/cio/scm.c

1d1c8f78bed5f8 Sebastian Ott 2012-08-28  44  
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  45  static struct bus_type scm_bus_type = {
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  46  	.name  = "scm",
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  47  	.probe = scmdev_probe,
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  48  	.remove = scmdev_remove,
1d1c8f78bed5f8 Sebastian Ott 2012-08-28 @49  	.uevent = scmdev_uevent,
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  50  };
1d1c8f78bed5f8 Sebastian Ott 2012-08-28  51  

:::::: The code at line 49 was first introduced by commit
:::::: 1d1c8f78bed5f8e769757525bd9c2dec69f11a44 s390: add scm bus driver

:::::: TO: Sebastian Ott <sebott@...ux.vnet.ibm.com>
:::::: CC: Martin Schwidefsky <schwidefsky@...ibm.com>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ