From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH 5/5] fs: add async read/write interfaces Date: Sat, 31 Jan 2015 06:29:13 +0000 Message-ID: <20150131062913.GN29656@ZenIV.linux.org.uk> References: <1422381313-24034-1-git-send-email-hch@lst.de> <1422381313-24034-6-git-send-email-hch@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Miklos Szeredi , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org To: Christoph Hellwig Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:55232 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbbAaG3Q (ORCPT ); Sat, 31 Jan 2015 01:29:16 -0500 Content-Disposition: inline In-Reply-To: <1422381313-24034-6-git-send-email-hch@lst.de> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Jan 27, 2015 at 06:55:13PM +0100, Christoph Hellwig wrote: > +void init_kernel_kiocb(struct kiocb *iocb, struct file *file, loff_t pos, > + void (*complete)(struct kiocb *iocb, ssize_t ret)) > +{ > + iocb->ki_filp = file; > + iocb->ki_pos = pos; > + iocb->complete = complete; > +} > +EXPORT_SYMBOL_GPL(init_kernel_kiocb); Could we please stop that nonsense? Any non-GPL module that decides to use that will simply open-code this oh-so-valuable piece of intellectual property - all three assignments worth of it. EXPORT_SYMBOL_GPL() is usually silly posturing - it's borderline defensible if you are exporting deep guts of otherwise internal objects and want to limit the scope of damage (but in that case you'd better have a very good reason for having an export at all), but in cases like this it's something better kept to alt.sex.masturbation. I'm not fond of non-GPL modules, but this is simply ridiculous. Use normal export. The same goes for other two exports here.