Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1517347yba; Sun, 14 Apr 2019 12:20:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwn3eXdRHOaW80Uisds2kjYsmYcepqU3FYk17h2Z/FO64NPvy3QmXDUErVf9r21DKmmYmQA X-Received: by 2002:a62:e501:: with SMTP id n1mr48031749pff.17.1555269610347; Sun, 14 Apr 2019 12:20:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555269610; cv=none; d=google.com; s=arc-20160816; b=uasH7wNwmrMAZ+aiYzJ3uUEVMundWcbr0GC3oN1LrEjLk88BOARfr1u9UcKcTpB/tS CeGJjMsJXuBWmMo0pan6ieWf0dQ9ly74tzU6/qbaKo54l0mcbqkY8s/vmp/ccNaWWEig DQKeLCOFvB/80185jTh1uWA+qpK7LoTFDfyFDrycLuOk1xqktB6E+7P0MRdOy2CeLEX1 E0xADzEzrW6fkP2OAi+BM+qvIFK9JGdrSsun02D3l+qIFy7M6fP8CI/ZlfLJbmbftdxD 2jdaHk/fEBEKDRVdf7mYOWmZx0iPSdxCDiFvI4ojgDxll7po48bFeL0aPeYzlukqlCWl s8hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=RCjdcXqVKmDr2YZXcPPtjcIsCYb0PHt5vm/dHAsQTX8=; b=ZXD889ZiApbk6I3KYyAte/UFR7loEQUS+FPqH1FQsshy8kV3hQ0nXsJxo0lpdDROhH eCTjemY+7yaVBnQFLiNUyl1QrxFGkyui+p6q2YXQZk+4u+zEOma6YLLtVDhxGrUfsziM wrACGXJwLy2uiXuNaJX8cbDMyQNE4ML2Kn/DcrbfPTXyCPZ6lG6FWE3e08wh8276DRMd YZVwsHBvjMYbEF2ohClcEyYOarQ/IVSdimlGTwI5pA0hN5hPVYUGC9Pp4c7L4MuDKwEg 2JyMVLQPvjdBTC3YAAFC/jPhDKR3mKbE9Fum39+LwLTrFH/e/cwbGCNlRY6g7o3WgLs4 TBlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kJxBhi1S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 60si45136691plf.122.2019.04.14.12.19.53; Sun, 14 Apr 2019 12:20:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kJxBhi1S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726461AbfDNTTU (ORCPT + 99 others); Sun, 14 Apr 2019 15:19:20 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45931 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbfDNTTU (ORCPT ); Sun, 14 Apr 2019 15:19:20 -0400 Received: by mail-pl1-f194.google.com with SMTP id bf11so7463614plb.12; Sun, 14 Apr 2019 12:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=RCjdcXqVKmDr2YZXcPPtjcIsCYb0PHt5vm/dHAsQTX8=; b=kJxBhi1SEC9X7gOpdRrj1hnpRaAeGAznii+jBe021+L2ebGSkajp4BSPoHxi4BBu4h fY6U5KXzPA1kPv1Hidv2GXMO1qoJsypzrv35aBRp/Im+iqAIBOvZhgkoFtEr7d3Lgh69 ReY8iN0MKDu10v6dZPyJ66f3KlznlRf5LBD9hEJTIUXmiemuhL0l+AmUZPGVPQhzw6sk JizKGeZTIK3BvDK9FywU8UFU4yZxZRvNxgWbDz9fLxKAZTUAGCvAnjdaAf1KL4mTlFU0 vVWH30nEXxTIQC9tIutq2fW5YHJEzoGctAHXT5KWkHqyYqQ63VzhIXXXD8iioMqh1OmB Xy6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=RCjdcXqVKmDr2YZXcPPtjcIsCYb0PHt5vm/dHAsQTX8=; b=jDyG7DWQ0TYewsAstvnpz+gVlzC6k/TmdQZ9015N/zNi4EM0mEixZMANx1C4QOgImX oi/aoifwriqvinvZ46tEeCwK6rDybM5wC0cDe/SkV7+2r4hcAYuDRkkRSAvnzjgd60uY MLOJNx/iUHrdzherCSpxQ+5pYuRbFyd/9M540KzfOYIkztpgzqMDR48sVoHDhcwPwj6u 6/ZGLVUlyvMRFHrhB/C+CIuJqoV47d+mYi5bkRX5oRON3t4E70z+zAijH+JMCW/u0wzv UxefixeHRmbUmzfsBI69CfuVIxcS3J6+nW3op0LMRXOyg7E6Jq2BVn6Yt5Gy+H41wlwW ZrZA== X-Gm-Message-State: APjAAAU6/S6Zx4f5BN0xeXIupW+/n+Ciss3Po61ZovvG7TOO7H8qDOye dLejW/YYgb7TpLO/JJIvjaHElMXw X-Received: by 2002:a17:902:7c8c:: with SMTP id y12mr70595660pll.209.1555269559825; Sun, 14 Apr 2019 12:19:19 -0700 (PDT) Received: from bharath12345-Inspiron-5559 ([103.110.42.31]) by smtp.gmail.com with ESMTPSA id k186sm65482805pfc.137.2019.04.14.12.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Apr 2019 12:19:19 -0700 (PDT) Date: Mon, 15 Apr 2019 00:49:13 +0530 From: Bharath Vedartham To: viro@zeniv.linux.org.uk Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/namespace.c: Make to_mnt_ns static Message-ID: <20190414191913.GA11798@bharath12345-Inspiron-5559> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes the sparse warning: "warning: symbol 'to_mnt_ns' was not declared. Should it be static?" Signed-off-by: Bharath Vedartham --- fs/namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namespace.c b/fs/namespace.c index c9cab30..b39a3ec 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1732,7 +1732,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.7.4