[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209290758.RKIgZ9Pg-lkp@intel.com>
Date: Thu, 29 Sep 2022 07:12:13 +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 7/8]
drivers/dma-buf/dma-buf-sysfs-stats.c:141:12: error: incompatible function
pointer types initializing 'int (*const)(const struct kobject *)' with an
expression of type 'int (struct kobject *)'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git kobject-const
head: 58626cfaf471a3c20f2b07ad8132742d9b112927
commit: 0cc7120368ac00bbe2eb66ec2fd13d216bae770d [7/8] kobject: kset_uevent_ops: make fiter() callback take a const *
config: arm-randconfig-r036-20220926
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/commit/?id=0cc7120368ac00bbe2eb66ec2fd13d216bae770d
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 0cc7120368ac00bbe2eb66ec2fd13d216bae770d
# 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=arm SHELL=/bin/bash drivers/dma-buf/
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/dma-buf/dma-buf-sysfs-stats.c:141:12: error: incompatible function pointer types initializing 'int (*const)(const struct kobject *)' with an expression of type 'int (struct kobject *)' [-Wincompatible-function-pointer-types]
.filter = dmabuf_sysfs_uevent_filter,
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +141 drivers/dma-buf/dma-buf-sysfs-stats.c
bdb8d06dfefd66 Hridya Valsaraju 2021-06-03 139
bdb8d06dfefd66 Hridya Valsaraju 2021-06-03 140 static const struct kset_uevent_ops dmabuf_sysfs_no_uevent_ops = {
bdb8d06dfefd66 Hridya Valsaraju 2021-06-03 @141 .filter = dmabuf_sysfs_uevent_filter,
bdb8d06dfefd66 Hridya Valsaraju 2021-06-03 142 };
bdb8d06dfefd66 Hridya Valsaraju 2021-06-03 143
:::::: The code at line 141 was first introduced by commit
:::::: bdb8d06dfefd666d5981d884b535b04105869fcc dmabuf: Add the capability to expose DMA-BUF stats in sysfs
:::::: TO: Hridya Valsaraju <hridya@...gle.com>
:::::: CC: Daniel Vetter <daniel.vetter@...ll.ch>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (162655 bytes)
Powered by blists - more mailing lists