qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

hw/dma/omap_dma: Move switch 'fall through' comment to correct place

Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:

CC hw/dma/omap_dma.o
hw/dma/omap_dma.c: In function ‘omap_dma_write’:
hw/dma/omap_dma.c:1532:12: error: this statement may fall through [-Werror=implicit-fallthrough=]
1532 | if (s->model <= omap_dma_3_1)
| ^
hw/dma/omap_dma.c:1534:5: note: here
1534 | case 0x400:
| ^~~~
cc1: all warnings being treated as errors

Correctly place the 'fall through' comment.

Reported-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20190719131425.10835-3-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Philippe Mathieu-Daudé and committed by
Laurent Vivier
45a9eace 6f0dd6c5

+1 -1
+1 -1
hw/dma/omap_dma.c
··· 1531 1531 case 0x404 ... 0x4fe: 1532 1532 if (s->model <= omap_dma_3_1) 1533 1533 break; 1534 + /* fall through */ 1534 1535 case 0x400: 1535 - /* Fall through. */ 1536 1536 if (omap_dma_sys_write(s, addr, value)) 1537 1537 break; 1538 1538 return;