* [PATCH next-20140424] staging/cxt1e1: sparse warning corrections
@ 2014-04-26 15:53 Sami Laine
2014-04-28 0:05 ` DaeSeok Youn
0 siblings, 1 reply; 2+ messages in thread
From: Sami Laine @ 2014-04-26 15:53 UTC (permalink / raw)
To: daeseok.youn; +Cc: gregkh, devel, linux-kernel, trivial
From: Sami Laine <laine.j.sami@gmail.com>
Corrected sparse static declaration warnings.
Signed-off-by: Sami Laine <laine.j.sami@gmail.com>
---
diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
index cc2151e..2899258 100644
--- a/drivers/staging/cxt1e1/hwprobe.c
+++ b/drivers/staging/cxt1e1/hwprobe.c
@@ -40,10 +40,10 @@ struct net_device * __init c4_add_dev(hdw_info_t *, int, unsigned long,
unsigned long, int, int);
-struct s_hdw_info hdw_info[MAX_BOARDS];
+static struct s_hdw_info hdw_info[MAX_BOARDS];
-void __init
+static void __init
show_two(hdw_info_t *hi, int brdno)
{
ci_t *ci;
@@ -88,7 +88,7 @@ show_two(hdw_info_t *hi, int brdno)
}
-void __init
+static void __init
hdw_sn_get(hdw_info_t *hi, int brdno)
{
/* obtain hardware EEPROM information */
@@ -145,7 +145,7 @@ hdw_sn_get(hdw_info_t *hi, int brdno)
}
- void __init
+static void __init
prep_hdw_info(void)
{
hdw_info_t *hi;
@@ -164,7 +164,7 @@ prep_hdw_info(void)
}
}
-void
+static void
cleanup_ioremap(void)
{
hdw_info_t *hi;
@@ -187,7 +187,7 @@ cleanup_ioremap(void)
}
-void
+static void
cleanup_devs(void)
{
hdw_info_t *hi;
@@ -287,7 +287,7 @@ c4_hdw_init(struct pci_dev *pdev, int found)
return 1;
}
-status_t __init
+static status_t __init
c4hw_attach_all(void)
{
hdw_info_t *hi;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH next-20140424] staging/cxt1e1: sparse warning corrections
2014-04-26 15:53 [PATCH next-20140424] staging/cxt1e1: sparse warning corrections Sami Laine
@ 2014-04-28 0:05 ` DaeSeok Youn
0 siblings, 0 replies; 2+ messages in thread
From: DaeSeok Youn @ 2014-04-28 0:05 UTC (permalink / raw)
To: Sami Laine; +Cc: Greg KH, devel, linux-kernel, trivial
Hi,
2014-04-27 0:53 GMT+09:00 Sami Laine <laine.j.sami@gmail.com>:
> From: Sami Laine <laine.j.sami@gmail.com>
do not include this line on your patch. it is not necessary.
>
> Corrected sparse static declaration warnings.
>
> Signed-off-by: Sami Laine <laine.j.sami@gmail.com>
> ---
> diff --git a/drivers/staging/cxt1e1/hwprobe.c b/drivers/staging/cxt1e1/hwprobe.c
> index cc2151e..2899258 100644
> --- a/drivers/staging/cxt1e1/hwprobe.c
> +++ b/drivers/staging/cxt1e1/hwprobe.c
> @@ -40,10 +40,10 @@ struct net_device * __init c4_add_dev(hdw_info_t *, int, unsigned long,
> unsigned long, int, int);
>
>
> -struct s_hdw_info hdw_info[MAX_BOARDS];
> +static struct s_hdw_info hdw_info[MAX_BOARDS];
hdw_info is used in other files with "extern".
>
>
> -void __init
> +static void __init
> show_two(hdw_info_t *hi, int brdno)
> {
> ci_t *ci;
> @@ -88,7 +88,7 @@ show_two(hdw_info_t *hi, int brdno)
> }
>
>
> -void __init
> +static void __init
> hdw_sn_get(hdw_info_t *hi, int brdno)
This function is used in "linux.c"
> {
> /* obtain hardware EEPROM information */
> @@ -145,7 +145,7 @@ hdw_sn_get(hdw_info_t *hi, int brdno)
> }
>
>
> - void __init
> +static void __init
> prep_hdw_info(void)
> {
> hdw_info_t *hi;
> @@ -164,7 +164,7 @@ prep_hdw_info(void)
> }
> }
>
> -void
> +static void
> cleanup_ioremap(void)
This function is used in "linux.c"
> {
> hdw_info_t *hi;
> @@ -187,7 +187,7 @@ cleanup_ioremap(void)
> }
>
>
> -void
> +static void
> cleanup_devs(void)
This function is used in "linux.c"
> {
> hdw_info_t *hi;
> @@ -287,7 +287,7 @@ c4_hdw_init(struct pci_dev *pdev, int found)
> return 1;
> }
>
> -status_t __init
> +static status_t __init
> c4hw_attach_all(void)
This function is used in "linux.c"
> {
> hdw_info_t *hi;
And when you send a patch for this, please check maintainers with "
./scripts/get_maintainer.pl".
In case of this patch, my email is in CC list. :-)
Regards,
Daeseok Youn.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-04-28 0:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-26 15:53 [PATCH next-20140424] staging/cxt1e1: sparse warning corrections Sami Laine
2014-04-28 0:05 ` DaeSeok Youn
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.