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=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 66E05C433E4 for ; Tue, 28 Jul 2020 17:11:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2D9FD207F5 for ; Tue, 28 Jul 2020 17:11:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ofm5DMIz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D9FD207F5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BE7A18D0002; Tue, 28 Jul 2020 13:11:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B98186B0023; Tue, 28 Jul 2020 13:11:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AB0958D0002; Tue, 28 Jul 2020 13:11:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0151.hostedemail.com [216.40.44.151]) by kanga.kvack.org (Postfix) with ESMTP id 975AC6B0022 for ; Tue, 28 Jul 2020 13:11:17 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 622908248047 for ; Tue, 28 Jul 2020 17:11:17 +0000 (UTC) X-FDA: 77088125394.29.act68_3f08ae626f6b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin29.hostedemail.com (Postfix) with ESMTP id 9505118086E2F for ; Tue, 28 Jul 2020 17:11:16 +0000 (UTC) X-HE-Tag: act68_3f08ae626f6b X-Filterd-Recvd-Size: 2378 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf50.hostedemail.com (Postfix) with ESMTP for ; Tue, 28 Jul 2020 17:11:16 +0000 (UTC) Received: from kozik-lap.mshome.net (unknown [194.230.155.213]) (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 B599E20792; Tue, 28 Jul 2020 17:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595956275; bh=MR8mg3/IJgrM9SZbw474ePJSLyQfESFHDMAInBpWuhE=; h=From:To:Cc:Subject:Date:From; b=Ofm5DMIzcN6j+Cha4R0mw1pUbT1n3f9mVPYx0hue/a0Ot7cJk5nom/ged2M7RNngu ZWQ0yxelrt+kwWo/XbT9oZ71iwKI2chnFMsQhSDAnsPwuklcCGKR9KShwFDMpb3or/ oI2ba8c7N3TQHJk86dU7tzg9SueKWVovgPRdtI+s= From: Krzysztof Kozlowski To: Alexander Viro , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/4] anon_inodes: Make _anon_inode_getfile() static Date: Tue, 28 Jul 2020 19:11:06 +0200 Message-Id: <20200728171109.28687-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 X-Rspamd-Queue-Id: 9505118086E2F X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: _anon_inode_getfile() function is not used outside so make it static to fix W=1 warning: fs/anon_inodes.c:80:14: warning: no previous prototype for '_anon_inode_getfile' [-Wmissing-prototypes] 80 | struct file *_anon_inode_getfile(const char *name, Signed-off-by: Krzysztof Kozlowski --- fs/anon_inodes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c index 25d92c64411e..90b022960027 100644 --- a/fs/anon_inodes.c +++ b/fs/anon_inodes.c @@ -77,11 +77,11 @@ static struct inode *anon_inode_make_secure_inode( return inode; } -struct file *_anon_inode_getfile(const char *name, - const struct file_operations *fops, - void *priv, int flags, - const struct inode *context_inode, - bool secure) +static struct file *_anon_inode_getfile(const char *name, + const struct file_operations *fops, + void *priv, int flags, + const struct inode *context_inode, + bool secure) { struct inode *inode; struct file *file; -- 2.17.1