Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] ifdef gic_present variable that is used only by malta
@ 2010-12-01 16:31 Anoop P A
  2011-01-25 13:21 ` Ralf Baechle
  0 siblings, 1 reply; 5+ messages in thread
From: Anoop P A @ 2010-12-01 16:31 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips, linux-kernel

gic_present variable will be used only in malta platforms.Other
platforms with VSMP support will throw link error.
 

Signed-off-by: Anoop P A <anoop.pa@gmail.com>
---
 arch/mips/kernel/smp-mt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
index 43e7cdc..5b91c1a 100644
--- a/arch/mips/kernel/smp-mt.c
+++ b/arch/mips/kernel/smp-mt.c
@@ -151,6 +151,7 @@ static void vsmp_send_ipi_mask(const struct cpumask
*mask, unsigned int action)
 
 static void __cpuinit vsmp_init_secondary(void)
 {
+#ifdef CONFIG_MIPS_MALTA
 	extern int gic_present;
 
 	/* This is Malta specific: IPI,performance and timer inetrrupts */
@@ -158,6 +159,7 @@ static void __cpuinit vsmp_init_secondary(void)
 		change_c0_status(ST0_IM, STATUSF_IP3 | STATUSF_IP4 |
 					 STATUSF_IP6 | STATUSF_IP7);
 	else
+#endif /* CONFIG_MIPS_MALTA */
 		change_c0_status(ST0_IM, STATUSF_IP0 | STATUSF_IP1 |
 					 STATUSF_IP6 | STATUSF_IP7);
 }
-- 
1.7.0.4

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

* Re: [PATCH] ifdef gic_present variable that is used only by malta
  2010-12-01 16:31 [PATCH] ifdef gic_present variable that is used only by malta Anoop P A
@ 2011-01-25 13:21 ` Ralf Baechle
  2011-01-25 13:57   ` [PATCH resend] " Anoop P A
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Baechle @ 2011-01-25 13:21 UTC (permalink / raw)
  To: Anoop P A; +Cc: linux-mips, linux-kernel

Dropping this one - it's garbled.

  Ralf

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

* Re: [PATCH resend] ifdef gic_present variable that is used only by malta
  2011-01-25 13:57   ` [PATCH resend] " Anoop P A
@ 2011-01-25 13:56     ` Ralf Baechle
  2012-08-21 18:26     ` John Crispin
  1 sibling, 0 replies; 5+ messages in thread
From: Ralf Baechle @ 2011-01-25 13:56 UTC (permalink / raw)
  To: Anoop P A; +Cc: linux-mips, linux-kernel

On Tue, Jan 25, 2011 at 07:27:26PM +0530, Anoop P A wrote:

Duplicate of https://patchwork.linux-mips.org/patch/2039/ which you sent
earlier today - dropped.

  Ralf

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

* [PATCH resend] ifdef gic_present variable that is used only by malta
  2011-01-25 13:21 ` Ralf Baechle
@ 2011-01-25 13:57   ` Anoop P A
  2011-01-25 13:56     ` Ralf Baechle
  2012-08-21 18:26     ` John Crispin
  0 siblings, 2 replies; 5+ messages in thread
From: Anoop P A @ 2011-01-25 13:57 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips, linux-kernel

VSMP kernel build for non-malta platforms fails with following error

  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/mips/built-in.o: In function `vsmp_init_secondary':
smp-mt.c:(.cpuinit.text+0x23cc): undefined reference to `gic_present'
smp-mt.c:(.cpuinit.text+0x23d0): undefined reference to `gic_present'
make: *** [.tmp_vmlinux1] Error 1

gic_present variable is declared only if IRQ_GIC is selected.

Signed-off-by: Anoop P A <anoop.pa@gmail.com>
---
 arch/mips/kernel/smp-mt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/smp-mt.c b/arch/mips/kernel/smp-mt.c
index c0e8141..54235b5 100644
--- a/arch/mips/kernel/smp-mt.c
+++ b/arch/mips/kernel/smp-mt.c
@@ -151,6 +151,7 @@ static void vsmp_send_ipi_mask(const struct cpumask
*mask, unsigned int action)
 
 static void __cpuinit vsmp_init_secondary(void)
 {
+#ifdef CONFIG_IRQ_GIC
 	extern int gic_present;
 
 	/* This is Malta specific: IPI,performance and timer interrupts */
@@ -158,6 +159,7 @@ static void __cpuinit vsmp_init_secondary(void)
 		change_c0_status(ST0_IM, STATUSF_IP3 | STATUSF_IP4 |
 					 STATUSF_IP6 | STATUSF_IP7);
 	else
+#endif
 		change_c0_status(ST0_IM, STATUSF_IP0 | STATUSF_IP1 |
 					 STATUSF_IP6 | STATUSF_IP7);
 }
-- 
1.7.0.4

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

* Re: [PATCH resend] ifdef gic_present variable that is used only by malta
  2011-01-25 13:57   ` [PATCH resend] " Anoop P A
  2011-01-25 13:56     ` Ralf Baechle
@ 2012-08-21 18:26     ` John Crispin
  1 sibling, 0 replies; 5+ messages in thread
From: John Crispin @ 2012-08-21 18:26 UTC (permalink / raw)
  To: Anoop P A; +Cc: linux-mips

On 25/01/11 14:57, Anoop P A wrote:
> VSMP kernel build for non-malta platforms fails with following error
> 
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> arch/mips/built-in.o: In function `vsmp_init_secondary':
> smp-mt.c:(.cpuinit.text+0x23cc): undefined reference to `gic_present'
> smp-mt.c:(.cpuinit.text+0x23d0): undefined reference to `gic_present'
> make: *** [.tmp_vmlinux1] Error 1
> 
> gic_present variable is declared only if IRQ_GIC is selected.
> 
> Signed-off-by: Anoop P A <anoop.pa@gmail.com>


Thanks, queued for 3.7. (with a slightly different Subject)

	John

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

end of thread, other threads:[~2012-08-21 18:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01 16:31 [PATCH] ifdef gic_present variable that is used only by malta Anoop P A
2011-01-25 13:21 ` Ralf Baechle
2011-01-25 13:57   ` [PATCH resend] " Anoop P A
2011-01-25 13:56     ` Ralf Baechle
2012-08-21 18:26     ` John Crispin

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