Commit 9572c01c authored by Eric Biggers's avatar Eric Biggers
Browse files

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: default avatarEric Biggers <ebiggers@google.com>
parent 51cc4ca4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment