From patchwork Sun Sep 27 14:31:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7273261 Return-Path: X-Original-To: patchwork-linux-fsdevel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 696D79F32B for ; Sun, 27 Sep 2015 14:33:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 962E020800 for ; Sun, 27 Sep 2015 14:33:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9813B20875 for ; Sun, 27 Sep 2015 14:33:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755947AbbI0Od2 (ORCPT ); Sun, 27 Sep 2015 10:33:28 -0400 Received: from m50-138.163.com ([123.125.50.138]:42254 "EHLO m50-138.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755887AbbI0Od1 (ORCPT ); Sun, 27 Sep 2015 10:33:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=Dxsr7pIuXbARFJPhzr eWjvzHwLS2l082dlXcaCmDXyU=; b=Ik60/cZjzUGMn9n2LRnMWNK/oJmamedmsw rBGqTyGqPVLjOasBUlwQCNJsGBqN6KZC97y6qQ6Q742cBg10Nw3Gm+MpmuHuy4ic hTnogdDn3TS1bTWOl1/IvIycEPgOJxBnVG/hTPHOjx5awl3W9mVuzSyjJJSLKaF2 IQZOnymi4= Received: from localhost (unknown [116.77.145.163]) by smtp1 (Coremail) with SMTP id C9GowAAH1Czf_QdWM0FXBw--.43475S3; Sun, 27 Sep 2015 22:32:01 +0800 (CST) From: Geliang Tang To: Alexander Viro Cc: Geliang Tang , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs: namespace: to_mnt_ns should be static Date: Sun, 27 Sep 2015 22:31:54 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 X-CM-TRANSID: C9GowAAH1Czf_QdWM0FXBw--.43475S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7GF48tw4DAryrur43GF15Jwb_yoWxtFb_AF Zrta1xKFyqkrn5Cr1rC34IqF97XrsYkr1UZw4ftFWUAa1rA347AF1vvr4xGry5Wr4DX345 urykGry5Gr15CjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUbE4i5UUUUU== X-Originating-IP: [116.77.145.163] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiMAKCmVWBRb4dTgAAsV Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: fs/namespace.c:1654:22: warning: symbol 'to_mnt_ns' was not declared. Should it be static? Signed-off-by: Geliang Tang --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index 0570729..37af1ba 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1651,7 +1651,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); }