[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210131756.WLh8WSnE-lkp@intel.com>
Date: Thu, 13 Oct 2022 21:48:46 +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 17/18] drivers/bus/mips_cdmm.c:125:13:
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: ff8f3cb3d96a18f33eb312fdbcac9a06d9261e66
commit: f62b54d12abbc85d4b7d622fe7286167cc01fa52 [17/18] driver core: make struct bus_type.uevent() take a const *
config: mips-randconfig-r016-20221012
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=f62b54d12abbc85d4b7d622fe7286167cc01fa52
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 f62b54d12abbc85d4b7d622fe7286167cc01fa52
# 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=mips 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/bus/mips_cdmm.c:125:13: 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 = mips_cdmm_uevent,
^~~~~~~~~~~~~~~~
1 error generated.
vim +125 drivers/bus/mips_cdmm.c
8286ae03308c6f James Hogan 2015-03-25 120
8286ae03308c6f James Hogan 2015-03-25 121 struct bus_type mips_cdmm_bustype = {
8286ae03308c6f James Hogan 2015-03-25 122 .name = "cdmm",
8286ae03308c6f James Hogan 2015-03-25 123 .dev_groups = mips_cdmm_dev_groups,
8286ae03308c6f James Hogan 2015-03-25 124 .match = mips_cdmm_match,
8286ae03308c6f James Hogan 2015-03-25 @125 .uevent = mips_cdmm_uevent,
8286ae03308c6f James Hogan 2015-03-25 126 };
8286ae03308c6f James Hogan 2015-03-25 127 EXPORT_SYMBOL_GPL(mips_cdmm_bustype);
8286ae03308c6f James Hogan 2015-03-25 128
:::::: The code at line 125 was first introduced by commit
:::::: 8286ae03308c6f97f346f9f8cb9174b04969add5 MIPS: Add CDMM bus support
:::::: TO: James Hogan <james.hogan@...tec.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.org>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (156181 bytes)
Powered by blists - more mailing lists