Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1417928imu; Wed, 16 Jan 2019 19:28:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN5gb4mLwZ85B2UX/UyXStZ3tS48iBK87g2nGKu06vmZLw9n3JUMsAShPPGutQCRwSJVq+ok X-Received: by 2002:a62:c302:: with SMTP id v2mr13367184pfg.155.1547695712764; Wed, 16 Jan 2019 19:28:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547695712; cv=none; d=google.com; s=arc-20160816; b=ypTuOyqfGrZTuXurBEcCZXao/kCrExSXpc+d39O5yeo5wsFv7biBNf1mWCstlhdrhw 80thSfWysN+UCA72K39kunbgomcQrTJ+LNY9DiS6Yz0UjQyGHh9wEEGCLdTGVumm8oFW RVAYorw9ngGlYyzgO+l+dHOfA92uI9NPMyi3xLXc+lp6jPxcPmpY451Fj2hxs19H/w/j 2FlYdRcNYe4xB3VOADe7mW3mET7pGF/aUq1JRbYowLZ2WXuycsEmWXtRPf/R0p1RBd8k QetNycRfgc+9hGO4JTRayY24pHCP6ifey7JyXjxnQ26WBDGCJof+dqfCkIrVc0959Bn8 FqlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=8S4cuBR4Xp5EcHM0PqqFMuHNw1K8bVhiAEyo/LPAXjk=; b=XdHb2CberDJ4lNSHeeEbWjX/7Z6IWR5VpK8S4Ki7SVIJSeBVce5Z198j1dj8nrs46o CQDNKVSdfZuBTI83OyzFC53J9h/QDjRagtBCxhIk8R41ThrJ1uYFIhsPDXMoKpXqzNQV y/hoM627c1eCRoxmZ74ZatYcb0rkLW7j1T0JF5AyEeuA/Jqg5iffoOa4edt7TwJyUzaS FVxCpE5eEwMFFA+5ZYjO6eoKq+gbmATMXQOYsy+0JrdtDUi/mURXU0QNHIaW/xunQdk/ eqwD9ctL+WHJZgqZbVEjXoaFBITorQBmog/ztBYkS0Z8UnBek1BpmW+te2vBV4LBMTFc rdfw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si389795plc.87.2019.01.16.19.28.16; Wed, 16 Jan 2019 19:28:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389606AbfAPLKn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 16 Jan 2019 06:10:43 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:34684 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbfAPLKm (ORCPT ); Wed, 16 Jan 2019 06:10:42 -0500 Received: by mail-ot1-f67.google.com with SMTP id t5so1505189otk.1; Wed, 16 Jan 2019 03:10:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PEmnyaLC69zPRSlEQNRSGDT94/N3f9H5gAm5I4+eC9Y=; b=dHGyCfxTKMRFlkNVW3ZwFX3C9eaDG8f+KFtKjws+gRKhb4LzpcWa+OgEvFMUZUsZ2Q eRciEHWQ0Txlg2FsKhN1AnmoCcnds5TE3DTATD31Xmynx+JBUGzMyQvITKBT5mK3WRR/ Qqt7Xx6VMYvje2odX1itbEO9y59pP8e2APQBL+NCMsccs+k9OIqcBPygB9+OZRr8WH3j qw232ZD5srZGj1vu3jf0Xo4LV1NmxnXzDmEopFompwuqYkPcwpMcwRwn1R93fLjfFDqb ntAbOhuolEQJFRoHz0gCES/B1szKgngpfaNYBA3kzA5QaTXGV5su33xG4DG4cFBz/pii b8OA== X-Gm-Message-State: AJcUukd/mna2DD/izqGCzhYw+CNU1aBMhCQyxhB0eXBakNtomqlB3SEL vRCu8xM1V8U3c0TdODOrJmNsT3xKO58PNgg2Zm7GFg== X-Received: by 2002:a9d:628:: with SMTP id 37mr5485545otn.58.1547637041736; Wed, 16 Jan 2019 03:10:41 -0800 (PST) MIME-Version: 1.0 References: <20181207204318.1920-1-malat@debian.org> In-Reply-To: <20181207204318.1920-1-malat@debian.org> From: Mathieu Malaterre Date: Wed, 16 Jan 2019 12:10:30 +0100 Message-ID: Subject: Re: [PATCH] mount: Make function to_mnt_ns static To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ping ? On Fri, Dec 7, 2018 at 9:43 PM Mathieu Malaterre wrote: > > In commit 58be28256d98 ("make mntns ->get()/->put()/->install()/->inum() > work with &mnt_ns->ns"), a new function `to_mnt_ns` was introduced. > Since this function can be made static, make it so. > > Fix warning when compiling with W=1: > > fs/namespace.c:1693:23: warning: no previous prototype for ‘to_mnt_ns’ [-Wmissing-prototypes] > > Signed-off-by: Mathieu Malaterre > --- > fs/namespace.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/namespace.c b/fs/namespace.c > index a7f91265ea67..f0cf252d9aa3 100644 > --- a/fs/namespace.c > +++ b/fs/namespace.c > @@ -1690,7 +1690,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.19.2 >