public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c
@ 2013-12-14 13:30 Rashika Kheria
  2013-12-14 20:57 ` Josh Triplett
  0 siblings, 1 reply; 3+ messages in thread
From: Rashika Kheria @ 2013-12-14 13:30 UTC (permalink / raw)
  To: linux-kernel; +Cc: K. Y. Srinivasan, Haiyang Zhang, devel, josh

This patch marks the function hv_synic_free_cpu() as static in hv.c
because it is not used outside this file.

Thus, it also eliminates the following warning in hv.c:
drivers/hv/hv.c:304:6: warning: no previous prototype for ‘hv_synic_free_cpu’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/hv/hv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
index f0c5e07..bcb4950 100644
--- a/drivers/hv/hv.c
+++ b/drivers/hv/hv.c
@@ -301,7 +301,7 @@ err:
 	return -ENOMEM;
 }
 
-void hv_synic_free_cpu(int cpu)
+static void hv_synic_free_cpu(int cpu)
 {
 	kfree(hv_context.event_dpc[cpu]);
 	if (hv_context.synic_event_page[cpu])
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c
  2013-12-14 13:30 [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c Rashika Kheria
@ 2013-12-14 20:57 ` Josh Triplett
  2013-12-14 22:11   ` KY Srinivasan
  0 siblings, 1 reply; 3+ messages in thread
From: Josh Triplett @ 2013-12-14 20:57 UTC (permalink / raw)
  To: Rashika Kheria; +Cc: linux-kernel, K. Y. Srinivasan, Haiyang Zhang, devel

On Sat, Dec 14, 2013 at 07:00:06PM +0530, Rashika Kheria wrote:
> This patch marks the function hv_synic_free_cpu() as static in hv.c
> because it is not used outside this file.
> 
> Thus, it also eliminates the following warning in hv.c:
> drivers/hv/hv.c:304:6: warning: no previous prototype for ‘hv_synic_free_cpu’ [-Wmissing-prototypes]
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

>  drivers/hv/hv.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> index f0c5e07..bcb4950 100644
> --- a/drivers/hv/hv.c
> +++ b/drivers/hv/hv.c
> @@ -301,7 +301,7 @@ err:
>  	return -ENOMEM;
>  }
>  
> -void hv_synic_free_cpu(int cpu)
> +static void hv_synic_free_cpu(int cpu)
>  {
>  	kfree(hv_context.event_dpc[cpu]);
>  	if (hv_context.synic_event_page[cpu])
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c
  2013-12-14 20:57 ` Josh Triplett
@ 2013-12-14 22:11   ` KY Srinivasan
  0 siblings, 0 replies; 3+ messages in thread
From: KY Srinivasan @ 2013-12-14 22:11 UTC (permalink / raw)
  To: Josh Triplett, Rashika Kheria
  Cc: linux-kernel@vger.kernel.org, Haiyang Zhang,
	devel@linuxdriverproject.org

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1531 bytes --]



> -----Original Message-----
> From: Josh Triplett [mailto:josh@joshtriplett.org]
> Sent: Saturday, December 14, 2013 12:57 PM
> To: Rashika Kheria
> Cc: linux-kernel@vger.kernel.org; KY Srinivasan; Haiyang Zhang;
> devel@linuxdriverproject.org
> Subject: Re: [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static
> in hv.c
> 
> On Sat, Dec 14, 2013 at 07:00:06PM +0530, Rashika Kheria wrote:
> > This patch marks the function hv_synic_free_cpu() as static in hv.c
> > because it is not used outside this file.
> >
> > Thus, it also eliminates the following warning in hv.c:
> > drivers/hv/hv.c:304:6: warning: no previous prototype for ‘hv_synic_free_cpu’
> [-Wmissing-prototypes]
> >
> > Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
> 
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Thank you.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
> 
> >  drivers/hv/hv.c |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c
> > index f0c5e07..bcb4950 100644
> > --- a/drivers/hv/hv.c
> > +++ b/drivers/hv/hv.c
> > @@ -301,7 +301,7 @@ err:
> >  	return -ENOMEM;
> >  }
> >
> > -void hv_synic_free_cpu(int cpu)
> > +static void hv_synic_free_cpu(int cpu)
> >  {
> >  	kfree(hv_context.event_dpc[cpu]);
> >  	if (hv_context.synic_event_page[cpu])
> > --
> > 1.7.9.5
> >
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-14 22:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-14 13:30 [PATCH] drivers: hv: Mark the function hv_synic_free_cpu() as static in hv.c Rashika Kheria
2013-12-14 20:57 ` Josh Triplett
2013-12-14 22:11   ` KY Srinivasan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox