public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] make kvm_smp_prepare_boot_cpu() static
@ 2008-06-30 22:19 Adrian Bunk
  2008-07-01  6:42 ` -Wmissing-prototypes (was: make foo() static) Gerd Hoffmann
  2008-07-05 11:13 ` [2.6 patch] make kvm_smp_prepare_boot_cpu() static Avi Kivity
  0 siblings, 2 replies; 4+ messages in thread
From: Adrian Bunk @ 2008-06-30 22:19 UTC (permalink / raw)
  To: Gerd Hoffmann, Avi Kivity; +Cc: kvm, linux-kernel

This patch makes the needlessly global kvm_smp_prepare_boot_cpu() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---
a03ee2a21c4e40483712d453a4f803980186c59f 
diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
index 87edf1c..d02def0 100644
--- a/arch/x86/kernel/kvmclock.c
+++ b/arch/x86/kernel/kvmclock.c
@@ -113,7 +113,7 @@ static void kvm_setup_secondary_clock(void)
 #endif
 
 #ifdef CONFIG_SMP
-void __init kvm_smp_prepare_boot_cpu(void)
+static void __init kvm_smp_prepare_boot_cpu(void)
 {
 	WARN_ON(kvm_register_clock("primary cpu clock"));
 	native_smp_prepare_boot_cpu();


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

* -Wmissing-prototypes (was: make foo() static)
  2008-06-30 22:19 [2.6 patch] make kvm_smp_prepare_boot_cpu() static Adrian Bunk
@ 2008-07-01  6:42 ` Gerd Hoffmann
  2008-07-01  7:17   ` Adrian Bunk
  2008-07-05 11:13 ` [2.6 patch] make kvm_smp_prepare_boot_cpu() static Avi Kivity
  1 sibling, 1 reply; 4+ messages in thread
From: Gerd Hoffmann @ 2008-07-01  6:42 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

Adrian Bunk wrote:

> This patch makes the needlessly global kvm_smp_prepare_boot_cpu() static.

Hmm, maybe we should build the kernel with -Wmissing-prototypes?
That should make gcc print a warning for that ...

cheers,
  Gerd

-- 
http://kraxel.fedorapeople.org/xenner/

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

* Re: -Wmissing-prototypes (was: make foo() static)
  2008-07-01  6:42 ` -Wmissing-prototypes (was: make foo() static) Gerd Hoffmann
@ 2008-07-01  7:17   ` Adrian Bunk
  0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2008-07-01  7:17 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: linux-kernel

On Tue, Jul 01, 2008 at 08:42:59AM +0200, Gerd Hoffmann wrote:
> Adrian Bunk wrote:
> 
> > This patch makes the needlessly global kvm_smp_prepare_boot_cpu() static.
> 
> Hmm, maybe we should build the kernel with -Wmissing-prototypes?
> That should make gcc print a warning for that ...

I started 3 or 4 years ago cleaning up the kernel for 
-Wmissing-prototypes and I'm still working on it.

Many parts of the kernel now compile cleanly or nearly cleanly, but 
looking at e.g. arch/ I know what kind of answers I would get if 
suggesting adding -Wmissing-prototypes today...

> cheers,
>   Gerd

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: [2.6 patch] make kvm_smp_prepare_boot_cpu() static
  2008-06-30 22:19 [2.6 patch] make kvm_smp_prepare_boot_cpu() static Adrian Bunk
  2008-07-01  6:42 ` -Wmissing-prototypes (was: make foo() static) Gerd Hoffmann
@ 2008-07-05 11:13 ` Avi Kivity
  1 sibling, 0 replies; 4+ messages in thread
From: Avi Kivity @ 2008-07-05 11:13 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Gerd Hoffmann, kvm, linux-kernel

Adrian Bunk wrote:
> This patch makes the needlessly global kvm_smp_prepare_boot_cpu() static.
>
>   

Applied, thanks.

-- 
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.


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

end of thread, other threads:[~2008-07-05 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-30 22:19 [2.6 patch] make kvm_smp_prepare_boot_cpu() static Adrian Bunk
2008-07-01  6:42 ` -Wmissing-prototypes (was: make foo() static) Gerd Hoffmann
2008-07-01  7:17   ` Adrian Bunk
2008-07-05 11:13 ` [2.6 patch] make kvm_smp_prepare_boot_cpu() static Avi Kivity

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