linux-mips
[Top] [All Lists]

[PATCH 2/2] MIPS: tlbex: Guard tlbmiss_handler_setup_pgd

To: ralf@linux-mips.org, Jayachandran C <jchandra@broadcom.com>
Subject: [PATCH 2/2] MIPS: tlbex: Guard tlbmiss_handler_setup_pgd
From: Tony Wu <tung7970@gmail.com>
Date: Wed, 17 Jul 2013 18:01:29 +0800
Cc: linux-mips@linux-mips.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=5x4TZyTQIR+JwivSz4s2GpgVdwcd74Ryl0x/YLsOgXM=; b=wxELLum1n+gWwCtim/kv49FiNntQWkjFQBumUBP3mU9aNzQiyKIXhLggfQ1P55Sjyv RXGqib5pRLoeEtPjV3B4hPzjBMekMwbAJAXlxen0Sl+ysQOwNC8pWVY2jRd/9+z0E2q5 0dZPkZ3OT38kY2CXwbt1c9UM4lfHLMM6fvlSa2/QqVJUdcJiEF3r3yuNCVLFWm0yYypt 6as9MWi8KbiBOMOz833XddXuOiLn+u7VmvVrHXnV4S1RoxOtyCRdAeqeK895ITN3YXTf 06Log6B0erGiTmqbJ+Xia3GHXzblICR7ws3i52CEMoaEbJO/Tcr2DaZo3uhuMPpB2vmb 9N1A==
In-reply-to: <20130717175840-tung7970@googlemail.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20130717175840-tung7970@googlemail.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
tlbmiss_handler_setup_pgd* are only referenced when
CONFIG_MIPS_PGD_C0_CONTEXT is defined.

Signed-off-by: Tony Wu <tung7970@gmail.com>
Cc: Jayachandran C <jchandra@broadcom.com>
---
 arch/mips/mm/tlb-funcs.S |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/mm/tlb-funcs.S b/arch/mips/mm/tlb-funcs.S
index 30a494d..79bca31 100644
--- a/arch/mips/mm/tlb-funcs.S
+++ b/arch/mips/mm/tlb-funcs.S
@@ -16,10 +16,12 @@
 
 #define FASTPATH_SIZE  128
 
+#ifdef CONFIG_MIPS_PGD_C0_CONTEXT
 LEAF(tlbmiss_handler_setup_pgd)
        .space          16 * 4
 END(tlbmiss_handler_setup_pgd)
 EXPORT(tlbmiss_handler_setup_pgd_end)
+#endif
 
 LEAF(handle_tlbm)
        .space          FASTPATH_SIZE * 4
-- 
1.7.10.2


<Prev in Thread] Current Thread [Next in Thread>