tree:
https://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git
ceph-fscache-iter
head: dd30af9185f80cb37a460728ceea2c26464176b5
commit: dd30af9185f80cb37a460728ceea2c26464176b5 [13/13] ceph: add new allocator for
combined fsc/osd request
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
3393cc4cebf9969db94dc424b7a2b6195589c33b)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout dd30af9185f80cb37a460728ceea2c26464176b5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
> fs/ceph/util.c:258:2: warning: variable 'req' is
uninitialized when used here [-Wuninitialized]
req->r_free = free_fsc_req;
^~~
fs/ceph/util.c:252:31: note: initialize the variable 'req' to silence this
warning
struct ceph_osd_request *req;
^
= NULL
1 warning generated.
vim +/req +258 fs/ceph/util.c
235
236 /*
237 * Allocate an OSD request with an embedded fscache request.
238 */
239 struct ceph_fsc_request *ceph_fsc_new_request(struct ceph_osd_client *osdc,
240 struct ceph_file_layout *layout,
241 struct ceph_vino vino,
242 u64 off, u64 *plen,
243 unsigned int which, int num_ops,
244 int opcode, int flags,
245 struct ceph_snap_context *snapc,
246 u32 truncate_seq,
247 u64 truncate_size,
248 bool use_mempool)
249 {
250 int ret;
251 struct ceph_fsc_request *fscreq;
252 struct ceph_osd_request *req;
253
254 fscreq = kzalloc(struct_size(fscreq, osd_req.r_ops, num_ops), GFP_NOFS);
255 if (!fscreq)
256 return ERR_PTR(-ENOMEM);
257
258 req->r_free = free_fsc_req;
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org