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>
13 #include <linux/config.h>
16 #define CPP_ASMLINKAGE extern "C"
18 #define CPP_ASMLINKAGE
21 #define asmlinkage CPP_ASMLINKAGE
23 #define SYMBOL_NAME_STR(X) #X
24 #define SYMBOL_NAME(X) X
26 #define SYMBOL_NAME_LABEL(X) X##:
28 #define SYMBOL_NAME_LABEL(X) X:
32 #define __ALIGN .align 4
36 #define __ALIGN_STR ".align 4"
42 #define ALIGN_STR __ALIGN_STR
44 #define LENTRY(name) \
46 SYMBOL_NAME_LABEL(name)
49 .globl SYMBOL_NAME(name); \
58 #define ENDPROC(name) \
59 .type name STT_FUNC; \