]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: sparc/dbri: add missing fallthrough
authorRosen Penev <rosenp@gmail.com>
Wed, 6 May 2026 03:18:54 +0000 (20:18 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 May 2026 08:09:17 +0000 (10:09 +0200)
Fixes compiler error with probably newer compilers:

sound/sparc/dbri.c:595:2: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
  595 |         case 1:
      |         ^
sound/sparc/dbri.c:595:2: note: insert 'break;' to avoid fall-through
  595 |         case 1:
      |         ^
      |         break;

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260506031854.780411-1-rosenp@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/sparc/dbri.c

index 75f82a92ff44fdff1f718e2d32aa650d79285394..2f5f62079fa4a5bf792404a09691eb6e38599b7f 100644 (file)
@@ -592,6 +592,7 @@ static __u32 reverse_bytes(__u32 b, int len)
                fallthrough;
        case 2:
                b = ((b & 0xaaaaaaaa) >> 1) | ((b & 0x55555555) << 1);
+               fallthrough;
        case 1:
        case 0:
                break;