Commit 8ad94021 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Michael Ellerman

powerpc: annotate implicit fall throughs

There is a plan to build the kernel with -Wimplicit-fallthrough and these
places in the code produced warnings, but because we build arch/powerpc
with -Werror, they became errors.  Fix them up.

This patch produces no change in behaviour, but should be reviewed in
case these are actually bugs not intentional fallthoughs.
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent f91203e7
...@@ -809,6 +809,7 @@ static long dev_nvram_ioctl(struct file *file, unsigned int cmd, ...@@ -809,6 +809,7 @@ static long dev_nvram_ioctl(struct file *file, unsigned int cmd,
#ifdef CONFIG_PPC_PMAC #ifdef CONFIG_PPC_PMAC
case OBSOLETE_PMAC_NVRAM_GET_OFFSET: case OBSOLETE_PMAC_NVRAM_GET_OFFSET:
printk(KERN_WARNING "nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n"); printk(KERN_WARNING "nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n");
/* fall through */
case IOC_NVRAM_GET_OFFSET: { case IOC_NVRAM_GET_OFFSET: {
int part, offset; int part, offset;
......
...@@ -1471,6 +1471,7 @@ static long g5_i2s_enable(struct device_node *node, long param, long value) ...@@ -1471,6 +1471,7 @@ static long g5_i2s_enable(struct device_node *node, long param, long value)
case 2: case 2:
if (macio->type == macio_shasta) if (macio->type == macio_shasta)
break; break;
/* fall through */
default: default:
return -ENODEV; return -ENODEV;
} }
......
...@@ -4043,6 +4043,7 @@ static int do_spu_cmd(void) ...@@ -4043,6 +4043,7 @@ static int do_spu_cmd(void)
subcmd = inchar(); subcmd = inchar();
if (isxdigit(subcmd) || subcmd == '\n') if (isxdigit(subcmd) || subcmd == '\n')
termch = subcmd; termch = subcmd;
/* fall through */
case 'f': case 'f':
scanhex(&num); scanhex(&num);
if (num >= XMON_NUM_SPUS || !spu_info[num].spu) { if (num >= XMON_NUM_SPUS || !spu_info[num].spu) {
......
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