aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Sverdlin <[email protected]>2022-05-23 08:56:16 +0200
committerArnd Bergmann <[email protected]>2022-05-27 16:00:58 +0200
commit75577fbecb2e6e5f633445f01006886c51dc7e76 (patch)
treec39a6b35e34a42d1e3f1fb9164210a37b169d227
parent01ba87a4b792e36254b19b2bcfeb935356294f95 (diff)
ARM: ep93xx: Make ts72xx_register_flash() static
... and fix the warning/error: arch/arm/mach-ep93xx/ts72xx.c:154:13: error: no previous prototype for function 'ts72xx_register_flash' [-Werror,-Wmissing-prototypes] void __init ts72xx_register_flash(struct mtd_partition *parts, int n, ^ arch/arm/mach-ep93xx/ts72xx.c:154:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __init ts72xx_register_flash(struct mtd_partition *parts, int n, ^ static Reported-by: kernel test robot <[email protected]> Signed-off-by: Alexander Sverdlin <[email protected]> Link: https://lore.kernel.org/lkml/[email protected]/T/ Link: https://lore.kernel.org/r/[email protected]' Signed-off-by: Arnd Bergmann <[email protected]>
-rw-r--r--arch/arm/mach-ep93xx/ts72xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-ep93xx/ts72xx.c b/arch/arm/mach-ep93xx/ts72xx.c
index e70bac011407..d3de7283ecb3 100644
--- a/arch/arm/mach-ep93xx/ts72xx.c
+++ b/arch/arm/mach-ep93xx/ts72xx.c
@@ -150,7 +150,7 @@ static struct platform_device ts72xx_nand_flash = {
.num_resources = ARRAY_SIZE(ts72xx_nand_resource),
};
-void __init ts72xx_register_flash(struct mtd_partition *parts, int n,
+static void __init ts72xx_register_flash(struct mtd_partition *parts, int n,
resource_size_t start)
{
/*