Re: [PATCH v4] module: Rename EXPORT_SYMBOL_GPL_FOR_MODULES to EXPORT_SYMBOL_FOR_MODULES

David Hildenbrand
2025-08-08T14:17:41Z

On 08.08.25 15:28, Vlastimil Babka wrote:
> Christoph suggested that the explicit _GPL_ can be dropped from the
> module namespace export macro, as it's intended for in-tree modules
> only. It would be possible to restrict it technically, but it was
> pointed out [2] that some cases of using an out-of-tree build of an
> in-tree module with the same name are legitimate.

I'm wondering if we could revisit that idea later, and have a config
option that enables that. The use cases so far were mostly around
testing IIRC, where people already run their own debug kernel or sth.
like that.

--
Cheers,

David / dhildenb