[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203190851.4BjZDePa-lkp@intel.com>
Date: Sat, 19 Mar 2022 08:44:12 +0800
From: kernel test robot <lkp@...el.com>
To: Jeff Layton <jlayton@...nel.org>
Cc: llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
linux-kernel@...r.kernel.org
Subject: [jlayton:ceph-sparse-read 14/15] net/ceph/osd_client.c:5847:30:
error: initializing 'struct ceph_sparse_extent *' with an expression of
incompatible type 'struct ceph_sparse_extent'; take the address with &
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git ceph-sparse-read
head: dd42d5af0df78fdd04a5a93c0488211435bd32e6
commit: 555a255575736e3b39f6b2c70574422439b765b6 [14/15] libceph: add sparse read support to OSD client
config: arm64-randconfig-r034-20220317 (https://download.01.org/0day-ci/archive/20220319/202203190851.4BjZDePa-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6e70e4056dff962ec634c5bd4f2f4105a0bef71)
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/jlayton/linux.git/commit/?id=555a255575736e3b39f6b2c70574422439b765b6
git remote add jlayton https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
git fetch --no-tags jlayton ceph-sparse-read
git checkout 555a255575736e3b39f6b2c70574422439b765b6
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash net/ceph/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> net/ceph/osd_client.c:5847:30: error: initializing 'struct ceph_sparse_extent *' with an expression of incompatible type 'struct ceph_sparse_extent'; take the address with &
struct ceph_sparse_extent *ext = sr->sr_extent[i];
^ ~~~~~~~~~~~~~~~~
&
1 error generated.
vim +5847 net/ceph/osd_client.c
5840
5841 #ifdef __BIG_ENDIAN
5842 static inline void convert_extent_map(struct ceph_sparse_read *sr)
5843 {
5844 int i;
5845
5846 for (i = 0; i < sr->sr_count; i++) {
> 5847 struct ceph_sparse_extent *ext = sr->sr_extent[i];
5848
5849 ext->off = le64_to_cpu((__force __le32)ext->off);
5850 ext->len = le64_to_cpu((__force __le32)ext->len);
5851 }
5852 }
5853 #else
5854 static inline void convert_extent_map(struct ceph_sparse_read *sr)
5855 {
5856 }
5857 #endif
5858
---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists