From patchwork Tue Jan 22 18:24:39 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: 10776013 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 33A66139A for ; Tue, 22 Jan 2019 18:24:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 228612B561 for ; Tue, 22 Jan 2019 18:24:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1680B2B944; Tue, 22 Jan 2019 18:24:57 +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 AE7002B561 for ; Tue, 22 Jan 2019 18:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726174AbfAVSY4 (ORCPT ); Tue, 22 Jan 2019 13:24:56 -0500 Received: from out002.mailprotect.be ([83.217.72.86]:42151 "EHLO out002.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbfAVSY4 (ORCPT ); Tue, 22 Jan 2019 13:24:56 -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=MBwIdEY9TSktrI0K/3n7rP2VaSazHJG+aCn605UkGw8=; b=AhWAjLDdnInE Q8mdB4pSsRMqnMCP+b4VoMbUw69RSUWACpkBlTBRMG5B8pTRE+pryz6agc1soS2FIIdSMMnupfHa3 ee52//4k+9QgXvYo9s1z66/GboxGYo06kCTFGi4Oz03aF2A+VMjcrdv9D5V1lnoWKn8FkZMbeMXpQ 7wWiFYJvNgaMAFdiTjFDjQuMimQ72zvlbEQ6KYQWI8ZBDNxgznKLp8J0gAzz/cGtGOY30yCVbysCy P19gAwX7rb2g9IQameRovTsR7TAc9nDNSrdKJSjTetPzksRrt6F3hQQ4/9if3uQQG4gfjOErfjzlg Cp19HVqvsh8dQlOZcwB35Q==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out002.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gm0jD-0001Rt-8i; Tue, 22 Jan 2019 19:24:51 +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 721C8C08FC; Tue, 22 Jan 2019 19:24:47 +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/mlx5: Declare local functions 'static' Date: Tue, 22 Jan 2019 10:24:39 -0800 Message-Id: <20190122182439.59398-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.159 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.05) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMx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A3rllvVAfaoz9P82wWVbjHO/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: c9990ab39b6e ("RDMA/umem: Move all the ODP related stuff out of ucontext and into per_mm") # v4.20 Signed-off-by: Bart Van Assche Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/odp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/mlx5/odp.c b/drivers/infiniband/hw/mlx5/odp.c index 8d46b1dc5658..59c7012e9de4 100644 --- a/drivers/infiniband/hw/mlx5/odp.c +++ b/drivers/infiniband/hw/mlx5/odp.c @@ -101,7 +101,7 @@ static int check_parent(struct ib_umem_odp *odp, return mr && mr->parent == parent && !odp->dying; } -struct ib_ucontext_per_mm *mr_to_per_mm(struct mlx5_ib_mr *mr) +static struct ib_ucontext_per_mm *mr_to_per_mm(struct mlx5_ib_mr *mr) { if (WARN_ON(!mr || !is_odp_mr(mr))) return NULL;