diff --git a/arch/x86_64/src/common/up_allocateheap.c b/arch/x86_64/src/common/up_allocateheap.c index b7fbbce4b2..88a0d1dc40 100644 --- a/arch/x86_64/src/common/up_allocateheap.c +++ b/arch/x86_64/src/common/up_allocateheap.c @@ -67,7 +67,7 @@ const uintptr_t g_idle_topstack = (uintptr_t)&_ebss + * ****************************************************************************/ -void up_allocate_heap(FAR void **heap_start, size_t *heap_size) +void up_allocate_heap(void **heap_start, size_t *heap_size) { board_autoled_on(LED_HEAPALLOCATE); diff --git a/arch/x86_64/src/common/up_assert.c b/arch/x86_64/src/common/up_assert.c index 410598a2ce..02400a1e5c 100644 --- a/arch/x86_64/src/common/up_assert.c +++ b/arch/x86_64/src/common/up_assert.c @@ -89,7 +89,7 @@ static void x86_64_stackdump(uint64_t sp, uint64_t stack_top) ****************************************************************************/ #ifdef CONFIG_ARCH_USBDUMP -static int usbtrace_syslog(FAR const char *fmt, ...) +static int usbtrace_syslog(const char *fmt, ...) { va_list ap; @@ -101,7 +101,7 @@ static int usbtrace_syslog(FAR const char *fmt, ...) return OK; } -static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) +static int assert_tracecallback(struct usbtrace_s *trace, void *arg) { usbtrace_trprintf(usbtrace_syslog, trace->event, trace->value); return 0; @@ -115,7 +115,7 @@ static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) #ifdef CONFIG_ARCH_STACKDUMP static void up_dumpstate(void) { - FAR struct tcb_s *rtcb = running_task(); + struct tcb_s *rtcb = running_task(); uint64_t sp = up_getsp(); uint64_t ustackbase; uint64_t ustacksize; diff --git a/arch/x86_64/src/common/up_exit.c b/arch/x86_64/src/common/up_exit.c index 8671fcba97..edb12220a2 100644 --- a/arch/x86_64/src/common/up_exit.c +++ b/arch/x86_64/src/common/up_exit.c @@ -61,9 +61,9 @@ ****************************************************************************/ #ifdef CONFIG_DUMP_ON_EXIT -static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) +static void _up_dumponexit(struct tcb_s *tcb, void *arg) { - FAR struct filelist *filelist; + struct filelist *filelist; int i; int j; diff --git a/arch/x86_64/src/intel64/intel64_tickless.c b/arch/x86_64/src/intel64/intel64_tickless.c index 87bcd2297a..dcd51c50d9 100644 --- a/arch/x86_64/src/intel64/intel64_tickless.c +++ b/arch/x86_64/src/intel64/intel64_tickless.c @@ -27,10 +27,10 @@ * * void sim_timer_initialize(void): Initializes the timer facilities. * Called early in the initialization sequence (by up_initialize()). - * int up_timer_gettime(FAR struct timespec *ts): Returns the current + * int up_timer_gettime(struct timespec *ts): Returns the current * time from the platform specific time source. * int up_timer_cancel(void): Cancels the interval timer. - * int up_timer_start(FAR const struct timespec *ts): Start (or re-starts) + * int up_timer_start(const struct timespec *ts): Start (or re-starts) * the interval timer. * * The RTOS will provide the following interfaces for use by the platform- @@ -137,14 +137,14 @@ void up_timer_initialize(void) return; } -static inline uint64_t up_ts2tick(FAR const struct timespec *ts) +static inline uint64_t up_ts2tick(const struct timespec *ts) { return ROUND_INT_DIV((uint64_t)ts->tv_nsec * x86_64_timer_freq, NS_PER_SEC) + (uint64_t)ts->tv_sec * x86_64_timer_freq; } -static inline void up_tick2ts(uint64_t tick, FAR struct timespec *ts) +static inline void up_tick2ts(uint64_t tick, struct timespec *ts) { ts->tv_sec = (tick / x86_64_timer_freq); ts->tv_nsec = (uint64_t)(ROUND_INT_DIV((tick % x86_64_timer_freq) * @@ -182,7 +182,7 @@ static inline void up_tmr_sync_down(void) * sim_timer_initialize() was called). This function is functionally * equivalent to: * - * int clock_gettime(clockid_t clockid, FAR struct timespec *ts); + * int clock_gettime(clockid_t clockid, struct timespec *ts); * * when clockid is CLOCK_MONOTONIC. * @@ -207,7 +207,7 @@ static inline void up_tmr_sync_down(void) * ****************************************************************************/ -int up_timer_gettime(FAR struct timespec *ts) +int up_timer_gettime(struct timespec *ts) { uint64_t diff = (rdtsc() - g_start_tsc); up_tick2ts(diff, ts); @@ -247,7 +247,7 @@ int up_timer_gettime(FAR struct timespec *ts) * ****************************************************************************/ -int up_timer_cancel(FAR struct timespec *ts) +int up_timer_cancel(struct timespec *ts) { up_tmr_sync_up(); @@ -298,7 +298,7 @@ int up_timer_cancel(FAR struct timespec *ts) * ****************************************************************************/ -int up_timer_start(FAR const struct timespec *ts) +int up_timer_start(const struct timespec *ts) { uint64_t ticks; @@ -375,7 +375,7 @@ void up_timer_expire(void) * ****************************************************************************/ -int up_alarm_cancel(FAR struct timespec *ts) +int up_alarm_cancel(struct timespec *ts) { up_tmr_sync_up(); @@ -418,7 +418,7 @@ int up_alarm_cancel(FAR struct timespec *ts) * ****************************************************************************/ -int up_alarm_start(FAR const struct timespec *ts) +int up_alarm_start(const struct timespec *ts) { uint64_t ticks; diff --git a/arch/x86_64/src/intel64/up_createstack.c b/arch/x86_64/src/intel64/up_createstack.c index 80b997c000..d3653f8df2 100644 --- a/arch/x86_64/src/intel64/up_createstack.c +++ b/arch/x86_64/src/intel64/up_createstack.c @@ -88,7 +88,7 @@ * ****************************************************************************/ -int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) +int up_create_stack(struct tcb_s *tcb, size_t stack_size, uint8_t ttype) { #ifdef CONFIG_TLS_ALIGNED /* The allocated stack size must not exceed the maximum possible for the diff --git a/arch/x86_64/src/intel64/up_releasestack.c b/arch/x86_64/src/intel64/up_releasestack.c index e14f948437..6636a2f4a6 100644 --- a/arch/x86_64/src/intel64/up_releasestack.c +++ b/arch/x86_64/src/intel64/up_releasestack.c @@ -77,7 +77,7 @@ * ****************************************************************************/ -void up_release_stack(FAR struct tcb_s *dtcb, uint8_t ttype) +void up_release_stack(struct tcb_s *dtcb, uint8_t ttype) { /* Is there a stack allocated? */ diff --git a/arch/x86_64/src/intel64/up_rtc.c b/arch/x86_64/src/intel64/up_rtc.c index a7ef203bae..195a93e47e 100644 --- a/arch/x86_64/src/intel64/up_rtc.c +++ b/arch/x86_64/src/intel64/up_rtc.c @@ -139,7 +139,7 @@ int up_rtc_initialize(void) * ************************************************************************************/ -int up_rtc_gettime(FAR struct timespec *tp) +int up_rtc_gettime(struct timespec *tp) { uint64_t tmp; @@ -165,7 +165,7 @@ int up_rtc_gettime(FAR struct timespec *tp) * ************************************************************************************/ -int up_rtc_settime(FAR const struct timespec *tp) +int up_rtc_settime(const struct timespec *tp) { /* What so ever.. */ diff --git a/arch/x86_64/src/intel64/up_stackframe.c b/arch/x86_64/src/intel64/up_stackframe.c index ad7f978e9e..60f7f544fc 100644 --- a/arch/x86_64/src/intel64/up_stackframe.c +++ b/arch/x86_64/src/intel64/up_stackframe.c @@ -69,9 +69,9 @@ * ****************************************************************************/ -FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) +void *up_stack_frame(struct tcb_s *tcb, size_t frame_size) { - FAR void *ret; + void *ret; /* Align the frame_size */ @@ -89,7 +89,7 @@ FAR void *up_stack_frame(FAR struct tcb_s *tcb, size_t frame_size) /* Save the adjusted stack values in the struct tcb_s */ - tcb->stack_base_ptr = (FAR uint8_t *)tcb->stack_base_ptr + frame_size; + tcb->stack_base_ptr = (uint8_t *)tcb->stack_base_ptr + frame_size; tcb->adj_stack_size -= frame_size; /* And return the pointer to the allocated region */