public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86: reboot.c declare port_cf9_safe before they get used
@ 2008-12-23 16:21 Jaswinder Singh
  2008-12-27 10:31 ` Ingo Molnar
  0 siblings, 1 reply; 7+ messages in thread
From: Jaswinder Singh @ 2008-12-23 16:21 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, LKML

Impact: cleanup, avoid sparse warning

Include "../pci/pci.h" for port_cf9_safe

Fixes this sparse warning:
arch/x86/kernel/reboot.c:43:6: warning: symbol 'port_cf9_safe' was not declared. Should it be static?

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
---
 arch/x86/kernel/reboot.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
index ba7b9a0..f39e871 100644
--- a/arch/x86/kernel/reboot.c
+++ b/arch/x86/kernel/reboot.c
@@ -22,6 +22,7 @@
 #endif
 
 #include <mach_ipi.h>
+#include "../pci/pci.h"
 
 
 /*
-- 
1.5.5.1




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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-23 16:21 [PATCH] x86: reboot.c declare port_cf9_safe before they get used Jaswinder Singh
@ 2008-12-27 10:31 ` Ingo Molnar
  2008-12-27 10:36   ` Jaswinder Singh Rajput
  2008-12-29  8:43   ` Jaswinder Singh Rajput
  0 siblings, 2 replies; 7+ messages in thread
From: Ingo Molnar @ 2008-12-27 10:31 UTC (permalink / raw)
  To: Jaswinder Singh; +Cc: x86 maintainers, LKML


* Jaswinder Singh <jaswinder@infradead.org> wrote:

> Impact: cleanup, avoid sparse warning
> 
> Include "../pci/pci.h" for port_cf9_safe
> 
> Fixes this sparse warning:
> arch/x86/kernel/reboot.c:43:6: warning: symbol 'port_cf9_safe' was not declared. Should it be static?
> 
> Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
> ---
>  arch/x86/kernel/reboot.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

applied to tip/x86/cleanups, thanks!

btw., this is ugly now:

> --- a/arch/x86/kernel/reboot.c
> +++ b/arch/x86/kernel/reboot.c
> @@ -22,6 +22,7 @@
>  #endif
>  
>  #include <mach_ipi.h>
> +#include "../pci/pci.h"

could you send another patch that moves arch/x86/pci/pci.h to 
arch/x86/include/asm/pci_x86.h (and update all the pci.h include sites)?

	Ingo

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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-27 10:31 ` Ingo Molnar
@ 2008-12-27 10:36   ` Jaswinder Singh Rajput
  2008-12-29  8:43   ` Jaswinder Singh Rajput
  1 sibling, 0 replies; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2008-12-27 10:36 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Jaswinder Singh, x86 maintainers, LKML

Hello Ingo,

On Sat, Dec 27, 2008 at 4:01 PM, Ingo Molnar <mingo@elte.hu> wrote:
>
>>
>>  #include <mach_ipi.h>
>> +#include "../pci/pci.h"
>
> could you send another patch that moves arch/x86/pci/pci.h to
> arch/x86/include/asm/pci_x86.h (and update all the pci.h include sites)?
>

Sure, I will send this patch today.

Thank you,

Jaswinder Singh Rajput.

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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-27 10:31 ` Ingo Molnar
  2008-12-27 10:36   ` Jaswinder Singh Rajput
@ 2008-12-29  8:43   ` Jaswinder Singh Rajput
  2008-12-29 11:08     ` Ingo Molnar
  1 sibling, 1 reply; 7+ messages in thread
From: Jaswinder Singh Rajput @ 2008-12-29  8:43 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: x86 maintainers, LKML

Hello Ingo,

On Sat, 2008-12-27 at 11:31 +0100, Ingo Molnar wrote:

> btw., this is ugly now:
> 
> > --- a/arch/x86/kernel/reboot.c
> > +++ b/arch/x86/kernel/reboot.c
> > @@ -22,6 +22,7 @@
> >  #endif
> >  
> >  #include <mach_ipi.h>
> > +#include "../pci/pci.h"
> 
> could you send another patch that moves arch/x86/pci/pci.h to 
> arch/x86/include/asm/pci_x86.h (and update all the pci.h include sites)?
> 

1. I send [PATCH] move arch/x86/pci/pci.h to
arch/x86/include/asm/pci_x86.h but I forget to write x86: before this
patch.

Please let me know which one is better option :
[PATCH]x86: move arch/x86/pci/pci.h to arch/x86/include/asm/pci_x86.h
OR
[PATCH -tip]x86: move arch/x86/pci/pci.h to
arch/x86/include/asm/pci_x86.h
OR some other name.

2. I also did not write any reason of patch this may lead confusion to
other developers, can you please provide some good reasons for this
patch.

3. I also did some cleanups in arch/x86/include/asm/pci_x86.h raised
by  ./scripts/checkpatch.pl, is this OK.

4. Can I resend above patch by solving above issues.

Thank you,

	JSR



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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-29  8:43   ` Jaswinder Singh Rajput
@ 2008-12-29 11:08     ` Ingo Molnar
  2008-12-29 17:09       ` Jesse Barnes
  0 siblings, 1 reply; 7+ messages in thread
From: Ingo Molnar @ 2008-12-29 11:08 UTC (permalink / raw)
  To: Jaswinder Singh Rajput, Jesse Barnes; +Cc: x86 maintainers, LKML


* Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:

> Hello Ingo,
> 
> On Sat, 2008-12-27 at 11:31 +0100, Ingo Molnar wrote:
> 
> > btw., this is ugly now:
> > 
> > > --- a/arch/x86/kernel/reboot.c
> > > +++ b/arch/x86/kernel/reboot.c
> > > @@ -22,6 +22,7 @@
> > >  #endif
> > >  
> > >  #include <mach_ipi.h>
> > > +#include "../pci/pci.h"
> > 
> > could you send another patch that moves arch/x86/pci/pci.h to 
> > arch/x86/include/asm/pci_x86.h (and update all the pci.h include sites)?
> > 
> 
> 1. I send [PATCH] move arch/x86/pci/pci.h to
> arch/x86/include/asm/pci_x86.h but I forget to write x86: before this
> patch.

no, your patch is fine. I routinely fix up commit logs.

Jesse, is it fine to you if we push this via the x86 tree? A couple of 
usage sites of arch/x86/pci/pci.h arose that use ../pci/pci.h kind of ugly
#include prefixes, which justifies moving the file to
arch/x86/include/asm. No change in behavior.

	Ingo

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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-29 11:08     ` Ingo Molnar
@ 2008-12-29 17:09       ` Jesse Barnes
  2008-12-29 17:18         ` Ingo Molnar
  0 siblings, 1 reply; 7+ messages in thread
From: Jesse Barnes @ 2008-12-29 17:09 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Jaswinder Singh Rajput, x86 maintainers, LKML

On Monday, December 29, 2008 3:08 am Ingo Molnar wrote:
> * Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:
> > Hello Ingo,
> >
> > On Sat, 2008-12-27 at 11:31 +0100, Ingo Molnar wrote:
> > > btw., this is ugly now:
> > > > --- a/arch/x86/kernel/reboot.c
> > > > +++ b/arch/x86/kernel/reboot.c
> > > > @@ -22,6 +22,7 @@
> > > >  #endif
> > > >
> > > >  #include <mach_ipi.h>
> > > > +#include "../pci/pci.h"
> > >
> > > could you send another patch that moves arch/x86/pci/pci.h to
> > > arch/x86/include/asm/pci_x86.h (and update all the pci.h include
> > > sites)?
> >
> > 1. I send [PATCH] move arch/x86/pci/pci.h to
> > arch/x86/include/asm/pci_x86.h but I forget to write x86: before this
> > patch.
>
> no, your patch is fine. I routinely fix up commit logs.
>
> Jesse, is it fine to you if we push this via the x86 tree? A couple of
> usage sites of arch/x86/pci/pci.h arose that use ../pci/pci.h kind of ugly
> #include prefixes, which justifies moving the file to
> arch/x86/include/asm. No change in behavior.

Yeah, that's fine.  Best to get it over with... I'll take care of any 
conflicts in my tree when I prepare my merge.

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center


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

* Re: [PATCH] x86: reboot.c declare port_cf9_safe before they get used
  2008-12-29 17:09       ` Jesse Barnes
@ 2008-12-29 17:18         ` Ingo Molnar
  0 siblings, 0 replies; 7+ messages in thread
From: Ingo Molnar @ 2008-12-29 17:18 UTC (permalink / raw)
  To: Jesse Barnes; +Cc: Jaswinder Singh Rajput, x86 maintainers, LKML


* Jesse Barnes <jbarnes@virtuousgeek.org> wrote:

> > Jesse, is it fine to you if we push this via the x86 tree? A couple of 
> > usage sites of arch/x86/pci/pci.h arose that use ../pci/pci.h kind of 
> > ugly
> > #include prefixes, which justifies moving the file to
> > arch/x86/include/asm. No change in behavior.
> 
> Yeah, that's fine.  Best to get it over with... I'll take care of any 
> conflicts in my tree when I prepare my merge.

thanks - i've added your ack. Should go Linus-wards within the next few 
days.

	Ingo

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

end of thread, other threads:[~2008-12-29 17:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-23 16:21 [PATCH] x86: reboot.c declare port_cf9_safe before they get used Jaswinder Singh
2008-12-27 10:31 ` Ingo Molnar
2008-12-27 10:36   ` Jaswinder Singh Rajput
2008-12-29  8:43   ` Jaswinder Singh Rajput
2008-12-29 11:08     ` Ingo Molnar
2008-12-29 17:09       ` Jesse Barnes
2008-12-29 17:18         ` Ingo Molnar

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