diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-08-18 18:34:47 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-08-22 10:21:44 -0400 |
commit | c4df32c80d04987023844c1fb13734a872c8f2e2 (patch) | |
tree | b0fe7cfe2f2a16fcad02a03a19c8b190f47f90e9 | |
parent | 6fbd856950b41345ad5c893613efebdc0c356bc7 (diff) |
export.h: remove VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR()
With the special case handling for Blackfin and Metag was removed by
commit 94e58e0ac312 ("export.h: remove code for prefixing symbols with
underscore"), VMLINUX_SYMBOL() is no-op.
Replace the remaining usages, then remove the definition of
VMLINUX_SYMBOL() and VMLINUX_SYMBOL_STR().
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | certs/system_certificates.S | 16 | ||||
-rw-r--r-- | include/linux/export.h | 7 | ||||
-rw-r--r-- | usr/initramfs_data.S | 4 |
3 files changed, 10 insertions, 17 deletions
diff --git a/certs/system_certificates.S b/certs/system_certificates.S index 3918ff7235ed..8f29058adf93 100644 --- a/certs/system_certificates.S +++ b/certs/system_certificates.S | |||
@@ -5,8 +5,8 @@ | |||
5 | __INITRODATA | 5 | __INITRODATA |
6 | 6 | ||
7 | .align 8 | 7 | .align 8 |
8 | .globl VMLINUX_SYMBOL(system_certificate_list) | 8 | .globl system_certificate_list |
9 | VMLINUX_SYMBOL(system_certificate_list): | 9 | system_certificate_list: |
10 | __cert_list_start: | 10 | __cert_list_start: |
11 | #ifdef CONFIG_MODULE_SIG | 11 | #ifdef CONFIG_MODULE_SIG |
12 | .incbin "certs/signing_key.x509" | 12 | .incbin "certs/signing_key.x509" |
@@ -15,21 +15,21 @@ __cert_list_start: | |||
15 | __cert_list_end: | 15 | __cert_list_end: |
16 | 16 | ||
17 | #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE | 17 | #ifdef CONFIG_SYSTEM_EXTRA_CERTIFICATE |
18 | .globl VMLINUX_SYMBOL(system_extra_cert) | 18 | .globl system_extra_cert |
19 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE | 19 | .size system_extra_cert, CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE |
20 | VMLINUX_SYMBOL(system_extra_cert): | 20 | system_extra_cert: |
21 | .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0 | 21 | .fill CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE, 1, 0 |
22 | 22 | ||
23 | .align 4 | 23 | .align 4 |
24 | .globl VMLINUX_SYMBOL(system_extra_cert_used) | 24 | .globl system_extra_cert_used |
25 | VMLINUX_SYMBOL(system_extra_cert_used): | 25 | system_extra_cert_used: |
26 | .int 0 | 26 | .int 0 |
27 | 27 | ||
28 | #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */ | 28 | #endif /* CONFIG_SYSTEM_EXTRA_CERTIFICATE */ |
29 | 29 | ||
30 | .align 8 | 30 | .align 8 |
31 | .globl VMLINUX_SYMBOL(system_certificate_list_size) | 31 | .globl system_certificate_list_size |
32 | VMLINUX_SYMBOL(system_certificate_list_size): | 32 | system_certificate_list_size: |
33 | #ifdef CONFIG_64BIT | 33 | #ifdef CONFIG_64BIT |
34 | .quad __cert_list_end - __cert_list_start | 34 | .quad __cert_list_end - __cert_list_start |
35 | #else | 35 | #else |
diff --git a/include/linux/export.h b/include/linux/export.h index b768d6dd3c90..c363bde21bbe 100644 --- a/include/linux/export.h +++ b/include/linux/export.h | |||
@@ -10,13 +10,6 @@ | |||
10 | * hackers place grumpy comments in header files. | 10 | * hackers place grumpy comments in header files. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #define __VMLINUX_SYMBOL(x) x | ||
14 | #define __VMLINUX_SYMBOL_STR(x) #x | ||
15 | |||
16 | /* Indirect, so macros are expanded before pasting. */ | ||
17 | #define VMLINUX_SYMBOL(x) __VMLINUX_SYMBOL(x) | ||
18 | #define VMLINUX_SYMBOL_STR(x) __VMLINUX_SYMBOL_STR(x) | ||
19 | |||
20 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
21 | struct kernel_symbol | 14 | struct kernel_symbol |
22 | { | 15 | { |
diff --git a/usr/initramfs_data.S b/usr/initramfs_data.S index b28da799f6a6..d07648f05bbf 100644 --- a/usr/initramfs_data.S +++ b/usr/initramfs_data.S | |||
@@ -30,8 +30,8 @@ __irf_start: | |||
30 | .incbin __stringify(INITRAMFS_IMAGE) | 30 | .incbin __stringify(INITRAMFS_IMAGE) |
31 | __irf_end: | 31 | __irf_end: |
32 | .section .init.ramfs.info,"a" | 32 | .section .init.ramfs.info,"a" |
33 | .globl VMLINUX_SYMBOL(__initramfs_size) | 33 | .globl __initramfs_size |
34 | VMLINUX_SYMBOL(__initramfs_size): | 34 | __initramfs_size: |
35 | #ifdef CONFIG_64BIT | 35 | #ifdef CONFIG_64BIT |
36 | .quad __irf_end - __irf_start | 36 | .quad __irf_end - __irf_start |
37 | #else | 37 | #else |