Skip to content

Commit 11aeddb

Browse files
ceolinkartben
authored andcommitted
serial: uart_hostlink: Use __noinline macro
Use Zephy's toolchain definition instead of re-define here. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent ee050e2 commit 11aeddb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/serial/uart_hostlink.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <zephyr/drivers/uart.h>
88
#include <zephyr/kernel.h>
9+
#include <zephyr/toolchain.h>
910
#include <string.h>
1011

1112
#define DT_DRV_COMPAT snps_hostlink_uart
@@ -35,10 +36,6 @@ BUILD_ASSERT(IS_ENABLED(CONFIG_ARC));
3536
#define HL_SYSCALL_GETCWD 17
3637
#define HL_SYSCALL_USER 18
3738

38-
#ifndef __noinline
39-
#define __noinline __attribute__((noinline))
40-
#endif /* __noinline */
41-
4239
#define HL_VERSION 1
4340

4441
/* "No message here" mark. */

0 commit comments

Comments
 (0)