summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/nvram_64.c
diff options
context:
space:
mode:
authorStephen Rothwell2018-11-28 23:28:30 +0100
committerMichael Ellerman2018-12-04 09:45:01 +0100
commit8ad940217cce2b6ccc8d8cc7156e9aea34ae5573 (patch)
tree3cc1fb16cb0bbb5f0daad99d78cd057d43ee6499 /arch/powerpc/kernel/nvram_64.c
parentpowerpc/mm: remove unused function prototype (diff)
downloadkernel-qcow2-linux-8ad940217cce2b6ccc8d8cc7156e9aea34ae5573.tar.gz
kernel-qcow2-linux-8ad940217cce2b6ccc8d8cc7156e9aea34ae5573.tar.xz
kernel-qcow2-linux-8ad940217cce2b6ccc8d8cc7156e9aea34ae5573.zip
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: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/kernel/nvram_64.c')
-rw-r--r--arch/powerpc/kernel/nvram_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
index 22e9d281324d..06e2eda2430e 100644
--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -809,6 +809,7 @@ static long dev_nvram_ioctl(struct file *file, unsigned int cmd,
#ifdef CONFIG_PPC_PMAC
case OBSOLETE_PMAC_NVRAM_GET_OFFSET:
printk(KERN_WARNING "nvram: Using obsolete PMAC_NVRAM_GET_OFFSET ioctl\n");
+ /* fall through */
case IOC_NVRAM_GET_OFFSET: {
int part, offset;