Skip to content

Commit 83f6747

Browse files
BernardXiongRbb666
authored andcommitted
[smart] Fix parameter issue when calling the __arch_get_hw_counter function.
1 parent 1c46d55 commit 83f6747

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

components/lwp/vdso/user/arch/aarch64/vdso_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ __rt_vdso_getcoarse(struct timespec *ts, clockid_t clock, const struct vdso_data
4646

4747
do {
4848
seq = rt_vdso_read_begin(vd);
49-
cycles = __arch_get_hw_counter(vd->clock_mode, vd);
49+
cycles = __arch_get_hw_counter();
5050
if (unlikely(!rt_vdso_cycles_ready(cycles)))
5151
return -1;
5252
ns = vdso_ts->tv_nsec;

components/lwp/vdso/user/arch/aarch64/vdso_sys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
: "=r" (tmp) : "r" (_val)); \
3434
} while (0)
3535

36-
static inline uint64_t __arch_get_hw_counter()
36+
static inline uint64_t __arch_get_hw_counter(void)
3737
{
3838
uint64_t res;
3939

components/lwp/vdso/user/arch/risc-v/vdso_sys.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ __rt_vdso_getcoarse(struct timespec *ts, clockid_t clock, const struct vdso_data
5353

5454
do {
5555
seq = rt_vdso_read_begin(vd);
56-
cycles = __arch_get_hw_counter(vd->clock_mode, vd);
56+
cycles = __arch_get_hw_counter();
5757
if (unlikely(!rt_vdso_cycles_ready(cycles)))
5858
return -1;
5959
ns = vdso_ts->tv_nsec;

components/lwp/vdso/user/arch/risc-v/vdso_sys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#define arch_counter_enforce_ordering \
2828
__asm__ volatile("fence rw, rw" ::: "memory")
2929

30-
static inline uint64_t __arch_get_hw_counter()
30+
static inline uint64_t __arch_get_hw_counter(void)
3131
{
3232
uint64_t res;
3333
__asm__ volatile("rdtime %0" : "=r"(res));

0 commit comments

Comments
 (0)