Skip to contentSkip to conversation

init/main.c: mark boot_config_checksum static

PATCH Applied Qiujun Huang 2 participants 2 messages Feb 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 init/main.c: mark boot_config_checksum static

In fact, this function is only used in this file, so mark it with 'static'.

---
 init/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/main.c +1 -1
index f95b014..534589f 100644
@@ -335,7 +335,7 @@ static char * __init xbc_make_cmdline(const char *key)
 	return new_cmdline;
 }
 
-u32 boot_config_checksum(unsigned char *p, u32 size)
+static u32 boot_config_checksum(unsigned char *p, u32 size)
 {
 	u32 ret = 0;
 
Signature · 1 line
1.8.3.1
Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · On Sun, 16 Feb 2020 19:28:31 +0800 Qiujun Huang <[email protected]> wrote:

In fact, this function is only used in this file, so mark it with 'static'.

Good catch!

Thank you!

Quoted 22 lines
---
 init/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/main.c +1 -1
index f95b014..534589f 100644
@@ -335,7 +335,7 @@ static char * __init xbc_make_cmdline(const char *key)
 	return new_cmdline;
 }
 
-u32 boot_config_checksum(unsigned char *p, u32 size)
+static u32 boot_config_checksum(unsigned char *p, u32 size)
 {
 	u32 ret = 0;
 
Signature · 1 line
1.8.3.1
Signature · 1 line
Masami Hiramatsu <[email protected]>