serial: uart_hostlink: Use __noinline macro

Use Zephy's toolchain definition instead of re-define here.

Signed-off-by: Flavio Ceolin <flavio.ceolin@gmail.com>
This commit is contained in:
Flavio Ceolin 2024-11-27 09:44:53 -08:00 committed by Benjamin Cabé
commit 11aeddbbfa

View file

@ -6,6 +6,7 @@
#include <zephyr/drivers/uart.h>
#include <zephyr/kernel.h>
#include <zephyr/toolchain.h>
#include <string.h>
#define DT_DRV_COMPAT snps_hostlink_uart
@ -35,10 +36,6 @@ BUILD_ASSERT(IS_ENABLED(CONFIG_ARC));
#define HL_SYSCALL_GETCWD 17
#define HL_SYSCALL_USER 18
#ifndef __noinline
#define __noinline __attribute__((noinline))
#endif /* __noinline */
#define HL_VERSION 1
/* "No message here" mark. */