Commit 65b4ed6e authored by David S. Miller's avatar David S. Miller

[SPARC64]: Squelch bogus gcc warning in unaligned.c due to bad flow analysis.

parent 06349d9d
...@@ -73,6 +73,14 @@ static inline int decode_access_size(unsigned int insn) ...@@ -73,6 +73,14 @@ static inline int decode_access_size(unsigned int insn)
else { else {
printk("Impossible unaligned trap. insn=%08x\n", insn); printk("Impossible unaligned trap. insn=%08x\n", insn);
die_if_kernel("Byte sized unaligned access?!?!", current_thread_info()->kregs); die_if_kernel("Byte sized unaligned access?!?!", current_thread_info()->kregs);
/* GCC should never warn that control reaches the end
* of this function without returning a value because
* die_if_kernel() is marked with attribute 'noreturn'.
* Alas, some versions do...
*/
return 0;
} }
} }
......
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