4 * Copyright (c) 2005-2007 Analog Devices Inc.
6 * SPDX-License-Identifier: GPL-2.0+
9 #ifndef _LINUX_LINKAGE_H
10 #define _LINUX_LINKAGE_H
12 #include <asm/linkage.h>
15 #define CPP_ASMLINKAGE extern "C"
17 #define CPP_ASMLINKAGE
21 #define asmlinkage CPP_ASMLINKAGE
24 #define SYMBOL_NAME_STR(X) #X
25 #define SYMBOL_NAME(X) X
27 #define SYMBOL_NAME_LABEL(X) X##:
29 #define SYMBOL_NAME_LABEL(X) X:
33 #define __ALIGN .align 4
37 #define __ALIGN_STR ".align 4"
43 #define ALIGN_STR __ALIGN_STR
45 #define LENTRY(name) \
47 SYMBOL_NAME_LABEL(name)
50 .globl SYMBOL_NAME(name); \
54 .weak SYMBOL_NAME(name); \
63 #define ENDPROC(name) \
64 .type name STT_FUNC; \