Skip to content

Commit

Permalink
fix compile error on RHEL 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
pubyun committed Jun 5, 2024
1 parent 6ddc860 commit 62b92f2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kmod/uoa/uoa.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@ static int uoa_stats_percpu_show(struct seq_file *seq, void *arg)
unsigned int start;

do {
#if (RHEL_MAJOR == 9 && RHEL_MINOR < 4)
start = u64_stats_fetch_begin_irq(&s->syncp);
#else
start = u64_stats_fetch_begin(&s->syncp);
#endif
#endif
success = s->success;
miss = s->miss;
Expand All @@ -209,7 +213,11 @@ static int uoa_stats_percpu_show(struct seq_file *seq, void *arg)
saved = s->uoa_saved;
ack_fail = s->uoa_ack_fail;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
#if (RHEL_MAJOR == 9 && RHEL_MINOR < 4)
} while (u64_stats_fetch_retry_irq(&s->syncp, start));
#else
} while (u64_stats_fetch_retry(&s->syncp, start));
#endif
#endif

seq_printf(seq,
Expand Down

0 comments on commit 62b92f2

Please sign in to comment.