Received: by 10.192.165.148 with SMTP id m20csp1288257imm; Thu, 10 May 2018 08:24:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoNwPtD3m/aWu0Cc5yO2rkiTuhWZRwAIFl4Fl5/7GRY0jUoPt7eGke8jN4shiMnNyDenjeG X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr1835467plk.172.1525965877515; Thu, 10 May 2018 08:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525965877; cv=none; d=google.com; s=arc-20160816; b=Q+jp/EyjH9E5ps0KxS5YOyRqhl932sWPb35IAp1YNO9N1nCg5lXhGQqc3o7zPUAp9k W0iKBcIZzNCncwPuGnF59znhHFEul/pABy10nZXUR0Px0uTsfyYlOJgzKY+E6AFKLZDp Ycezvcvzk5Lu/A0wkK0yMXAqIdbgX/eAf07xhIcr2BxvkPy6VTjLBj8a8JJFJUjD+B8v sMSP63DG7srBhnYVKnHmwVPFssLsZYtw7U6bK6y09FlES+dTWbYWECWvpam6B34ovvVh Uzbdutp/ca10079VbMPJ058Qfb9qf5yH+E6uS2C0zDoJo5WkHHvgLB2JuNkw2YSetI4C Nqpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=khKyEjNw2iD4ZyP8mzIZNJrB7RZHBY43+FSKNeM8KNI=; b=ZI45VD4v7RJTkmez3tPh476XIx/7FpFJVLtXqBWOQYjM7lqL0gIVGFe8sAEUF3SSP0 cJIyH//n4q992+v0ASRw6atFi4d2S1MkZO6q2tsVH5wV5NY550aYJAILrsN8yQ/silf9 euWFbUyC8a1vFbk3E6uucvdMAi2CAj3W/Kt84hQDtqJrANiW8MtFxrRL8VbgD20gD7Ap 5T88VpX1yNoPc16k2DUA/awShynKQBIfNXzsStUShkPz9dU+4AD2BcIkGk5oJwXDCq8y oKoX9IzMf+6hyCpceltTgjftvHFotTnqU5TeM2nQI43gXOkZl0p4EazG8+xBHI7EByb9 LoOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125-v6si845488pgc.118.2018.05.10.08.24.22; Thu, 10 May 2018 08:24:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966195AbeEJPYM (ORCPT + 99 others); Thu, 10 May 2018 11:24:12 -0400 Received: from fieldses.org ([173.255.197.46]:55064 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964827AbeEJPYK (ORCPT ); Thu, 10 May 2018 11:24:10 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 83D2C2474; Thu, 10 May 2018 11:24:10 -0400 (EDT) Date: Thu, 10 May 2018 11:24:10 -0400 From: Bruce Fields To: Chuck Lever Cc: Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: build warning after merge of the nfsd tree Message-ID: <20180510152410.GB29678@fieldses.org> References: <20180510104213.31c41377@canb.auug.org.au> <4A03C3E8-6DBA-4FDA-A5C3-46D9E678FC02@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A03C3E8-6DBA-4FDA-A5C3-46D9E678FC02@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 10, 2018 at 10:21:05AM -0400, Chuck Lever wrote: > > > > On May 9, 2018, at 8:42 PM, Stephen Rothwell wrote: > > > > Hi all, > > > > After merging the nfsd tree, today's linux-next build (powerpc > > ppc64_defconfig) produced this warning: > > > > net/sunrpc/xprtrdma/svc_rdma_transport.c: In function 'rdma_listen_handler': > > net/sunrpc/xprtrdma/svc_rdma_transport.c:299:23: warning: unused variable 'rdma' [-Wunused-variable] > > struct svcxprt_rdma *rdma = cma_id->context; > > ^~~~ > > Needs to be wrapped with "#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)" > Would you like me to send a patch? Any objection to saving the #if and just going back to writing out cma_id->context there? I've done that in my tree. --b. diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c index ca9001d73456..05edb18f8ca3 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c @@ -544,7 +544,6 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id, struct rdma_cm_event *event) { struct sockaddr *sap = (struct sockaddr *)&cma_id->route.addr.src_addr; - struct svcxprt_rdma *rdma = cma_id->context; int ret = 0; trace_svcrdma_cm_event(event, sap); @@ -552,7 +551,7 @@ static int rdma_listen_handler(struct rdma_cm_id *cma_id, switch (event->event) { case RDMA_CM_EVENT_CONNECT_REQUEST: dprintk("svcrdma: Connect request on cma_id=%p, xprt = %p, " - "event = %s (%d)\n", cma_id, rdma, + "event = %s (%d)\n", cma_id, cma_id->context, rdma_event_msg(event->event), event->event); handle_connect_req(cma_id, &event->param.conn); break;