Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2021962pxb; Sun, 31 Oct 2021 06:10:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwW0hFq1DPmaph/nO+2Zjv2UWoLEHn4p29RI5tJ8VAUP3xLOEreQzc5yHzjoSKZ+szLpIQ X-Received: by 2002:a17:907:2d2b:: with SMTP id gs43mr27721999ejc.193.1635685812262; Sun, 31 Oct 2021 06:10:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635685812; cv=none; d=google.com; s=arc-20160816; b=LKvkadRAne9VH42iFxkK63W/KEKhb+siaf7K/DQUI8jbNZ160j5nfoOeEW+gnHtQbE wO09yf7/t0Lt6ZhIFkUGuD6rKs5vL53NQJ4dX42g9MnqptaQ5k5mqIlNuLZ5XvlTvU8c Dl0xpspqsuNoI58+Z6CJuXf91ObP86I/QiuB38ZwLQBhwAXe6bskj0H8OL6xhKerknOP rqSTbDOx6+nffeNoll361x6fXBnZVMgRcyYBclQjcpygyDYt2J3LyMXr2qQ7eV8UWnln tCBoUYB66VchCj1ghVMFrLFtXcSFkbp6U+017DUsl/74mOMtyyGu6v15wQkfQwg5OEBL jcTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=N1hB3q5ZK6TAb5+gzewq1/cgbItPGI6imLRgoRpCUI8=; b=e1IHTKMv9vxWfBPe1rN6yV4XgGBTNY4e3cNMS0S3q6vbGFicR0/HqIn2/g8KSF8/dL +rdpROOaiPkT/zOeZrIqZ5KaPMe0PAcl8Gz9ZdfgH2QjiCE63raMjQ1tRtxT1VgXBY2F gypka/9QQyvUvpA4T7K/SrPV0po/7bYH4500/EtG5qQ2eH+3oNmiz17v0VKD10bbj5nP uoMwql897SyKYvpvLarVjUCkTGd+6NApAoXqxPQZXbklicgZeC7Hf53wSJuUnPynFb9y 0aG1ayFduwVXugsmZqyQkBvISeR7cZpJXQ5PbPNW1sPWdE4oOMhulSp6nMSB2zDCZ7gx fN+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=P79Ysk0h; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si25080764edb.350.2021.10.31.06.09.33; Sun, 31 Oct 2021 06:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-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=@redhat.com header.s=mimecast20190719 header.b=P79Ysk0h; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbhJaNL1 (ORCPT + 99 others); Sun, 31 Oct 2021 09:11:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36940 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230219AbhJaNL0 (ORCPT ); Sun, 31 Oct 2021 09:11:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635685734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=N1hB3q5ZK6TAb5+gzewq1/cgbItPGI6imLRgoRpCUI8=; b=P79Ysk0hRRY9J1PnEn+YuxPTR3ub2D1o+2dLZfYq0dNrZdXdqhwu0eco+iXgWNvCHD4pSm HVxaca3rag7v9eKjMy+LWrbfdoucb4bba+gj0c7X2nTF+1H1Mu4uWBb0kro1gl8jWjomUd L/1Z4lgwNVyhxGfxougzUV+BqLVrKpk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-597-YBjYJgJAPX-5pBLJ0EyppQ-1; Sun, 31 Oct 2021 09:08:50 -0400 X-MC-Unique: YBjYJgJAPX-5pBLJ0EyppQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D4168104ED1A; Sun, 31 Oct 2021 13:08:49 +0000 (UTC) Received: from bcodding.csb (ovpn-64-2.rdu2.redhat.com [10.10.64.2]) by smtp.corp.redhat.com (Postfix) with ESMTP id A497A5F4E1; Sun, 31 Oct 2021 13:08:49 +0000 (UTC) Received: by bcodding.csb (Postfix, from userid 24008) id 3FD5710C30F0; Sun, 31 Oct 2021 09:08:49 -0400 (EDT) From: Benjamin Coddington To: anna.schumaker@netapp.com Cc: linux-nfs@vger.kernel.org Subject: [PATCH] xprtrdma: Fix a maybe-uninitialized compiler warning Date: Sun, 31 Oct 2021 09:08:49 -0400 Message-Id: <2b32d41cf6a502918a685447cd749c4b1cb0d16d.1635685588.git.bcodding@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org This minor fix-up keeps GCC from complaining that "last' may be used uninitialized", which breaks some build workflows that have been running with all warnings treated as errors. Signed-off-by: Benjamin Coddington --- net/sunrpc/xprtrdma/frwr_ops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sunrpc/xprtrdma/frwr_ops.c b/net/sunrpc/xprtrdma/frwr_ops.c index f700b34a5bfd..de813fa07daa 100644 --- a/net/sunrpc/xprtrdma/frwr_ops.c +++ b/net/sunrpc/xprtrdma/frwr_ops.c @@ -503,7 +503,7 @@ static void frwr_wc_localinv_wake(struct ib_cq *cq, struct ib_wc *wc) */ void frwr_unmap_sync(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req) { - struct ib_send_wr *first, **prev, *last; + struct ib_send_wr *first, **prev, *last = NULL; struct rpcrdma_ep *ep = r_xprt->rx_ep; const struct ib_send_wr *bad_wr; struct rpcrdma_mr *mr; @@ -608,7 +608,7 @@ static void frwr_wc_localinv_done(struct ib_cq *cq, struct ib_wc *wc) */ void frwr_unmap_async(struct rpcrdma_xprt *r_xprt, struct rpcrdma_req *req) { - struct ib_send_wr *first, *last, **prev; + struct ib_send_wr *first, *last = NULL, **prev; struct rpcrdma_ep *ep = r_xprt->rx_ep; struct rpcrdma_mr *mr; int rc; -- 2.31.1