[PATCH 2.6.11-rc3-mm1] mips: add unknown page size string

From: Yoichi Yuasa
Date: Mon Feb 07 2005 - 08:51:49 EST


This patch had fixed the following warning.

arch/mips/lib-32/dump_tlb.c: In function 'dump_tlb':
arch/mips/lib-32/dump_tlb.c:69: warning: control may reach end of non-void function 'msk2str' being inlined

This patch adds return value, when page size is not match.

Yoichi

Signed-off-by: Yoichi Yuasa <yuasa@xxxxxxxxxxxxxx>

diff -urN -X dontdiff a-orig/arch/mips/lib-32/dump_tlb.c a/arch/mips/lib-32/dump_tlb.c
--- a-orig/arch/mips/lib-32/dump_tlb.c Thu Feb 3 10:55:52 2005
+++ a/arch/mips/lib-32/dump_tlb.c Sun Feb 6 11:59:29 2005
@@ -32,6 +32,8 @@
case PM_256M: return "256Mb";
#endif
}
+
+ return "unknown";
}

#define BARRIER() \
diff -urN -X dontdiff a-orig/arch/mips/lib-64/dump_tlb.c a/arch/mips/lib-64/dump_tlb.c
--- a-orig/arch/mips/lib-64/dump_tlb.c Thu Feb 3 10:57:16 2005
+++ a/arch/mips/lib-64/dump_tlb.c Sun Feb 6 11:59:59 2005
@@ -32,6 +32,8 @@
case PM_256M: return "256Mb";
#endif
}
+
+ return "unknown";
}

#define BARRIER() \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/