Thread (3 messages) 3 messages, 2 authors, 2025-06-05

Re: [PATCH] module: make __mod_device_table__* symbols static

flat view

From: Masahiro Yamada <masahiroy@kernel.org>
Date: 2025-06-05 20:27:01
Also in: linux-kbuild, lkml

On Wed, Jun 4, 2025 at 5:50 PM Petr Pavlu [off-list ref] wrote:
On 6/2/25 12:55 PM, Masahiro Yamada wrote:
quoted
The __mod_device_table__* symbols are only parsed by modpost to generate
MODULE_ALIAS() entries from MODULE_DEVICE_TABLE().

Therefore, these symbols do not need to be globally visible, or globally
unique.

If they are in the global scope, we would worry about the symbol
uniqueness, but modpost is fine with parsing multiple symbols with the
same name.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>

--
Thanks,
Petr

Applied to linux-kbuild

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