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: <202210021816.pMjecCDo-lkp@intel.com>
Date:   Sun, 2 Oct 2022 18:34: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 15/18] drivers/bus/mhi/ep/main.c:1580:19:
 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:   987a03146b7c09014c6878256fac24d4392ce68f
commit: fce24d2e367325f1f7357a12dcf7b0c09e744a5f [15/18] driver core: make struct bus_type.uevent() take a const *
config: ia64-allmodconfig
compiler: ia64-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=fce24d2e367325f1f7357a12dcf7b0c09e744a5f
        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 fce24d2e367325f1f7357a12dcf7b0c09e744a5f
        # 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=ia64 SHELL=/bin/bash drivers/bus/mhi/ep/

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/bus/mhi/ep/main.c:1580: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]
    1580 |         .uevent = mhi_ep_uevent,
         |                   ^~~~~~~~~~~~~
   drivers/bus/mhi/ep/main.c:1580:19: note: (near initialization for 'mhi_ep_bus_type.uevent')
   {standard input}: Assembler messages:
   {standard input}:1289: Error: Register number out of range 0..4
   {standard input}:1290: Error: Register number out of range 0..4
   {standard input}:1290: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 56
   {standard input}:1290: Warning: Only the first path encountering the conflict is reported
   {standard input}:1289: Warning: This is the location of the conflicting usage
   {standard input}:1294: Error: Register number out of range 0..4
   {standard input}:4128: Error: Register number out of range 0..4
   {standard input}:4129: Error: Register number out of range 0..4
   {standard input}:4129: Warning: Use of 'mov' violates WAW dependency 'GR%, % in 1 - 127' (impliedf), specific resource number is 59
   {standard input}:4129: Warning: Only the first path encountering the conflict is reported
   {standard input}:4128: Warning: This is the location of the conflicting usage
   {standard input}:4133: Error: Register number out of range 0..4
   cc1: some warnings being treated as errors


vim +1580 drivers/bus/mhi/ep/main.c

d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1575  
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1576  struct bus_type mhi_ep_bus_type = {
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1577  	.name = "mhi_ep",
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1578  	.dev_name = "mhi_ep",
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1579  	.match = mhi_ep_match,
c268c0a8a33047 Manivannan Sadhasivam 2022-04-05 @1580  	.uevent = mhi_ep_uevent,
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1581  };
d434743e5cac35 Manivannan Sadhasivam 2022-04-05  1582  

:::::: The code at line 1580 was first introduced by commit
:::::: c268c0a8a33047cd957fecc1349d09a68eb6ad9e bus: mhi: ep: Add uevent support for module autoloading

:::::: TO: Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>
:::::: CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ