module: Add module specific symbol namespace support
authorPeter Zijlstra <peterz@infradead.org>
Fri, 2 May 2025 14:12:06 +0000 (16:12 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 25 May 2025 09:11:56 +0000 (18:11 +0900)
commit520b1a147d918eb07132c847ad5598a17d3ff7ca
treeded61b56e8ccc034b54522dd444a114bca3591a2
parent6b91ff002c67b2502009f99115c4b7fe5b7b8248
module: Add module specific symbol namespace support

Designate the "module:${modname}" symbol namespace to mean: 'only
export to the named module'.

Notably, explicit imports of anything in the "module:" space is
forbidden.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
kernel/module/main.c
scripts/mod/modpost.c