Re: [PATCH 07/14] regmap: Add SoundWire bus support

From: Alan Cox
Date: Mon Oct 23 2017 - 07:56:40 EST


On Sat, 2017-10-21 at 10:34 +0100, Mark Brown wrote:
> On Thu, Oct 19, 2017 at 08:33:23AM +0530, Vinod Koul wrote:
>
> > + *ÂÂBSD LICENSE
> > + *
> > + *ÂÂCopyright(c) 2015-17 Intel Corporation.
> > + *
> > + *ÂÂRedistribution and use in source and binary forms, with or
> > without
> > + *ÂÂmodification, are permitted provided that the following
> > conditions
> > + *ÂÂare met:
>
> Really unhappy with the dual licensing for regmap code, this is
> interface code for some GPL only kernel code and...

if anyone uses it with GPL code then it ends up GPL so in the Linux
kernel context it's always going to be GPL.

> > +EXPORT_SYMBOL(__regmap_init_sdw);
>
> ...this is just an obvious attempt to allow non-GPL code to directly
> use
> GPL code.


There's nothing in the GPL about EXPORT_SYMBOL. If its built GPL
dependent then it depends upon GPL code so is GPL.

Alan