[Top] [All Lists]

[PATCH] Fix build error for non-malta VSMP kernel.

Subject: [PATCH] Fix build error for non-malta VSMP kernel.
From: "Anoop P.A" <>
Date: Tue, 25 Jan 2011 12:39:15 +0530
Cc: Anoop P A <>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=QSc6cL9bFBw1WnwfS+Jpd+bmaeaG2fPGwDFgFZYWF7c=; b=Dly7NCgfUWBcztYVqDPSEa4it3sY0MhN0tTHmVoDGVAXlA9BNdacsje/nZ0+We+2Vs J2VrI/4rZoyD5KhvGuNkwEmRLR2fhh/h0RriRKglp++PzGmclaX2bFKupN26SarCREEp K/KzWgDZaEqHBrefvtf4i+U6zzgOkdDUG8QwQ=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=s4rHZNEri1m/iVgo4uf9GDrKpC+H6Ot2TAr5hX6GOZ7sPnsAYqkhNNFvKFZ+1GpqW9 lGQHAM40O4BTMJySLpmEMT0rE26ipJDw1A77K5fAfs2KX09Vnh9Uq9BRwOJAskdHmrt8 Sm7PCuDpGCZDzKK4ucOPOAH0Iye85Ysham+Pc=
Original-recipient: rfc822;
From: Anoop P A <>

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 <>
 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)
        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);
                change_c0_status(ST0_IM, STATUSF_IP0 | STATUSF_IP1 |
                                         STATUSF_IP6 | STATUSF_IP7);

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Fix build error for non-malta VSMP kernel., Anoop P.A <=