From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from youngberry.canonical.com ([91.189.89.112]:59773 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936201AbeF3MEt (ORCPT ); Sat, 30 Jun 2018 08:04:49 -0400 From: Colin King To: Alexander Viro , linux-fsdevel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] vfs: make helper function to_mnt_ns static Date: Sat, 30 Jun 2018 13:04:47 +0100 Message-Id: <20180630120447.17861-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Colin Ian King The function to_mnt_ns is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: symbol 'to_mnt_ns' was not declared. Should it be static? Signed-off-by: Colin Ian King --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index 4e630dcb75c9..e7d2119656a4 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1641,7 +1641,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.17.1