From cc9013541ffea9d2dca807292033aa73318f9daf Mon Sep 17 00:00:00 2001 From: "Gao, Shiqing" Date: Wed, 3 Jul 2024 10:49:45 +0800 Subject: [PATCH] hv: vrtc: remove the unused function `rtc_halted()` rtc_halted() is not invoked anywhere in the code. This patch removes this unused function to fix below error. error: unused function 'rtc_halted' [-Werror,-Wunused-function] Tracked-On: #861 Signed-off-by: Gao, Shiqing --- hypervisor/dm/vrtc.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hypervisor/dm/vrtc.c b/hypervisor/dm/vrtc.c index 2d10fb801..95f88606b 100644 --- a/hypervisor/dm/vrtc.c +++ b/hypervisor/dm/vrtc.c @@ -455,10 +455,6 @@ static void cmos_set_reg_val(uint8_t addr, uint8_t value) #define TRIGGER_ALARM (RTCIR_ALARM | RTCIR_INT) #define RTC_DELTA 1 /* For RTC and system time may out of sync for no more than 1s */ -static inline bool rtc_halted(struct acrn_vrtc *rtc) -{ - return ((rtc->rtcdev.reg_b & RTCSB_HALT) != 0U); -} static uint8_t vrtc_get_reg_c(struct acrn_vrtc *vrtc) {