All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ps3: ps3-lpm.c compile fix
@ 2008-11-02 17:26 Alexey Dobriyan
  2008-11-03  8:20 ` Geert Uytterhoeven
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2008-11-02 17:26 UTC (permalink / raw)
  To: paulus; +Cc: linuxppc-dev

drivers/ps3/ps3-lpm.c:838: error: implicit declaration of function 'get_hard_smp_processor_id'

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 drivers/ps3/ps3-lpm.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/ps3/ps3-lpm.c
+++ b/drivers/ps3/ps3-lpm.c
@@ -22,6 +22,7 @@
 #include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/uaccess.h>
+#include <asm/smp.h>
 #include <asm/time.h>
 #include <asm/ps3.h>
 #include <asm/lv1call.h>

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

* Re: [PATCH] ps3: ps3-lpm.c compile fix
  2008-11-02 17:26 [PATCH] ps3: ps3-lpm.c compile fix Alexey Dobriyan
@ 2008-11-03  8:20 ` Geert Uytterhoeven
  2008-11-03 13:48   ` Alexey Dobriyan
  0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2008-11-03  8:20 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: linuxppc-dev, paulus

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1156 bytes --]

On Sun, 2 Nov 2008, Alexey Dobriyan wrote:
> drivers/ps3/ps3-lpm.c:838: error: implicit declaration of function 'get_hard_smp_processor_id'
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> ---
> 
>  drivers/ps3/ps3-lpm.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> --- a/drivers/ps3/ps3-lpm.c
> +++ b/drivers/ps3/ps3-lpm.c
> @@ -22,6 +22,7 @@
>  #include <linux/module.h>
>  #include <linux/interrupt.h>
>  #include <linux/uaccess.h>
> +#include <asm/smp.h>

#include <linux/smp.h>?

>  #include <asm/time.h>
>  #include <asm/ps3.h>
>  #include <asm/lv1call.h>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
> 

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010

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

* Re: [PATCH] ps3: ps3-lpm.c compile fix
  2008-11-03  8:20 ` Geert Uytterhoeven
@ 2008-11-03 13:48   ` Alexey Dobriyan
  2008-11-03 19:03     ` Geoff Levand
  0 siblings, 1 reply; 4+ messages in thread
From: Alexey Dobriyan @ 2008-11-03 13:48 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: linuxppc-dev, paulus

On Mon, Nov 03, 2008 at 09:20:28AM +0100, Geert Uytterhoeven wrote:
> On Sun, 2 Nov 2008, Alexey Dobriyan wrote:
> > drivers/ps3/ps3-lpm.c:838: error: implicit declaration of function 'get_hard_smp_processor_id'
> > 
> > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> > ---
> > 
> >  drivers/ps3/ps3-lpm.c |    1 +
> >  1 file changed, 1 insertion(+)
> > 
> > --- a/drivers/ps3/ps3-lpm.c
> > +++ b/drivers/ps3/ps3-lpm.c
> > @@ -22,6 +22,7 @@
> >  #include <linux/module.h>
> >  #include <linux/interrupt.h>
> >  #include <linux/uaccess.h>
> > +#include <asm/smp.h>
> 
> #include <linux/smp.h>?

Nope, everybody else uses asm/smp.h.

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

* Re: [PATCH] ps3: ps3-lpm.c compile fix
  2008-11-03 13:48   ` Alexey Dobriyan
@ 2008-11-03 19:03     ` Geoff Levand
  0 siblings, 0 replies; 4+ messages in thread
From: Geoff Levand @ 2008-11-03 19:03 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Geert Uytterhoeven, linuxppc-dev, paulus

Alexey Dobriyan wrote:
> On Mon, Nov 03, 2008 at 09:20:28AM +0100, Geert Uytterhoeven wrote:
>> On Sun, 2 Nov 2008, Alexey Dobriyan wrote:
>> > drivers/ps3/ps3-lpm.c:838: error: implicit declaration of function 'get_hard_smp_processor_id'
>> > 
>> > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>


Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>


>> > --- a/drivers/ps3/ps3-lpm.c
>> > +++ b/drivers/ps3/ps3-lpm.c
>> > @@ -22,6 +22,7 @@
>> >  #include <linux/module.h>
>> >  #include <linux/interrupt.h>
>> >  #include <linux/uaccess.h>
>> > +#include <asm/smp.h>
>> 
>> #include <linux/smp.h>?
> 
> Nope, everybody else uses asm/smp.h.

That doesn't quite seem like enough reason for me.

Looking at the source, I see linux/smp.h only includes
asm/smp.h when CONFIG_SMP=y, so we at least need to
include asm/smp.h to get the get_hard_smp_processor_id
def when CONFIG_SMP=n.

-Geoff

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

end of thread, other threads:[~2008-11-03 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-02 17:26 [PATCH] ps3: ps3-lpm.c compile fix Alexey Dobriyan
2008-11-03  8:20 ` Geert Uytterhoeven
2008-11-03 13:48   ` Alexey Dobriyan
2008-11-03 19:03     ` Geoff Levand

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.