[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202209290329.zdoEjASM-lkp@intel.com>
Date: Thu, 29 Sep 2022 04:07:04 +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 7/8]
drivers/dma-buf/dma-buf-sysfs-stats.c:141:19: error: initialization of 'int
(*)(const struct kobject *)' from incompatible pointer 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: s390-allmodconfig
compiler: s390-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=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=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=s390 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/dma-buf/dma-buf-sysfs-stats.c:141:19: error: initialization of 'int (*)(const struct kobject *)' from incompatible pointer type 'int (*)(struct kobject *)' [-Werror=incompatible-pointer-types]
141 | .filter = dmabuf_sysfs_uevent_filter,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/dma-buf/dma-buf-sysfs-stats.c:141:19: note: (near initialization for 'dmabuf_sysfs_no_uevent_ops.filter')
cc1: some warnings being treated as errors
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" (119701 bytes)
Powered by blists - more mailing lists