* [PATCH -next] RAS: Make local function parse_ras_param() static
@ 2017-05-16 16:10 Wei Yongjun
2017-05-17 7:13 ` Borislav Petkov
2017-05-21 19:58 ` [tip:ras/core] " tip-bot for Wei Yongjun
0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2017-05-16 16:10 UTC (permalink / raw)
To: Borislav Petkov, Ingo Molnar; +Cc: Wei Yongjun, linux-kernel
From: Wei Yongjun <weiyongjun1@huawei.com>
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 <weiyongjun1@huawei.com>
---
drivers/ras/ras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c
index 94f8038..ed4c343 100644
--- a/drivers/ras/ras.c
+++ b/drivers/ras/ras.c
@@ -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);
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH -next] RAS: Make local function parse_ras_param() static
2017-05-16 16:10 [PATCH -next] RAS: Make local function parse_ras_param() static Wei Yongjun
@ 2017-05-17 7:13 ` Borislav Petkov
2017-05-21 19:58 ` [tip:ras/core] " tip-bot for Wei Yongjun
1 sibling, 0 replies; 3+ messages in thread
From: Borislav Petkov @ 2017-05-17 7:13 UTC (permalink / raw)
To: Wei Yongjun; +Cc: Ingo Molnar, Wei Yongjun, linux-kernel
On Tue, May 16, 2017 at 04:10:34PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> 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 <weiyongjun1@huawei.com>
> ---
> drivers/ras/ras.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
--
Regards/Gruss,
Boris.
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
--
^ permalink raw reply [flat|nested] 3+ messages in thread* [tip:ras/core] RAS: Make local function parse_ras_param() static
2017-05-16 16:10 [PATCH -next] RAS: Make local function parse_ras_param() static Wei Yongjun
2017-05-17 7:13 ` Borislav Petkov
@ 2017-05-21 19:58 ` tip-bot for Wei Yongjun
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Wei Yongjun @ 2017-05-21 19:58 UTC (permalink / raw)
To: linux-tip-commits; +Cc: bp, hpa, weiyongjun1, mingo, linux-kernel, tglx
Commit-ID: 5f0744e50db1628d6de770b92278445b3de2779f
Gitweb: http://git.kernel.org/tip/5f0744e50db1628d6de770b92278445b3de2779f
Author: Wei Yongjun <weiyongjun1@huawei.com>
AuthorDate: Fri, 19 May 2017 11:39:12 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
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 <weiyongjun1@huawei.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: http://lkml.kernel.org/r/20170516161034.2973-1-weiyj.lk@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
drivers/ras/ras.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ras/ras.c b/drivers/ras/ras.c
index 94f8038..ed4c343 100644
--- a/drivers/ras/ras.c
+++ b/drivers/ras/ras.c
@@ -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);
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-21 19:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-16 16:10 [PATCH -next] RAS: Make local function parse_ras_param() static Wei Yongjun
2017-05-17 7:13 ` Borislav Petkov
2017-05-21 19:58 ` [tip:ras/core] " tip-bot for Wei Yongjun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome