Commit 9a6caf11 authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Linus Torvalds

[PATCH] mips: add unknown page size string

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.
Signed-off-by: default avatarYoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 770b8453
...@@ -32,6 +32,8 @@ static inline const char *msk2str(unsigned int mask) ...@@ -32,6 +32,8 @@ static inline const char *msk2str(unsigned int mask)
case PM_256M: return "256Mb"; case PM_256M: return "256Mb";
#endif #endif
} }
return "unknown";
} }
#define BARRIER() \ #define BARRIER() \
......
...@@ -32,6 +32,8 @@ static inline const char *msk2str(unsigned int mask) ...@@ -32,6 +32,8 @@ static inline const char *msk2str(unsigned int mask)
case PM_256M: return "256Mb"; case PM_256M: return "256Mb";
#endif #endif
} }
return "unknown";
} }
#define BARRIER() \ #define BARRIER() \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment