module: make __mod_device_table__* symbols static
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 2 Jun 2025 10:55:36 +0000 (19:55 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 5 Jun 2025 20:40:25 +0000 (05:40 +0900)
commit8c21c4111128365f81a88573eeb2844fa696b299
treeb5be722eeb7401a29e9c15b4f3b290d5f1d060d4
parent7d95680d64ac8e836c35fd56efe77eac4e9cc26b
module: make __mod_device_table__* symbols static

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>
include/linux/module.h