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
20 #define asmlinkage CPP_ASMLINKAGE
22 #define SYMBOL_NAME_STR(X) #X
23 #define SYMBOL_NAME(X) X
25 #define SYMBOL_NAME_LABEL(X) X##:
27 #define SYMBOL_NAME_LABEL(X) X:
31 #define __ALIGN .align 4
35 #define __ALIGN_STR ".align 4"
41 #define ALIGN_STR __ALIGN_STR
43 #define LENTRY(name) \
45 SYMBOL_NAME_LABEL(name)
48 .globl SYMBOL_NAME(name); \
52 .weak SYMBOL_NAME(name); \
61 #define ENDPROC(name) \
62 .type name STT_FUNC; \