From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50E8DC43387 for ; Thu, 10 Jan 2019 20:41:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2071A20879 for ; Thu, 10 Jan 2019 20:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547152911; bh=2uwIxTL0WK2sx43OQU0i8F+G6oK3cX+j+JzbKOrqLRA=; h=From:To:Subject:Date:List-ID:From; b=RQbEoNfB9gQ/r4FxUZ/aS0h6nlQQTT/KZG02qe7BXT3mIAWhSBy0KHUpxIUJg0V8Q hw6bVc8KHCHB88Dq8yXxvNEMb3hwJq/VMGg/laGPLsfg74WUJwtfXWnWfeet9qt/+W BOZPq29yN8aFvlagIXVXFuR+XFX9vecZ5eyUL1wM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730398AbfAJUlu (ORCPT ); Thu, 10 Jan 2019 15:41:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:42924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729743AbfAJUlu (ORCPT ); Thu, 10 Jan 2019 15:41:50 -0500 Received: from ebiggers-linuxstation.mtv.corp.google.com (unknown [104.132.1.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 003282173B; Thu, 10 Jan 2019 20:41:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547152910; bh=2uwIxTL0WK2sx43OQU0i8F+G6oK3cX+j+JzbKOrqLRA=; h=From:To:Subject:Date:From; b=wfUlDLQfnhB73COiy8L6XvsyyMnY/XYJ0uda4gOmayzYKJzOca5veM+onGwRSfQ0P bDxPGqk6ytW4YK0MPZ2gY0NLLSxtOLLnia9NV85YgBVM3buVKSxSzOmlu5NxoIV9Op oYNZBDTWGFscspG9L2YFEY8Zjs9TZKhewGuBVLTI= From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Alexander Viro Subject: [PATCH RESEND] fs/namespace.c: make to_mnt_ns() static Date: Thu, 10 Jan 2019 12:41:47 -0800 Message-Id: <20190110204147.120073-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.20.1.97.g81188d93c3-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Eric Biggers to_mnt_ns() is only used in fs/namespace.c, so make it static. This addresses a gcc warning when -Wmissing-prototypes is enabled. Signed-off-by: Eric Biggers --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index a677b59efd74e..2ba0dbd8573a2 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1688,7 +1688,7 @@ static bool is_mnt_ns_file(struct dentry *dentry) dentry->d_fsdata == &mntns_operations; } -struct mnt_namespace *to_mnt_ns(struct ns_common *ns) +static struct mnt_namespace *to_mnt_ns(struct ns_common *ns) { return container_of(ns, struct mnt_namespace, ns); } -- 2.20.1.97.g81188d93c3-goog