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=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,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 27D12C28CC0 for ; Wed, 29 May 2019 21:21:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1194241F8 for ; Wed, 29 May 2019 21:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559164872; bh=znwOEyKrenrVT41woZsMo3otFpoghvAVdCrMasSE+5k=; h=From:To:Subject:Date:List-ID:From; b=fxM4nIICZu3OnIJdTyIiO0Rk++1RzN3IO9S9Ak6D5prT+0vbyeYf1FlZ7EfHNgBTv e8tuirhd/0VoBpPb+08nqzncFaCCZRhOLr/8k7q/JgPXzrCXK7b5maX+weysvLo+zn 7aMSDWF4CTLGDzBR9FJjFLUF3eP6vczOcP0iT1xY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbfE2VVL (ORCPT ); Wed, 29 May 2019 17:21:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:50552 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbfE2VVL (ORCPT ); Wed, 29 May 2019 17:21:11 -0400 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 BD5C0241F7; Wed, 29 May 2019 21:21:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559164870; bh=znwOEyKrenrVT41woZsMo3otFpoghvAVdCrMasSE+5k=; h=From:To:Subject:Date:From; b=Unj8WHaGUClC4zkOGx9fQTFQuWWyNX0td1QP51cYApPSh/7dDDZON885n+p1n+uoU Jm6DXYxzHzS3nNIBfRjyWXIo8DuLGfEA66qT3jUgNz7YHRuoLTWGfpJrmF8hdSSTuy 9eI511mnrG2sDJmEopvBoZVmxMBObmgLeoPT8/mQ= From: Eric Biggers To: linux-fsdevel@vger.kernel.org, Alexander Viro Subject: [PATCH] fs/namespace.c: make to_mnt_ns() static Date: Wed, 29 May 2019 14:21:08 -0700 Message-Id: <20190529212108.164246-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.22.0.rc1.257.g3120a18244-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 Make to_mnt_ns() static to address the following 'sparse' warning: fs/namespace.c:1736:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static? 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 ffb13f0562b07..0de85376c0c24 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1733,7 +1733,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.22.0.rc1.257.g3120a18244-goog