[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210041439.GQQfaK8J-lkp@intel.com>
Date: Tue, 4 Oct 2022 14:49:51 +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/firmware/arm_ffa/bus.c:97: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: 9f03f357aab62f25e828feb0be7423fff02b2764
commit: 794bcdced821ac77ed4a517b6038baae03d553ea [15/18] driver core: make struct bus_type.uevent() take a const *
config: arm64-buildonly-randconfig-r002-20221003
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=794bcdced821ac77ed4a517b6038baae03d553ea
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 794bcdced821ac77ed4a517b6038baae03d553ea
# 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=arm64 SHELL=/bin/bash
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/firmware/arm_ffa/bus.c:97: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 = ffa_device_uevent,
^~~~~~~~~~~~~~~~~
1 error generated.
vim +97 drivers/firmware/arm_ffa/bus.c
e781858488b918 Sudeep Holla 2021-05-21 91
e781858488b918 Sudeep Holla 2021-05-21 92 struct bus_type ffa_bus_type = {
e781858488b918 Sudeep Holla 2021-05-21 93 .name = "arm_ffa",
e781858488b918 Sudeep Holla 2021-05-21 94 .match = ffa_device_match,
e781858488b918 Sudeep Holla 2021-05-21 95 .probe = ffa_device_probe,
244f5d597e1ea5 Sudeep Holla 2021-09-24 96 .remove = ffa_device_remove,
e781858488b918 Sudeep Holla 2021-05-21 @97 .uevent = ffa_device_uevent,
e781858488b918 Sudeep Holla 2021-05-21 98 .dev_groups = ffa_device_attributes_groups,
e781858488b918 Sudeep Holla 2021-05-21 99 };
e781858488b918 Sudeep Holla 2021-05-21 100 EXPORT_SYMBOL_GPL(ffa_bus_type);
e781858488b918 Sudeep Holla 2021-05-21 101
:::::: The code at line 97 was first introduced by commit
:::::: e781858488b918e30a6ff28e9eab6058b787e3b3 firmware: arm_ffa: Add initial FFA bus support for device enumeration
:::::: TO: Sudeep Holla <sudeep.holla@....com>
:::::: CC: Sudeep Holla <sudeep.holla@....com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (191551 bytes)
Powered by blists - more mailing lists