RAS: Make local function parse_ras_param() static
PATCH 1/1 RAS: Make local function parse_ras_param() static
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
drivers/ras/ras.c:32:12: warning:
symbol 'parse_ras_param' was not declared. Should it be static?
Signed-off-by Wei Yongjun <[email protected]>
--- drivers/ras/ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ras/ras.c +1 -1
@@ -29,7 +29,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);EXPORT_TRACEPOINT_SYMBOL_GPL (mc_event); -int __init parse_ras_param (char *str) +static int __init parse_ras_param (char *str) {#ifdef CONFIG_RAS_CEC parse_cec_param (str);
Borislav Petkov
AppliedQuoted 11 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Fixes the following sparse warning:
drivers/ras/ras.c:32:12: warning:
symbol 'parse_ras_param' was not declared. Should it be static?Signed-off-by Wei Yongjun <[email protected]>--- drivers/ras/ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Signature · 5 lines
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- tip-bot for Wei Yongjun
merge botRAS: Make local function parse_ras_param() static
Commit-ID: 5f0744e50db1628d6de770b92278445b3de2779f Gitweb: http://git.kernel.org/tip/5f0744e50db1628d6de770b92278445b3de2779f Author: Wei Yongjun <[email protected]> AuthorDate: Fri, 19 May 2017 11:39:12 +0200 Committer: Thomas Gleixner <[email protected]> CommitDate: Sun, 21 May 2017 21:55:12 +0200
RAS: Make local function parse_ras_param() static
Make parse_ras_param() static as it is used locally only.
Signed-off-by Wei Yongjun <[email protected]>
Signed-off-by Borislav Petkov <[email protected]>
Signed-off-by Thomas Gleixner <[email protected]>
--- drivers/ras/ras.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ras/ras.c +1 -1
@@ -29,7 +29,7 @@ EXPORT_TRACEPOINT_SYMBOL_GPL(extlog_mem_event);EXPORT_TRACEPOINT_SYMBOL_GPL (mc_event); -int __init parse_ras_param (char *str) +static int __init parse_ras_param (char *str) {#ifdef CONFIG_RAS_CEC parse_cec_param (str);