[ 18.258840] CFI failure (target: rmnet_shs_module_init+0x0/0xfa0 [rmnet_shs]):
[ 18.258981] __cfi_check_fail+0x3c/0x8c [rmnet_shs]
[ 18.258991] __cfi_check+0x424/0x484 [rmnet_shs]
[ 18.258993] __cfi_slowpath_diag+0x10c/0x188
module_init()/module_exit() define init_module/cleanup_module as aliases
of the given functions. With cross-DSO CFI, such an alias only gets its
own jump table entry when the aliasee has internal linkage. Since these
functions were declared non-static, modpost pointed __this_module.init
at the raw .init.text address instead of init_module.cfi_jt, so
__cfi_check() rejected the initcall pointer.
Make them static, as they should have been in the first place. The
declarations in rmnet_shs_config.h had no other users and are dropped.
Assisted-by: Claude Opus 5
Change-Id: I32206b52b830796e4ee0e11479791eec12304ced