linux-mips
[Top] [All Lists]

patch: mm/init.c warning

To: "Ralf Baechle" <ralf@linux-mips.org>
Subject: patch: mm/init.c warning
From: "Kip Walker" <kwalker@broadcom.com>
Date: Thu, 24 Apr 2003 08:47:31 -0700
Cc: linux-mips@linux-mips.org
Organization: Broadcom Corp. BPBU
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
I know I'm not the first to send something like this... can we please
apply this warning fix for arch/mips/mm/init.c in the non-HIGHMEM case?

thanks,
Kip
Index: arch/mips/mm/init.c
===================================================================
RCS file: /home/cvs/linux/arch/mips/mm/init.c,v
retrieving revision 1.38.2.11
diff -u -r1.38.2.11 init.c
--- arch/mips/mm/init.c 23 Apr 2003 15:30:16 -0000      1.38.2.11
+++ arch/mips/mm/init.c 24 Apr 2003 15:46:36 -0000
@@ -151,6 +151,7 @@
 extern char _ftext, _etext, _fdata, _edata;
 extern char __init_begin, __init_end;
 
+#ifdef CONFIG_HIGHMEM
 static void __init fixrange_init (unsigned long start, unsigned long end,
        pgd_t *pgd_base)
 {
@@ -179,22 +180,25 @@
                j = 0;
        }
 }
+#endif
 
 void __init pagetable_init(void)
 {
+#ifdef CONFIG_HIGHMEM
        unsigned long vaddr;
        pgd_t *pgd, *pgd_base;
        pmd_t *pmd;
        pte_t *pte;
+#endif
 
        /* Initialize the entire pgd.  */
        pgd_init((unsigned long)swapper_pg_dir);
        pgd_init((unsigned long)swapper_pg_dir +
                 sizeof(pgd_t ) * USER_PTRS_PER_PGD);
 
+#ifdef CONFIG_HIGHMEM
        pgd_base = swapper_pg_dir;
 
-#ifdef CONFIG_HIGHMEM
        /*
         * Fixed mappings:
         */
<Prev in Thread] Current Thread [Next in Thread>