From 11aeddbbfaa78afb0ae793ed0d7d3dcb4d24d0b1 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Wed, 27 Nov 2024 09:44:53 -0800 Subject: [PATCH] serial: uart_hostlink: Use __noinline macro Use Zephy's toolchain definition instead of re-define here. Signed-off-by: Flavio Ceolin --- drivers/serial/uart_hostlink.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/serial/uart_hostlink.c b/drivers/serial/uart_hostlink.c index 396422b6e19..3fa55147a0d 100644 --- a/drivers/serial/uart_hostlink.c +++ b/drivers/serial/uart_hostlink.c @@ -6,6 +6,7 @@ #include #include +#include #include #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. */