Skip to content

Commit

Permalink
hv: vrtc: remove the unused function rtc_halted()
Browse files Browse the repository at this point in the history
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: projectacrn#861

Signed-off-by: Gao, Shiqing <[email protected]>
  • Loading branch information
shiqingg authored and acrnsi-robot committed Jul 3, 2024
1 parent 0bcf469 commit cc90135
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hypervisor/dm/vrtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit cc90135

Please sign in to comment.