Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ef4d2ea authored by Chen Gang's avatar Chen Gang Committed by David Howells
Browse files

kernel/system_certificate.S: use real contents instead of macro GLOBAL()



If a macro is only used within 2 times, and also its contents are
within 2 lines, recommend to expand it to shrink code line.

For our case, the macro is not portable either: some architectures'
assembler may use another character to mark newline in a macro (e.g.
'`' for arc), which will cause issue.

If still want to use macro and let it portable enough, it will also
need include additional header file (e.g "#include <linux/linkage.h>",
although it also need be fixed).


Signed-off-by: default avatarChen Gang <gang.chen@asianux.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent d2b86970
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
#include <linux/export.h>
#include <linux/init.h>

#define GLOBAL(name)	\
	.globl VMLINUX_SYMBOL(name);	\
	VMLINUX_SYMBOL(name):

	__INITRODATA

GLOBAL(system_certificate_list)
	.globl VMLINUX_SYMBOL(system_certificate_list)
VMLINUX_SYMBOL(system_certificate_list):
	.incbin "kernel/x509_certificate_list"
GLOBAL(system_certificate_list_end)
	.globl VMLINUX_SYMBOL(system_certificate_list_end)
VMLINUX_SYMBOL(system_certificate_list_end):