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(). This
attribute is needed for clang. However this attribute is already
included in __init when the compiler is clang. Therefore, remove this
redundant attribute. (Later kernel branches have also switched to kcfi,
which doesn't need to be disabled here anyway.)
For futureproofing also 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