]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/52xx: Add fallthrough in mpc52xx_wdt_ioctl()
authorTom Rix <trix@redhat.com>
Tue, 1 Jun 2021 19:02:00 +0000 (12:02 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jun 2021 07:12:05 +0000 (17:12 +1000)
commit941336d20a5d482b306c58b373cd7e0e7fd69def
tree56240f87e04399ac1e1ebda0890a2e234dfead70
parent3544aa97cf6db45ed0d7e686431c55b72a9ac95e
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: Tom Rix <trix@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210601190200.2637776-1-trix@redhat.com
arch/powerpc/platforms/52xx/mpc52xx_gpt.c