提交 460c0422 编写于 作者: A Atsushi Nemoto 提交者: Ralf Baechle

[MIPS] Fix sparse warnings about too big constants.

    
Fix following warnings:
linux/arch/mips/kernel/setup.c:249:12: warning: constant 0xffffffff00000000 is so big it is unsigned long
linux/arch/mips/kernel/cpu-bugs64.c:209:10: warning: constant 0xffffffffffffdb9a is so big it is unsigned long
linux/arch/mips/kernel/cpu-bugs64.c:227:10: warning: constant 0xffffffffffffdb9a is so big it is unsigned long
linux/arch/mips/kernel/cpu-bugs64.c:283:10: warning: constant 0xffffffffffffdb9a is so big it is unsigned long
linux/arch/mips/kernel/cpu-bugs64.c:299:10: warning: constant 0xffffffffffffdb9a is so big it is unsigned long
Signed-off-by: NAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 e32b6993
...@@ -206,7 +206,7 @@ static inline void check_daddi(void) ...@@ -206,7 +206,7 @@ static inline void check_daddi(void)
"daddi %0, %1, %3\n\t" "daddi %0, %1, %3\n\t"
".set pop" ".set pop"
: "=r" (v), "=&r" (tmp) : "=r" (v), "=&r" (tmp)
: "I" (0xffffffffffffdb9a), "I" (0x1234)); : "I" (0xffffffffffffdb9aUL), "I" (0x1234));
set_except_vector(12, handler); set_except_vector(12, handler);
local_irq_restore(flags); local_irq_restore(flags);
...@@ -224,7 +224,7 @@ static inline void check_daddi(void) ...@@ -224,7 +224,7 @@ static inline void check_daddi(void)
"dsrl %1, %1, 1\n\t" "dsrl %1, %1, 1\n\t"
"daddi %0, %1, %3" "daddi %0, %1, %3"
: "=r" (v), "=&r" (tmp) : "=r" (v), "=&r" (tmp)
: "I" (0xffffffffffffdb9a), "I" (0x1234)); : "I" (0xffffffffffffdb9aUL), "I" (0x1234));
set_except_vector(12, handler); set_except_vector(12, handler);
local_irq_restore(flags); local_irq_restore(flags);
...@@ -280,7 +280,7 @@ static inline void check_daddiu(void) ...@@ -280,7 +280,7 @@ static inline void check_daddiu(void)
"daddu %1, %2\n\t" "daddu %1, %2\n\t"
".set pop" ".set pop"
: "=&r" (v), "=&r" (w), "=&r" (tmp) : "=&r" (v), "=&r" (w), "=&r" (tmp)
: "I" (0xffffffffffffdb9a), "I" (0x1234)); : "I" (0xffffffffffffdb9aUL), "I" (0x1234));
if (v == w) { if (v == w) {
printk("no.\n"); printk("no.\n");
...@@ -296,7 +296,7 @@ static inline void check_daddiu(void) ...@@ -296,7 +296,7 @@ static inline void check_daddiu(void)
"addiu %1, $0, %4\n\t" "addiu %1, $0, %4\n\t"
"daddu %1, %2" "daddu %1, %2"
: "=&r" (v), "=&r" (w), "=&r" (tmp) : "=&r" (v), "=&r" (w), "=&r" (tmp)
: "I" (0xffffffffffffdb9a), "I" (0x1234)); : "I" (0xffffffffffffdb9aUL), "I" (0x1234));
if (v == w) { if (v == w) {
printk("yes.\n"); printk("yes.\n");
......
...@@ -246,7 +246,7 @@ static inline int parse_rd_cmdline(unsigned long* rd_start, unsigned long* rd_en ...@@ -246,7 +246,7 @@ static inline int parse_rd_cmdline(unsigned long* rd_start, unsigned long* rd_en
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT
/* HACK: Guess if the sign extension was forgotten */ /* HACK: Guess if the sign extension was forgotten */
if (start > 0x0000000080000000 && start < 0x00000000ffffffff) if (start > 0x0000000080000000 && start < 0x00000000ffffffff)
start |= 0xffffffff00000000; start |= 0xffffffff00000000UL;
#endif #endif
end = start + size; end = start + size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册