mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
x86/fpu/math-emu: Address fallthrough warnings
/home/tglx/work/kernel/linus/linux/arch/x86/math-emu/errors.c: In function ‘FPU_printall’: /home/tglx/work/kernel/linus/linux/arch/x86/math-emu/errors.c:187:9: warning: this statement may fall through [-Wimplicit-fallthrough=] tagi = FPU_Special(r); ~~~~~^~~~~~~~~~~~~~~~ /home/tglx/work/kernel/linus/linux/arch/x86/math-emu/errors.c:188:3: note: here case TAG_Valid: ^~~~ /home/tglx/work/kernel/linus/linux/arch/x86/math-emu/fpu_trig.c: In function ‘fyl2xp1’: /home/tglx/work/kernel/linus/linux/arch/x86/math-emu/fpu_trig.c:1353:7: warning: this statement may fall through [-Wimplicit-fallthrough=] if (denormal_operand() < 0) ^ /home/tglx/work/kernel/linus/linux/arch/x86/math-emu/fpu_trig.c:1356:3: note: here case TAG_Zero: Remove the pointless 'break;' after 'continue;' while at it. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
5785675dfe
commit
91be2587e8
2 changed files with 4 additions and 3 deletions
|
@ -178,13 +178,15 @@ void FPU_printall(void)
|
||||||
for (i = 0; i < 8; i++) {
|
for (i = 0; i < 8; i++) {
|
||||||
FPU_REG *r = &st(i);
|
FPU_REG *r = &st(i);
|
||||||
u_char tagi = FPU_gettagi(i);
|
u_char tagi = FPU_gettagi(i);
|
||||||
|
|
||||||
switch (tagi) {
|
switch (tagi) {
|
||||||
case TAG_Empty:
|
case TAG_Empty:
|
||||||
continue;
|
continue;
|
||||||
break;
|
|
||||||
case TAG_Zero:
|
case TAG_Zero:
|
||||||
case TAG_Special:
|
case TAG_Special:
|
||||||
|
/* Update tagi for the printk below */
|
||||||
tagi = FPU_Special(r);
|
tagi = FPU_Special(r);
|
||||||
|
/* fall through */
|
||||||
case TAG_Valid:
|
case TAG_Valid:
|
||||||
printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6d ", i,
|
printk("st(%d) %c .%04lx %04lx %04lx %04lx e%+-6d ", i,
|
||||||
getsign(r) ? '-' : '+',
|
getsign(r) ? '-' : '+',
|
||||||
|
@ -198,7 +200,6 @@ void FPU_printall(void)
|
||||||
printk("Whoops! Error in errors.c: tag%d is %d ", i,
|
printk("Whoops! Error in errors.c: tag%d is %d ", i,
|
||||||
tagi);
|
tagi);
|
||||||
continue;
|
continue;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
printk("%s\n", tag_desc[(int)(unsigned)tagi]);
|
printk("%s\n", tag_desc[(int)(unsigned)tagi]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1352,7 +1352,7 @@ static void fyl2xp1(FPU_REG *st0_ptr, u_char st0_tag)
|
||||||
case TW_Denormal:
|
case TW_Denormal:
|
||||||
if (denormal_operand() < 0)
|
if (denormal_operand() < 0)
|
||||||
return;
|
return;
|
||||||
|
/* fall through */
|
||||||
case TAG_Zero:
|
case TAG_Zero:
|
||||||
case TAG_Valid:
|
case TAG_Valid:
|
||||||
setsign(st0_ptr, getsign(st0_ptr) ^ getsign(st1_ptr));
|
setsign(st0_ptr, getsign(st0_ptr) ^ getsign(st1_ptr));
|
||||||
|
|
Loading…
Reference in a new issue