mirror_qemu/hw/timer
Philippe Mathieu-Daudé f70fe185f9 hw/timer/aspeed_timer: Add a fall through comment
Reported by GCC9 when building with CFLAG -Wimplicit-fallthrough=2:

  hw/timer/aspeed_timer.c: In function ‘aspeed_timer_set_value’:
  hw/timer/aspeed_timer.c:283:24: error: this statement may fall through [-Werror=implicit-fallthrough=]
    283 |         if (old_reload || !t->reload) {
        |             ~~~~~~~~~~~^~~~~~~~~~~~~
  hw/timer/aspeed_timer.c:287:5: note: here
    287 |     case TIMER_REG_STATUS:
        |     ^~~~
  cc1: all warnings being treated as errors

Add the missing fall through comment.

Fixes: 1403f36447
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191218192526.13845-4-philmd@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-01-24 20:59:08 +01:00
..
Kconfig hw/timer/Kconfig: Intel 8254 PIT depends of ISA bus 2020-01-07 12:08:39 +01:00
Makefile.objs Fix typos and docs, trivial changes and RTC devices split 2019-10-25 14:17:08 +01:00
a9gtimer.c hw/core: Move cpu.c, cpu.h from qom/ to hw/core/ 2019-08-21 13:24:01 +02:00
allwinner-a10-pit.c hw/timer/allwinner-a10-pit.c: Switch to transaction-based ptimer API 2019-10-15 18:09:02 +01:00
altera_timer.c hw/timer/altera_timer.c: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
arm_mptimer.c hw/timer/arm_mptimer.c: Undo accidental rename of arm_mptimer_init() 2019-10-22 17:44:00 +01:00
arm_timer.c migration: Define VMSTATE_INSTANCE_ID_ANY 2020-01-20 09:10:23 +01:00
armv7m_systick.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
aspeed_timer.c hw/timer/aspeed_timer: Add a fall through comment 2020-01-24 20:59:08 +01:00
bcm2835_systmr.c hw/timer/bcm2835: Add the BCM2835 SYS_timer 2019-10-25 13:09:27 +01:00
cadence_ttc.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
cmsdk-apb-dualtimer.c hw/timer/cmsdk-apb-dualtimer.c: Switch to transaction-based ptimer API 2019-10-15 18:09:02 +01:00
cmsdk-apb-timer.c hw/timer/cmsdk-apb-timer.c: Switch to transaction-based ptimer API 2019-10-15 18:09:02 +01:00
digic-timer.c hw/timer/digic-timer.c: Switch to transaction-based ptimer API 2019-10-15 18:09:02 +01:00
etraxfs_timer.c hw/watchdog/etraxfs_timer.c: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
exynos4210_mct.c hw/timer/exynos4210_mct: Initialize ptimer before starting it 2019-10-22 17:44:00 +01:00
exynos4210_pwm.c hw/timer/exynos4210_pwm.c: Switch to transaction-based ptimer API 2019-10-15 18:09:02 +01:00
grlib_gptimer.c hw/timer/grlib_gptimer.c: Switch to transaction-based ptimer API 2019-10-25 13:09:12 +01:00
hpet.c hw/rtc/mc146818: Include mc146818rtc_regs.h a bit less 2019-10-24 20:33:07 +02:00
i8254.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
i8254_common.c hw/i386: Remove obsolete LoadStateHandler::load_state_old handlers 2019-11-05 23:33:12 +01:00
imx_epit.c hw/timer/imx_epit.c: Switch to transaction-based ptimer API 2019-10-15 18:09:03 +01:00
imx_gpt.c hw/timer/imx_gpt.c: Switch to transaction-based ptimer API 2019-10-15 18:09:03 +01:00
lm32_timer.c hw/timer/lm32_timer: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
milkymist-sysctl.c hw/watchdog/milkymist-sysctl.c: Switch to transaction-based ptimer API 2019-10-25 13:09:27 +01:00
mips_gictimer.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
mss-timer.c hw/timer/mss-timerc: Switch to transaction-based ptimer API 2019-10-15 18:09:03 +01:00
nrf51_timer.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
omap_gptimer.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
omap_synctimer.c Include hw/hw.h exactly where needed 2019-08-16 13:31:52 +02:00
puv3_ost.c hw/timer/puv3_ost.c: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
pxa2xx_timer.c sysemu: Split sysemu/runstate.h off sysemu/sysemu.h 2019-08-16 13:37:36 +02:00
sh_timer.c hw/timer/sh_timer: Switch to transaction-based ptimer API 2019-10-22 17:44:00 +01:00
slavio_timer.c hw/timer/slavio_timer.c: Switch to transaction-based ptimer API 2019-10-25 13:08:37 +01:00
stm32f2xx_timer.c Include hw/qdev-properties.h less 2019-08-16 13:31:53 +02:00
trace-events Fix typos and docs, trivial changes and RTC devices split 2019-10-25 14:17:08 +01:00
xilinx_timer.c hw/timer/xilinx_timer.c: Switch to transaction-based ptimer API 2019-10-24 17:16:28 +01:00