OSDN Git Service

powerpc/setup_64: Fix sparse warnings
authorHe Ying <heying24@huawei.com>
Tue, 16 Mar 2021 04:11:48 +0000 (00:11 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 02:22:17 +0000 (13:22 +1100)
commitd2313da4ff56bd631a3afe7a17992ed5bd0e04a6
treeaf8504ffb1888b51c334ce3a324e5222f128ca93
parenta329ddd472fa2af0c19a73b8658898ae7fd658ad
powerpc/setup_64: Fix sparse warnings

Sparse warns:
  warning: symbol 'rfi_flush' was not declared.
  warning: symbol 'entry_flush' was not declared.
  warning: symbol 'uaccess_flush' was not declared.

Define 'entry_flush' and 'uaccess_flush' as static because they are
not referenced outside the file. Include asm/security_features.h in
which 'rfi_flush' is declared.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: He Ying <heying24@huawei.com>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210316041148.29694-1-heying24@huawei.com
arch/powerpc/kernel/setup_64.c