Unverified Commit 6d3c3ca4 authored by Vlastimil Babka's avatar Vlastimil Babka Committed by Christian Brauner
Browse files

module: Rename EXPORT_SYMBOL_GPL_FOR_MODULES to EXPORT_SYMBOL_FOR_MODULES

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. But in that case those
also have to be GPL anyway so it's unnecessary to spell it out in the
macro name.

Link: https://lore.kernel.org/all/aFleJN_fE-RbSoFD@infradead.org/ [1]
Link: https://lore.kernel.org/all/CAK7LNATRkZHwJGpojCnvdiaoDnP%2BaeUXgdey5sb_8muzdWTMkA@mail.gmail.com/

 [2]
Suggested-by: default avatarChristoph Hellwig <hch@infradead.org>
Reviewed-by: default avatarShivank Garg <shivankg@amd.com>
Acked-by: default avatarDavid Hildenbrand <david@redhat.com>
Acked-by: default avatarNicolas Schier <n.schier@avm.de>
Reviewed-by: default avatarDaniel Gomez <da.gomez@samsung.com>
Reviewed-by: default avatarChristian Brauner <brauner@kernel.org>
Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
Link: https://lore.kernel.org/20250808-export_modules-v4-1-426945bcc5e1@suse.cz


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 593d9e4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment