Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
apple_spmi_pmu.c: Fixed __unused build error on GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
TrungNguyen1909 committed Mar 24, 2022
1 parent 6c9d2f9 commit 4945950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/misc/apple_spmi_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static unsigned int frq_to_period_ns(unsigned int freq_hz)
NANOSECONDS_PER_SECOND / freq_hz : 1;
}

static uint64_t __unused tick_to_ns(AppleSPMIPMUState *p, uint64_t tick)
static uint64_t G_GNUC_UNUSED tick_to_ns(AppleSPMIPMUState *p, uint64_t tick)
{
return (tick >> 15) * NANOSECONDS_PER_SECOND
+ (tick & 0x7fff) * p->tick_period;
Expand Down

0 comments on commit 4945950

Please sign in to comment.