crypto: ccp - Remove forward declaration
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 24 Sep 2018 17:26:15 +0000 (10:26 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Oct 2018 02:16:56 +0000 (10:16 +0800)
commit3512dcb4e6c64733871202c01f0ec6b5d84d32ac
treef562a47dcd6dc0d4755d12317a63866788096daf
parent944585a64f5e37d11ff274a905304b565a88e147
crypto: ccp - Remove forward declaration

Clang emits a warning about this construct:

drivers/crypto/ccp/sp-platform.c:36:36: warning: tentative array
definition assumed to have one element
static const struct acpi_device_id sp_acpi_match[];
                                   ^
1 warning generated.

Just remove the forward declarations and move the initializations up
so that they can be used in sp_get_of_version and sp_get_acpi_version.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Acked-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sp-platform.c