From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="VkLS+s2K" Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 426E6D6C for ; Thu, 30 Nov 2023 05:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6CJTndjC0BkUG0zxRnp6P7rtXXhMkx8qDYXxvC7SOTI=; b=VkLS+s2KfEhlfFJKShECB7lE4z Nks5ZnK9s4baxBaANARkMeLYGLbfJ9JZxtxyYLA22kHpYIrvKTkm2ZSi0esh3RMV6o0lk1o8/j2IF E/q810zRitz6WMGn9jlCz/2GCON76IOYroRCkogjOOYuFVLM7iWcN4SsIdq209d1Y4aKXgmivdPD7 klcBZJOnwa5iGStG/BUEQxfyRZlC8ZfUpc+sn4RUvXb+/e25HUXtfPgV3e0yT/QsMwTiFIaqitaeA GxjSzYmWSUQREdFBToehlnh8KNjIQquhbDy6f5G/NH3NUWZYEwJSaziOhtI7Ob79RlnooxQzRs2CX rsMvbdYA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1r8gxn-00EToB-Pi; Thu, 30 Nov 2023 13:20:19 +0000 Date: Thu, 30 Nov 2023 13:20:19 +0000 From: Matthew Wilcox To: Christian Brauner Cc: linux-fsdevel@vger.kernel.org, Jan Kara , Jens Axboe , Carlos Llamas , Alexander Viro , Linus Torvalds Subject: Re: [PATCH RFC 5/5] file: remove __receive_fd() Message-ID: References: <20231130-vfs-files-fixes-v1-0-e73ca6f4ea83@kernel.org> <20231130-vfs-files-fixes-v1-5-e73ca6f4ea83@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231130-vfs-files-fixes-v1-5-e73ca6f4ea83@kernel.org> On Thu, Nov 30, 2023 at 01:49:11PM +0100, Christian Brauner wrote: > +++ b/include/linux/file.h > @@ -96,10 +96,7 @@ DEFINE_CLASS(get_unused_fd, int, if (_T >= 0) put_unused_fd(_T), > > extern void fd_install(unsigned int fd, struct file *file); > > -extern int __receive_fd(struct file *file, int __user *ufd, > - unsigned int o_flags); > - > -extern int receive_fd(struct file *file, unsigned int o_flags); > +extern int receive_fd(struct file *file, int __user *ufd, unsigned int o_flags); You could drop the 'extern' while you're at it.