linux-mips
[Top] [All Lists]

[PATCH] fix warning in tlbex.c for CONFIG_32BIT

To: linux-mips@linux-mips.org
Subject: [PATCH] fix warning in tlbex.c for CONFIG_32BIT
From: David Daney <ddaney@avtrex.com>
Date: Tue, 04 Oct 2005 21:37:02 -0700
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0.7-1.1.fc3 (X11/20050929)
For 32 bit builds CONFIG_64BIT is not defined. Should be doing #ifdef not #if.

Signed-off-by: David Daney <ddaney@avtrex.com>



diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -513,7 +513,7 @@ static __init int rel_lo(long val)

 static __init void i_LA_mostly(u32 **buf, unsigned int rs, long addr)
 {
-#if CONFIG_64BIT
+#ifdef CONFIG_64BIT
        if (!in_compat_space_p(addr)) {
                i_lui(buf, rs, rel_highest(addr));
                if (rel_higher(addr))

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