Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1430611pxb; Mon, 11 Oct 2021 05:59:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwupoYAvddmmH+uJTqd2HpONZ54PkQ8Pq4pGNZ3/W85Sqab+IpiEdo0kk/PtWI79pnKLREb X-Received: by 2002:a50:d98a:: with SMTP id w10mr41568525edj.120.1633957159534; Mon, 11 Oct 2021 05:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633957159; cv=none; d=google.com; s=arc-20160816; b=rGtrgsr7wg8z2QOL34+OMc82ElO2U6CxeD5F5327HZrd5D9J56KZDyAfLqePNpc4G8 NTHvpIilkAsw7bxksdvGJU6DQYRU9JGz6iUXbhtYUsQc73cbJdmDr/2bDsM7MYrmRw3b ZbB2OFg5/fTpfNu5+IBEyAAS9k4kHjbD1nxG/8e/EfNg/L1WPZBufowNzGr9SCvCBCIB F320f0sr7/oTLn3jVR44j02wp9daGu4JiV672BSIb/iBWvFnVr8GRBSsyrSRqOPdV4kA bKgbYDsYOOAWSTuPKaqcJBlXEOSTQghGkTaegXy5V970l4eDdEWFZv2VRaDnPDzYpRrO Lv2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=bB6fj532wb+JO4nJ5BLn022sxf/qsNnxe1VlevforV4=; b=mMpvg6syBAwjTfRR5qc/KsQ1QQ6itUHtXUQppOaFYxJZPWeh5jFUbL9EBHUYYONbRD W0TM+u74mBDomXrr1/UGUDNaH4vWmfdrPq9BdUm8Gd20a6pfXj4HAi4NNwjFryET7U4v JKkJvgetOjXeCb/IIE2ipn5p0lLA1ygXKBQD9sUPPbdFlIdtC0sLbd2LjTCvlaQ9HFly HXhh/AyyZCSHPL7S5QD5tGEOR04MGl4vOy08mxGVvrcPyLLYTh5Oudln/D5inWVbXvqf GQIUe00E878QVVy1rVt/VGKZY9FxJAs0Vg8iATMZQxiCXnXtGoxfqY++vfp1teQXUiD3 +O1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=UsCdKQ9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gn30si12529970ejc.378.2021.10.11.05.58.55; Mon, 11 Oct 2021 05:59:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=UsCdKQ9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ionos.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235353AbhJKJBE (ORCPT + 99 others); Mon, 11 Oct 2021 05:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235182AbhJKJBD (ORCPT ); Mon, 11 Oct 2021 05:01:03 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FFCAC061570 for ; Mon, 11 Oct 2021 01:59:03 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id e12so53733257wra.4 for ; Mon, 11 Oct 2021 01:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bB6fj532wb+JO4nJ5BLn022sxf/qsNnxe1VlevforV4=; b=UsCdKQ9WMdeDfS/GLg+f8Mehv+uNFDorbyhYkzfi89yfitonIgNdXi+q5x9lGKzha2 9p341Xn6t3ZR3x/PuKyq8iJUA+kmNJfl1AbaRJ3USGm8CpPl/k/nn0hsxTHaORrafeFk p7V+yd7el3144oP+z9C9tIBhn5RompqwYIeLC/CQKKxlX2uaSGddkhcPh84ebAeTPGJz OeaGTB4VELcko6/Pztw1fCNEvZw591Z89HM7SOy78uWMJzGr2JeYoGhQg8QnCua1J6fp Er1eiPvqJY3SCLx4Ih3GcF5KxIfX4GldEjrQDn0WZ8El4/JdJvJyJLpsigyBM11YNWDX F7eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bB6fj532wb+JO4nJ5BLn022sxf/qsNnxe1VlevforV4=; b=MmlZm/Gud1+KkPK+g6P8xmitHWlMVJTu3WvRMwM67y7j1ghX34HljPyCPgxhDQ6d5q 0xYF1cr3r/XtNUybdGhBq36XnmX49kh0g+GP+MBxGmxmwKsbpKTledPw+30m3TrWMPJo C16wdz1nQyw/p6g2FhYTEwhyNfxjoxVveugZvzA1LdJBHg7XhmQ+BW7dasOso0QPPH/L P7nILmr6VT/1Isb0UFTNcJ9w41yn4rFGEuq7OcqpKhFngmoxiXUkhSchhslnP5Oee1lo eE0Y/ZWAPiY2rN3puB0TP3fTyxeEcsiYU+fXW6vQ4QR2BSVmV6zJpfh6/OXgEjEQqVQR SNvA== X-Gm-Message-State: AOAM532e/ZSNF+BCKr2UXSKeCvlJtw3Gh6EE926oLiSiQ24qpXkt10Dp /GlWZnOw0U+Zvk1DUnUb2FL3DNhF1i48aTanV3h+lA== X-Received: by 2002:a05:600c:4f48:: with SMTP id m8mr12150106wmq.5.1633942742048; Mon, 11 Oct 2021 01:59:02 -0700 (PDT) MIME-Version: 1.0 References: <202110082349.Bb8M3OPU-lkp@intel.com> In-Reply-To: <202110082349.Bb8M3OPU-lkp@intel.com> From: Gioh Kim Date: Mon, 11 Oct 2021 10:58:26 +0200 Message-ID: Subject: Re: [axboe-block:perf-wip 13/20] drivers/block/rnbd/rnbd-clt.c:1226:27: error: initialization of 'int (*)(struct blk_mq_hw_ctx *, struct io_batch *)' from incompatible pointer type 'int (*)(struct blk_mq_hw_ctx *)' To: Jens Axboe , Jinpu Wang Cc: LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 8, 2021 at 5:14 PM kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git perf-wip > head: ba7751cd7411b7aaffd07728bd7cd6eeb890865d > commit: c5b891d342f43c8e486be3aeacd5ee61298d3561 [13/20] block: add a struct io_batch argument to fops->iopoll() > config: h8300-randconfig-r004-20211008 (attached as .config) > compiler: h8300-linux-gcc (GCC) 11.2.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/axboe/linux-block.git/commit/?id=c5b891d342f43c8e486be3aeacd5ee61298d3561 > git remote add axboe-block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git > git fetch --no-tags axboe-block perf-wip > git checkout c5b891d342f43c8e486be3aeacd5ee61298d3561 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=h8300 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > >> drivers/block/rnbd/rnbd-clt.c:1226:27: error: initialization of 'int (*)(struct blk_mq_hw_ctx *, struct io_batch *)' from incompatible pointer type 'int (*)(struct blk_mq_hw_ctx *)' [-Werror=incompatible-pointer-types] > 1226 | .poll = rnbd_rdma_poll, > | ^~~~~~~~~~~~~~ > drivers/block/rnbd/rnbd-clt.c:1226:27: note: (near initialization for 'rnbd_mq_ops.poll') > cc1: some warnings being treated as errors > -- > >> drivers/nvme/host/tcp.c:2457:27: error: initialization of 'int (*)(struct blk_mq_hw_ctx *, struct io_batch *)' from incompatible pointer type 'int (*)(struct blk_mq_hw_ctx *)' [-Werror=incompatible-pointer-types] > 2457 | .poll = nvme_tcp_poll, > | ^~~~~~~~~~~~~ > drivers/nvme/host/tcp.c:2457:27: note: (near initialization for 'nvme_tcp_mq_ops.poll') > cc1: some warnings being treated as errors > > > vim +1226 drivers/block/rnbd/rnbd-clt.c > > 2958a995edc946 Gioh Kim 2021-04-19 1221 > f7a7a5c228d45e Jack Wang 2020-05-11 1222 static struct blk_mq_ops rnbd_mq_ops = { > f7a7a5c228d45e Jack Wang 2020-05-11 1223 .queue_rq = rnbd_queue_rq, > f7a7a5c228d45e Jack Wang 2020-05-11 1224 .complete = rnbd_softirq_done_fn, > 2958a995edc946 Gioh Kim 2021-04-19 1225 .map_queues = rnbd_rdma_map_queues, > 2958a995edc946 Gioh Kim 2021-04-19 @1226 .poll = rnbd_rdma_poll, > f7a7a5c228d45e Jack Wang 2020-05-11 1227 }; > f7a7a5c228d45e Jack Wang 2020-05-11 1228 > > :::::: The code at line 1226 was first introduced by commit > :::::: 2958a995edc94654df690318df7b9b49e5a3ef88 block/rnbd-clt: Support polling mode for IO latency optimization > > :::::: TO: Gioh Kim > :::::: CC: Jens Axboe > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Hi Jens, Regarding the warning email from the Kernel test robot as above, you might be able to fix it with the patch below. The ib parameter is not used in rnbd_rdma_poll and it could generate an unused variable warning when compiling it. I think you could handle it as you fix other source code. ----------------------------------------------------- 8< ----------------------------------------------- diff --git a/rnbd/rnbd-clt.c b/rnbd/rnbd-clt.c index ea59999..be47f2f 100644 --- a/rnbd/rnbd-clt.c +++ b/rnbd/rnbd-clt.c @@ -1181,7 +1181,7 @@ static blk_status_t rnbd_queue_rq(struct blk_mq_hw_ctx *hctx, return ret; } -static int rnbd_rdma_poll(struct blk_mq_hw_ctx *hctx) +static int rnbd_rdma_poll(struct blk_mq_hw_ctx *hctx, struct io_batch *ib) { struct rnbd_queue *q = hctx->driver_data; struct rnbd_clt_dev *dev = q->dev;