ANDROID: fips140: remove unnecessary no_sanitize(cfi)
gcc segfaults when compiling fips140-module.c because it doesn't like
__attribute__((__no_sanitize__("cfi"))) on fips140_init(). But since
Linux's CFI now uses the kcfi sanitizer instead of cfi, this no
attribute longer did anything anyway. Remove it.
fips140_init() does work with kcfi, though this relies on the initcall
function pointers being typed correctly. They were correct, but for
futureproofing also make it use initcall_t from <linux/init.h>.
Bug: 349612732
Change-Id: Ic5cfaef177b58abf21f1737579d75b4df4d0d09c
Signed-off-by:
Eric Biggers <ebiggers@google.com>
Loading
Please sign in to comment