Commit b629f6c0 authored by Tom Rix's avatar Tom Rix Committed by Michael Ellerman

powerpc/52xx: Add fallthrough in mpc52xx_wdt_ioctl()

With gcc 10.3, there is this compiler error:

  compiler.h:56:26: error: this statement may fall through
  mpc52xx_gpt.c:586:2: note: here
    586 |  case WDIOC_GETTIMEOUT:
        |  ^~~~

So add the fallthrough pseudo keyword.
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210601190200.2637776-1-trix@redhat.com
parent 9733862e
...@@ -582,6 +582,7 @@ static long mpc52xx_wdt_ioctl(struct file *file, unsigned int cmd, ...@@ -582,6 +582,7 @@ static long mpc52xx_wdt_ioctl(struct file *file, unsigned int cmd,
if (ret) if (ret)
break; break;
/* fall through and return the timeout */ /* fall through and return the timeout */
fallthrough;
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
/* we need to round here as to avoid e.g. the following /* we need to round here as to avoid e.g. the following
......
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