From patchwork Tue Jan 22 18:24:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10776011 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA5A66C2 for ; Tue, 22 Jan 2019 18:24:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7FD92B561 for ; Tue, 22 Jan 2019 18:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C3D62B944; Tue, 22 Jan 2019 18:24:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 484162B561 for ; Tue, 22 Jan 2019 18:24:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726166AbfAVSYp (ORCPT ); Tue, 22 Jan 2019 13:24:45 -0500 Received: from out002.mailprotect.be ([83.217.72.86]:41283 "EHLO out002.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbfAVSYo (ORCPT ); Tue, 22 Jan 2019 13:24:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=uzvp93pn2UQTuifj/7u9/b1Xuq8bO4g2KmVLQWvhGl4=; b=XAs7a7G+Q3Ml Tkaz0I8pL5O6dWCBdITlwM0IpA3YXC4VyfmgIrMH4iqiVkHGSYN47NY+VlJh9Fwj/4RLh3nonZedr rva1Krvd1gdT4Lyvv7p4mOgT0XuqF7ZUVWnOk3IN5aSu9GnMnq82QVr6jQo0C04KTCC5qeSLiJjK1 pqDXZK2yCg0D1v66NFNOh6GF83jdezmLtMkNqd1+tfArBujb8pYF2VTD4rL5qHObT9hYj2BgiJPAk PjIj02duln7ZoU4w6nbLHW6lsrnl1jMHUU9nbh7UTnW/6SUtY/qMc9ecvqyET5dZGPnlDLXaWZH7d XVkkpnKxFic6yqHpOR2X5w==; Received: from smtp-auth.mailprotect.be ([178.208.39.155]) by com-mpt-out002.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gm0j1-0001O7-3K; Tue, 22 Jan 2019 19:24:39 +0100 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id C6E71C0575; Tue, 22 Jan 2019 19:24:28 +0100 (CET) From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Jason Gunthorpe , Leon Romanovsky Subject: [PATCH] IB/core: Declare local functions 'static' Date: Tue, 22 Jan 2019 10:24:23 -0800 Message-Id: <20190122182423.59313-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.155 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.04) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpne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uJgAFHDO1LA3rllvVAfaoz9P82wWVbjHO/cpJpsYlvFhM9OFv+pmyo5 sRDJ3Ba4degLD9XCJ1j3Qs4VUPN7CTHyu+z6MAWK52wAXqk3taVJ+IE= X-Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch avoids that sparse complains about missing function declarations. Cc: Jason Gunthorpe Cc: Leon Romanovsky Cc: Doug Ledford Fixes: f27a0d50a4bc ("RDMA/umem: Use umem->owning_mm inside ODP") # v4.20 Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky --- drivers/infiniband/core/umem_odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/core/umem_odp.c b/drivers/infiniband/core/umem_odp.c index a4ec43093cb3..dc1d7cb15cfa 100644 --- a/drivers/infiniband/core/umem_odp.c +++ b/drivers/infiniband/core/umem_odp.c @@ -299,7 +299,7 @@ static void free_per_mm(struct rcu_head *rcu) kfree(container_of(rcu, struct ib_ucontext_per_mm, rcu)); } -void put_per_mm(struct ib_umem_odp *umem_odp) +static void put_per_mm(struct ib_umem_odp *umem_odp) { struct ib_ucontext_per_mm *per_mm = umem_odp->per_mm; struct ib_ucontext *ctx = umem_odp->umem.context;