Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2364481imm; Tue, 10 Jul 2018 19:23:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe9fpHY8aO63ddbiMfAmdOEJ6JeqkUeuPUWUzp0bwqfrE9yepgC+rygAJIIQzfr0dxKEyAx X-Received: by 2002:a63:7d48:: with SMTP id m8-v6mr25352770pgn.0.1531275789846; Tue, 10 Jul 2018 19:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531275789; cv=none; d=google.com; s=arc-20160816; b=gfIatWUZxunpME0edUoCtqXMEhCiEQpzXNokR7zVQESjyejvRoHFsaF59tvje1pIf5 2OygLL1QQott88THeeHSTdXN0r0YKB/T1Fsl5p0A65ImXa41qc9D8eGwjpbVJVITlFxc vAIQEHTsX2K98dvFU2Big+0bwOE0C3L8ArAcPoR0lcMqyIai9Zg9hy+MJO2R5cKA3YfW 2IG4wmjm3zElh1j8N9HhZdfWyfcvN/QozbujlYZPbP5RNiaQAT1wCQYi9owRKjLwsmqz IEugBWoaocfAlVaAZ37xA7qI1NgZ6gmhbTA9qOJLwwdClGwvl6FvGsNA5YXkVKkA0tyW 0J0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=BqVOjz1raXHlxtPfAI04mWOy/tJviEp4afSL9CNDKyU=; b=L69s+kwLp4xE0esQcoU5WRd74PfLJ7iDcu0dvC8CuTFHsFhw7/lt+xYM4p7baFQJuE VU10MSRaC7aoqgdEXf5cf4J+NzqPWrTz4AKVh2dXva843y6egXGskbqb5t2qR4nItg5A wVDP5RkJYVkT1u/y/ZtbdcF77csu+l9p17NihQfdUdQz2gehCVQC7WIi6F3URBh8sXbj D0SBb9tp1IdRUQ0f9FRtUBqbYcOCxh/RCBF1NG9b+hqsLaFxLq1NcgwaHpPylyXE1A6y na6+Coz/4hSXhCFDCMdV2+gBuVU7LJ6NjS8LT+/FEh0iER9KrL04cPiJrFBTc6PGaLWU KjaA== 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 e98-v6si18599336plb.150.2018.07.10.19.22.54; Tue, 10 Jul 2018 19:23:09 -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; 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 S1732679AbeGKCYJ (ORCPT + 99 others); Tue, 10 Jul 2018 22:24:09 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:45716 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732591AbeGKCYI (ORCPT ); Tue, 10 Jul 2018 22:24:08 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1fd4lf-0003Lk-7o; Wed, 11 Jul 2018 02:22:11 +0000 From: Al Viro To: Linus Torvalds Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Miklos Szeredi Subject: [RFC][PATCH 38/42] make alloc_file() static Date: Wed, 11 Jul 2018 03:22:02 +0100 Message-Id: <20180711022206.12571-38-viro@ZenIV.linux.org.uk> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180711022206.12571-1-viro@ZenIV.linux.org.uk> References: <20180711021136.GN30522@ZenIV.linux.org.uk> <20180711022206.12571-1-viro@ZenIV.linux.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Signed-off-by: Al Viro --- fs/file_table.c | 3 +-- include/linux/file.h | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/file_table.c b/fs/file_table.c index 9097a6fb5a2f..c5f651fd6830 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -155,7 +155,7 @@ struct file *alloc_empty_file(const struct cred *cred) * @mode: the mode with which the new file will be opened * @fop: the 'struct file_operations' for the new file */ -struct file *alloc_file(const struct path *path, fmode_t mode, +static struct file *alloc_file(const struct path *path, fmode_t mode, const struct file_operations *fop) { struct file *file; @@ -180,7 +180,6 @@ struct file *alloc_file(const struct path *path, fmode_t mode, i_readcount_inc(path->dentry->d_inode); return file; } -EXPORT_SYMBOL(alloc_file); struct file *alloc_file_pseudo(struct inode *inode, struct vfsmount *mnt, const char *name, fmode_t mode, diff --git a/include/linux/file.h b/include/linux/file.h index 22becbfd4cec..325b36ca336d 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -19,8 +19,6 @@ struct vfsmount; struct dentry; struct inode; struct path; -extern struct file *alloc_file(const struct path *, fmode_t mode, - const struct file_operations *fop); extern struct file *alloc_file_pseudo(struct inode *, struct vfsmount *, const char *, fmode_t, const struct file_operations *); extern struct file *alloc_file_clone(struct file *, fmode_t, -- 2.11.0