arm64: cpufeature: Avoid warnings due to unused symbols
authorWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 10:51:12 +0000 (11:51 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 10:51:12 +0000 (11:51 +0100)
commit12eb369125abe92bfc55e9ce198200f5807b63ff
tree2bd72a29d66bf9de8452a6e4415981c7f60b15ef
parentece1397cbc89c51914fae1aec729539cfd8bd62b
arm64: cpufeature: Avoid warnings due to unused symbols

An allnoconfig build complains about unused symbols due to functions
that are called via conditional cpufeature and cpu_errata table entries.

Annotate these as __maybe_unused if they are likely to be generic, or
predicate their compilation on the same option as the table entry if
they are specific to a given alternative.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/cpu_errata.c
arch/arm64/kernel/cpufeature.c