Skip to contentSkip to conversation

ARM: ep93xx: Make ts72xx_register_flash() static

PATCH Applied Alexander Sverdlin 2 participants 2 messages May 23, 2022 – May 27, 2022

Subsystems (4)
lore
Share & tools
lore

Alexander Sverdlin

author maintainer
#0 lore raw

PATCH 1/1 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

---
 arch/arm/mach-ep93xx/ts72xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-ep93xx/ts72xx.c +1 -1
index e70bac011407..d3de7283ecb3 100644
@@ -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)
 {
 	/*
Signature · 1 line
2.36.0
#1 lore raw
This patch was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This patch was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 11 lines · On Mon, 23 May 2022 08:56:16 +0200 you wrote:

... 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

[...]

Here is the summary with links:
- ARM: ep93xx: Make ts72xx_register_flash() static

    https://git.kernel.org/soc/soc/c/75577fbecb2e

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html