From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 10 Dec 2014 20:12:28 +0100 From: Gilles Chanteperdrix Message-ID: <20141210191228.GS1524@hermes.click-hack.org> References: <20141210183747.GA24110@csclub.uwaterloo.ca> <20141210184232.GP1524@hermes.click-hack.org> <20141210190240.GB24110@csclub.uwaterloo.ca> <20141210190509.GR1524@hermes.click-hack.org> <20141210190939.GD24110@csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141210190939.GD24110@csclub.uwaterloo.ca> Subject: Re: [Xenomai] __ipipe_root_status exported GPL only but used to be not GPL only and is breaking other code List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lennart Sorensen Cc: xenomai@xenomai.org On Wed, Dec 10, 2014 at 02:09:39PM -0500, Lennart Sorensen wrote: > On Wed, Dec 10, 2014 at 08:05:09PM +0100, Gilles Chanteperdrix wrote: > > Ah, you mean the problem is with a module which does not use Xenomai > > ? That is unfortunate. > > Yes, and only becasue ipipe messes with the task structures in some way > and the change in the export of that symbol is causing the problem. > > Certainly the mainline kernel does not allow existing calls to get broken > by other changes. Perhaps ipipe should follow the same rule and revert > the change to that symbol. The I-pipe messing with task_struct is not involved here. Using EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL is what causes the kernel to refuse loading a module not using the GPL license trying to use that symbol. That is the purpose of EXPORT_SYMBOL_GPL. Using EXPORT_SYMBOL_GPL is done by a lot of modules which "follow the rules", I-pipe included. -- Gilles.