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=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by gnuweeb.org (Postfix) with ESMTPS id 9F7B280932 for ; Sun, 14 Aug 2022 01:54:40 +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=ZFAGrfSf; 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=1660442080; x=1691978080; h=date:from:to:cc:subject:message-id:mime-version; bh=W6MBtWKO8tMPHF/oumnvXqnlJO5Gd5TzgHu3Kmhb8J4=; b=ZFAGrfSfHy+818orCVwS72obeTyhUuEqdUZleYY987j0DQn/AbdylxSW PJZc3w3tjS5BidjncNEFCSF9653qoq1vvfuZZwxp3ZIADzjt0qq9egSNO GWMPPJBJcGVaIa6q0UEPSFZwPQ8F+MfNFcC7Mrt72PtnqtZTCfk8nCKuh nh5G7WvHIInqMWWLhLtBi53m4oUzVWkgs3EsYnN5llgMeRGXBRJUk3voo zFSuyuD2RYONVnL7Icv8EI9E3jnUTntkY88v7AxO101Rg/YYbM49xjY9L 6VxZ2TlaHi+LBQVeaADUwLLqH00MVQyULqbTV/Y4gUNxfIBLIRbrFasPt Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10437"; a="274844331" X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="274844331" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2022 18:54:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,236,1654585200"; d="scan'208";a="695624197" Received: from lkp-server02.sh.intel.com (HELO 8745164cafc7) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 13 Aug 2022 18:54:37 -0700 Received: from kbuild by 8745164cafc7 with local (Exim 4.96) (envelope-from ) id 1oN2pp-0002K7-0U; Sun, 14 Aug 2022 01:54:37 +0000 Date: Sun, 14 Aug 2022 09:54:10 +0800 From: kernel test robot To: Jens Axboe Cc: kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org, Sasha Levin Subject: [ammarfaizi2-block:stable/linux-stable-rc/queue/5.19 294/1034] io_uring/io_uring.c:3150:40: warning: variable 'prev' set but not used Message-ID: <202208140958.F7WLU1BS-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 stable/linux-stable-rc/queue/5.19 head: a93eab25d54766b1d89d7fa7dd315b3fc268d0b5 commit: a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f [294/1034] io_uring: move to separate directory config: x86_64-randconfig-a013 (https://download.01.org/0day-ci/archive/20220814/202208140958.F7WLU1BS-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-3) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.19 git checkout a1fd6af4b362b4f8ed0d7f5a78f0e8ff2f15d70f # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): io_uring/io_uring.c: In function '__io_submit_flush_completions': >> io_uring/io_uring.c:3150:40: warning: variable 'prev' set but not used [-Wunused-but-set-variable] 3150 | struct io_wq_work_node *node, *prev; | ^~~~ vim +/prev +3150 io_uring/io_uring.c 7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03 3146 c450178d9be9dc4 fs/io_uring.c Pavel Begunkov 2021-09-08 3147 static void __io_submit_flush_completions(struct io_ring_ctx *ctx) a141dd896f544df fs/io_uring.c Jens Axboe 2021-08-12 3148 __must_hold(&ctx->uring_lock) 905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10 3149 { 6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 @3150 struct io_wq_work_node *node, *prev; cd0ca2e048dc0dd fs/io_uring.c Pavel Begunkov 2021-08-09 3151 struct io_submit_state *state = &ctx->submit_state; 905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10 3152 3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10 3153 if (state->flush_cqes) { 79ebeaee8a21a00 fs/io_uring.c Jens Axboe 2021-08-10 3154 spin_lock(&ctx->completion_lock); 6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 3155 wq_list_for_each(node, prev, &state->compl_reqs) { 6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 3156 struct io_kiocb *req = container_of(node, struct io_kiocb, 6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 3157 comp_list); 5182ed2e332e8e1 fs/io_uring.c Pavel Begunkov 2021-06-26 3158 f43de1f88841d59 fs/io_uring.c Pavel Begunkov 2022-06-15 3159 if (!(req->flags & REQ_F_CQE_SKIP)) 91ef75a7db0d085 fs/io_uring.c Pavel Begunkov 2022-06-15 3160 __io_fill_cqe_req(ctx, req); 905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10 3161 } 3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10 3162 905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10 3163 io_commit_cqring(ctx); 79ebeaee8a21a00 fs/io_uring.c Jens Axboe 2021-08-10 3164 spin_unlock(&ctx->completion_lock); 905c172f32c56f0 fs/io_uring.c Pavel Begunkov 2021-02-10 3165 io_cqring_ev_posted(ctx); 3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10 3166 state->flush_cqes = false; 3d4aeb9f98058c3 fs/io_uring.c Pavel Begunkov 2021-11-10 3167 } 5182ed2e332e8e1 fs/io_uring.c Pavel Begunkov 2021-06-26 3168 1cce17aca621c38 fs/io_uring.c Pavel Begunkov 2021-09-24 3169 io_free_batch_list(ctx, state->compl_reqs.first); 6f33b0bc4ea43f5 fs/io_uring.c Pavel Begunkov 2021-09-24 3170 INIT_WQ_LIST(&state->compl_reqs); 7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03 3171 } 7a743e225b2a9da fs/io_uring.c Pavel Begunkov 2020-03-03 3172 :::::: The code at line 3150 was first introduced by commit :::::: 6f33b0bc4ea43f5c5ce7b7c9ab66051f80837862 io_uring: use slist for completion batching :::::: TO: Pavel Begunkov :::::: CC: Jens Axboe -- 0-DAY CI Kernel Test Service https://01.org/lkp