Thread (5 messages) flat view 5 messages, 4 authors, 2021-08-11

Re: [PATCH] net: mscc: Fix non-GPL export of regmap APIs

From: Mark Brown <broonie@kernel.org>
Date: 2021-08-10 14:34:28

On Tue, Aug 10, 2021 at 12:55:37PM +0000, Vladimir Oltean wrote:
On Tue, Aug 10, 2021 at 01:37:48PM +0100, Mark Brown wrote:
quoted
The ocelot driver makes use of regmap, wrapping it with driver specific
operations that are thin wrappers around the core regmap APIs. These are
exported with EXPORT_SYMBOL, dropping the _GPL from the core regmap
exports which is frowned upon. Add _GPL suffixes to at least the APIs that
are doing register I/O.
Stupid question: is this enough? We also have order-two symbols exported
as non-GPL, which call one of {__ocelot_read_ix, __ocelot_write_ix,
__ocelot_rmw_ix, ocelot_port_writel, ocelot_port_rmwl, ocelot_regfields_init,
ocelot_regmap_init}, and therefore indirectly call regmap. In fact, I
think that all symbols exported by ocelot do that.
Yes, that'd be much better I think - I have to confess I didn't look at
the driver in too much detail beyond these most obvious examples to
figure out how exactly they slotted in structurally.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help