From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gnuweeb.org (Postfix) with ESMTPS id D3C5E7E7EE for ; Sun, 8 May 2022 21:42:33 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DPxmaHcz; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652046153; x=1683582153; h=date:from:to:cc:subject:message-id:mime-version; bh=gAfLF8CFVZ/vW71EH8Bx4/JhmuMGckhfC5tTLQ3bB00=; b=DPxmaHczZGw/Szydh5BnUi+DrrKHj+OH9hnMi5xg2aawX8CgPetXWG0G 3aZTFtleazkvsPVzo09UIihyPPnE3Ugwo7BhyJseIP8sdAxP1YIQxoC/g 0qpC7qakGr3HD6LtTj+5/QlZuAl+deofjhsMWqZaTWmdSoQXM++nxpYx+ spdfqp7peMbXbLn1NdIIvg/1IaG8D9AryNa4S7RnYRtfXRGRW1xDXKbga /Z8908Jy7NrAhOyY8hm9nh2lMI0kNortqA3/nYxV4NpKYsyIo/02U+S/O +oJJdIjfIR8dMbMBu5aMrTUHb87EpyQAYxVo1DyavoOd7xc602EHq7g1l A==; X-IronPort-AV: E=McAfee;i="6400,9594,10341"; a="248787567" X-IronPort-AV: E=Sophos;i="5.91,210,1647327600"; d="scan'208";a="248787567" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2022 14:42:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,210,1647327600"; d="scan'208";a="539528989" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 08 May 2022 14:42:30 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nnofd-000FrT-Na; Sun, 08 May 2022 21:42:29 +0000 Date: Mon, 9 May 2022 05:41:58 +0800 From: kernel test robot To: Jens Axboe Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:axboe/linux-block/fastpoll-mshot 97/98] fs/io_uring.c:4743:11: warning: variable 'ret' is uninitialized when used here Message-ID: <202205090529.AQs5GOej-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block axboe/linux-block/fastpoll-mshot head: 883f288d64ca56518398dfa59bbdbfae1215ec03 commit: 8e0d731f259198aac32de79f7059d34b94fc0fb3 [97/98] io_uring: allow allocated fixed files for openat/openat2 config: riscv-buildonly-randconfig-r005-20220508 (https://download.01.org/0day-ci/archive/20220509/202205090529.AQs5GOej-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a385645b470e2d3a1534aae618ea56b31177639f) 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 riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/ammarfaizi2/linux-block/commit/8e0d731f259198aac32de79f7059d34b94fc0fb3 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block axboe/linux-block/fastpoll-mshot git checkout 8e0d731f259198aac32de79f7059d34b94fc0fb3 # 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=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> fs/io_uring.c:4743:11: warning: variable 'ret' is uninitialized when used here [-Wuninitialized] return ret; ^~~ fs/io_uring.c:4736:9: note: initialize the variable 'ret' to silence this warning int ret; ^ = 0 fs/io_uring.c:6174:2: error: call to undeclared function '__io_poll_clean'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] __io_poll_clean(req); ^ fs/io_uring.c:6174:2: note: did you mean '__io_fill_cqe'? fs/io_uring.c:2166:20: note: '__io_fill_cqe' declared here static inline bool __io_fill_cqe(struct io_ring_ctx *ctx, u64 user_data, ^ 1 warning and 1 error generated. vim +/ret +4743 fs/io_uring.c 4730 4731 static int io_fixed_file_install(struct io_kiocb *req, unsigned int issue_flags, 4732 struct file *file, unsigned int file_slot) 4733 { 4734 int alloc_slot = file_slot == UINT_MAX; 4735 struct io_ring_ctx *ctx = req->ctx; 4736 int ret; 4737 4738 if (alloc_slot) { 4739 io_ring_submit_lock(ctx, issue_flags); 4740 file_slot = io_file_bitmap_get(ctx); 4741 if (unlikely(file_slot < 0)) { 4742 io_ring_submit_unlock(ctx, issue_flags); > 4743 return ret; 4744 } 4745 } 4746 4747 ret = io_install_fixed_file(req, file, issue_flags, file_slot); 4748 if (alloc_slot) { 4749 io_ring_submit_unlock(ctx, issue_flags); 4750 return file_slot; 4751 } 4752 4753 return ret; 4754 } 4755 -- 0-DAY CI Kernel Test Service https://01.org/lkp