diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-03-13 14:15:42 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2018-03-18 01:15:26 +0100 |
commit | 202fbf4865e97b64ca2d94b7dc1a4efd6f7b0729 (patch) | |
tree | 0a01a81953a35598fa7324ba6602418d29249cc4 /arch/powerpc/crypto/sha1.c | |
parent | of: unittest: Remove VLA stack usage (diff) | |
download | linux-202fbf4865e97b64ca2d94b7dc1a4efd6f7b0729.tar.xz linux-202fbf4865e97b64ca2d94b7dc1a4efd6f7b0729.zip |
of: unittest: move misplaced function declaration
The overlay_data_apply() declaration is outside of the #ifdef that contains
both the user and the definition, causing a compile-time warning in
some configurations:
drivers/of/unittest.c:48:19: error: 'overlay_data_apply' declared 'static' but never defined [-Werror=unused-function]
static int __init overlay_data_apply(const char *overlay_name, int *overlay_id);
This moves the declaration into the #ifdef section.
Fixes: 39a751a4cb7e ("of: change overlay apply input data from unflattened to FDT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/powerpc/crypto/sha1.c')
0 files changed, 0 insertions, 0 deletions