* [PATCH v2 next] fpga: dfl: n3000-nios: Make m10_n3000_info static
@ 2020-09-17 2:12 YueHaibing
2020-09-17 2:18 ` Moritz Fischer
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2020-09-17 2:12 UTC (permalink / raw)
To: hao.wu, trix, mdf, yilun.xu; +Cc: linux-fpga, linux-kernel, YueHaibing
Fix sparse warning:
drivers/fpga/dfl-n3000-nios.c:392:23: warning:
symbol 'm10_n3000_info' was not declared. Should it be static?
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/fpga/dfl-n3000-nios.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/fpga/dfl-n3000-nios.c b/drivers/fpga/dfl-n3000-nios.c
index 5088f8f0e0cd..686813b59d33 100644
--- a/drivers/fpga/dfl-n3000-nios.c
+++ b/drivers/fpga/dfl-n3000-nios.c
@@ -389,7 +389,7 @@ static int n3000_nios_init_done_check(struct n3000_nios *ns)
return ret;
}
-struct spi_board_info m10_n3000_info = {
+static struct spi_board_info m10_n3000_info = {
.modalias = "m10-n3000",
.max_speed_hz = 12500000,
.bus_num = 0,
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2 next] fpga: dfl: n3000-nios: Make m10_n3000_info static
2020-09-17 2:12 [PATCH v2 next] fpga: dfl: n3000-nios: Make m10_n3000_info static YueHaibing
@ 2020-09-17 2:18 ` Moritz Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Moritz Fischer @ 2020-09-17 2:18 UTC (permalink / raw)
To: YueHaibing; +Cc: hao.wu, trix, mdf, yilun.xu, linux-fpga, linux-kernel
On Thu, Sep 17, 2020 at 10:12:40AM +0800, YueHaibing wrote:
> Fix sparse warning:
>
> drivers/fpga/dfl-n3000-nios.c:392:23: warning:
> symbol 'm10_n3000_info' was not declared. Should it be static?
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
> drivers/fpga/dfl-n3000-nios.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/fpga/dfl-n3000-nios.c b/drivers/fpga/dfl-n3000-nios.c
> index 5088f8f0e0cd..686813b59d33 100644
> --- a/drivers/fpga/dfl-n3000-nios.c
> +++ b/drivers/fpga/dfl-n3000-nios.c
> @@ -389,7 +389,7 @@ static int n3000_nios_init_done_check(struct n3000_nios *ns)
> return ret;
> }
>
> -struct spi_board_info m10_n3000_info = {
> +static struct spi_board_info m10_n3000_info = {
> .modalias = "m10-n3000",
> .max_speed_hz = 12500000,
> .bus_num = 0,
> --
> 2.17.1
>
Applied to for-next,
Thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-17 2:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-17 2:12 [PATCH v2 next] fpga: dfl: n3000-nios: Make m10_n3000_info static YueHaibing
2020-09-17 2:18 ` Moritz Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).