Files
Stephan 8d9814d2b4 Fix objtool errors (#2594)
* Fix objtool 'unannotated intra-function call'

Fixes objtool errors in stricter kernel configs

objtool likely wants the function to be annotated with
SYM_CODE_START/SYM_CODE_END (linux/linkage.h). It might be
better to rewrite the linux kernel module assembly files to use gas,
and properly annotate everything, but this should be a quick fix for
now.

* Use module_init/module_exit in linux driver

Fixes objtool errors in stricter kernel configs

* Make init functions static

* Re-add __init & __exit macros in linux driver

* Add semicolons after module_init/module_exit calls

---------

Signed-off-by: J. Stephan Bentze <j.s.bentze@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-30 14:17:50 -07:00
..
2025-10-30 14:17:50 -07:00