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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210030044.NuUjYOG1-lkp@intel.com>
Date:   Mon, 3 Oct 2022 00:52:13 +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/zorro/zorro-driver.c:158: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:   75b46b72e13aa3b904572a0a9511f14709eac779
commit: c3b2b3fa96a9536c18ab7f2663e62b1a971eab64 [15/18] driver core: make struct bus_type.uevent() take a const *
config: m68k-randconfig-r025-20221002
compiler: m68k-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=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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash drivers/

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/zorro/zorro-driver.c:158: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]
     158 |         .uevent         = zorro_uevent,
         |                           ^~~~~~~~~~~~
   drivers/zorro/zorro-driver.c:158:27: note: (near initialization for 'zorro_bus_type.uevent')
   cc1: some warnings being treated as errors


vim +158 drivers/zorro/zorro-driver.c

^1da177e4c3f41 Linus Torvalds     2005-04-16  152  
^1da177e4c3f41 Linus Torvalds     2005-04-16  153  struct bus_type zorro_bus_type = {
^1da177e4c3f41 Linus Torvalds     2005-04-16  154  	.name		= "zorro",
83b7bce3d390f1 Geert Uytterhoeven 2013-10-16  155  	.dev_name	= "zorro",
87e715deb8e24b Dmitry Torokhov    2017-02-14  156  	.dev_groups	= zorro_device_attribute_groups,
b6a01e9bda69aa Russell King       2006-01-05  157  	.match		= zorro_bus_match,
bf54a2b3c0dbf7 Geert Uytterhoeven 2008-11-18 @158  	.uevent		= zorro_uevent,
b6a01e9bda69aa Russell King       2006-01-05  159  	.probe		= zorro_device_probe,
2f9b0b5e46f038 Geert Uytterhoeven 2007-11-18  160  	.remove		= zorro_device_remove,
^1da177e4c3f41 Linus Torvalds     2005-04-16  161  };
d996e9dc453a5f Jim Rotmalm        2011-07-17  162  EXPORT_SYMBOL(zorro_bus_type);
^1da177e4c3f41 Linus Torvalds     2005-04-16  163  
^1da177e4c3f41 Linus Torvalds     2005-04-16  164  

:::::: The code at line 158 was first introduced by commit
:::::: bf54a2b3c0dbf76136f00ff785bf6d8f6291311d m68k: amiga - Zorro bus modalias support

:::::: TO: Geert Uytterhoeven <geert@...ux-m68k.org>
:::::: CC: Geert Uytterhoeven <geert@...ux-m68k.org>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ