Skip to content

Commit d5d4531

Browse files
committed
[clock_time] fix the static rt_inline issue
1 parent 55a9dc5 commit d5d4531

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/drivers/clock_time/clock_hrtimer.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006-2024, RT-Thread Development Team
2+
* Copyright (c) 2006-2026, RT-Thread Development Team
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*
@@ -34,17 +34,17 @@ rt_inline rt_clock_hrtimer_t _first_hrtimer(void)
3434
return rt_list_isempty(&_timer_list) ? RT_NULL : rt_list_first_entry(&_timer_list, struct rt_clock_hrtimer, node);
3535
}
3636

37-
static unsigned long _clock_time_get_cnt(void)
37+
rt_inline unsigned long _clock_time_get_cnt(void)
3838
{
3939
return rt_clock_time_get_counter();
4040
}
4141

42-
static rt_inline rt_bool_t _cnt_before(unsigned long a, unsigned long b)
42+
rt_inline rt_bool_t _cnt_before(unsigned long a, unsigned long b)
4343
{
4444
return ((rt_base_t)(a - b)) < 0;
4545
}
4646

47-
static rt_inline rt_bool_t _cnt_after(unsigned long a, unsigned long b)
47+
rt_inline rt_bool_t _cnt_after(unsigned long a, unsigned long b)
4848
{
4949
return _cnt_before(b, a);
5050
}

0 commit comments

Comments
 (0)