Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1020235imu; Fri, 7 Dec 2018 12:45:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/VoF0Z533su+Ew7AvdQFaYINwCl0xnPOjF/f8SZeTzEJEdescpD2+kE91yDmmI3tZ5NU3gO X-Received: by 2002:a62:528e:: with SMTP id g136mr3850569pfb.111.1544215533149; Fri, 07 Dec 2018 12:45:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544215533; cv=none; d=google.com; s=arc-20160816; b=LLzkljqVovSu+W9Afco510lPD6uqHPqaMjvSe15ksdlz58q9xbXkj5Ek5euOWPkIJV 7AyGbLiCyKA9qVV4MPc4eKCqzI4XpKUR9vy7m0b4ym7+0MwzHEbBedLUytjOGFOEXt1A MlY0tV+Y8QV8qUxnYrbJaGLPwl7SI91gjxBWTRvAqnd37BYPBVK5Ip5qsywzdmf+d4k4 dqYOWZvq9YAwqTi8g0OOVyFI/JBuhf8Z6yOHZGTiUPmkT1noEuK1cSXQBQPaT4HDaycF 5k4XbTWh42r3oiY5hJYkxLvD7IFLgjtP42kT8WlFB+c7Sj9BLm2CfSZOSBDa+HVt5MvQ m67g== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K9be+lVipHl+rJybtHM1Ln+kpUlNmNIbplc+QFCcnlg=; b=B5mYdhs/nlnc1l86OYujd4ij73hFZZdbpUIEmcSpR8p/fnCZIPU2h6793rXXacriVE 5kJAiRm0bYR8YUto2wNdorWfu3fCh9R8VpwJCNJwgTNIJsMapjT7pmZjG3BdUVpzQavd abX2lJmiSwhKwj1uR/JHcqYATvXidMItKxPqtRrveG/uQAkQpRu+gGguvJQHEeU+/B8j u49Yrmhj2RxTEXCMx3TikYOUKxFJf7lfD7RF/vMyH50NiNddaWkMBcMegAewe8UzFouV Mflv44iu6wqc2ayX5tsrHJu1TJQzpSqW4zP8IHHA4A41vfjfyawZCXnc4djeJ/hxPZ9l VenA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Dcp7QT1m; 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 o7si3623108pgg.118.2018.12.07.12.45.17; Fri, 07 Dec 2018 12:45:33 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Dcp7QT1m; 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 S1726120AbeLGUn2 (ORCPT + 99 others); Fri, 7 Dec 2018 15:43:28 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:39561 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbeLGUn2 (ORCPT ); Fri, 7 Dec 2018 15:43:28 -0500 Received: by mail-wr1-f68.google.com with SMTP id t27so4982538wra.6; Fri, 07 Dec 2018 12:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K9be+lVipHl+rJybtHM1Ln+kpUlNmNIbplc+QFCcnlg=; b=Dcp7QT1m0PQ6RVYqggj9dKJXnfNy1aY4IHkSpER5MiXck/7rtRvLLvn0HOneBMarUm FKUPNteaVK6y43FYMQt6Xq/29xlBU8FS+ZCjXcTN2lrZuIEBTIq/DZUXkeRfqGmlWsBc YHu1ruwh4dm7pBxxShnP4/6V2Juj9YlnmEs87qzOh+mRyGG1V/cLLhvmRqgcgKTwebZb 65ft/s1iPSAcICDWAdUZyLaiJZj8FJlRqzeYgf32OHjxa+LzYzBWdUs7hgnNTt88WsFE dkBjAyDarh1WMNXrQa5d5+UC9JWwg8gM7fO89OxYWYnvhoFZpMc5ZqHDaQRByBU+OkmD Bu9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=K9be+lVipHl+rJybtHM1Ln+kpUlNmNIbplc+QFCcnlg=; b=WA2N2DkVjP1n0Gmk+ktK2Af3IWLWlzclG2swr9lfPdKot/DmmFnwy5Oq3wqO0OVdAK I+BGh1OWztzZX75uWDgW1DAluXSr90pJnvdGuDZ5k45LbvTASgQJWG6A6DayzTq7VZVB LcEgzTHk8qJif1EzzBm0DL6UAQhP8KI6fWqinjcrXJJYdvuSv+SSuT3RWTKyDj9nv9Jk mcSIDD+KzhheSLbQaIICb5i6j2kr/hb2iD6aAbR/wrQPqni01/jKCKrsdPsOfca+qPiC gs3NEYwPhcAa29dI1k2oo+AH9FQk54jrYFY8IAEDLUbXoZiszml2HoCYw3G1vGaCOX6C 26JQ== X-Gm-Message-State: AA+aEWau6EGN7syhCi5Hd3qnRD9O3X5DYJY4YoHRNj1LJNEFQ3V4tpOk Jbse4QWbetwQ9/0iG2LAu/s= X-Received: by 2002:adf:cc91:: with SMTP id p17mr3119532wrj.118.1544215405759; Fri, 07 Dec 2018 12:43:25 -0800 (PST) Received: from macbookpro.malat.net ([2a01:e34:ee1e:860:6f23:82e6:aa2d:bbd1]) by smtp.gmail.com with ESMTPSA id p14sm2700824wrt.37.2018.12.07.12.43.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Dec 2018 12:43:25 -0800 (PST) Received: by macbookpro.malat.net (Postfix, from userid 1000) id CCEA21144632; Fri, 7 Dec 2018 21:43:23 +0100 (CET) From: Mathieu Malaterre To: Alexander Viro Cc: Mathieu Malaterre , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mount: Make function to_mnt_ns static Date: Fri, 7 Dec 2018 21:43:18 +0100 Message-Id: <20181207204318.1920-1-malat@debian.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 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 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