Skip to content

Commit 3ae919c

Browse files
masahir0ygregkh
authored andcommitted
alpha: remove __init annotation from exported page_is_ram()
commit 6ccbd7f upstream. EXPORT_SYMBOL and __init is a bad combination because the .init.text section is freed up after the initialization. Commit c5a1303 ("ACPI/APEI: Add parameter check before error injection") exported page_is_ram(), hence the __init annotation should be removed. This fixes the modpost warning in ARCH=alpha builds: WARNING: modpost: vmlinux: page_is_ram: EXPORT_SYMBOL used for init symbol. Remove __init or EXPORT_SYMBOL. Fixes: c5a1303 ("ACPI/APEI: Add parameter check before error injection") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cbce265 commit 3ae919c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/alpha/kernel/setup.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ setup_memory(void *kernel_end)
385385
#endif /* CONFIG_BLK_DEV_INITRD */
386386
}
387387

388-
int __init
389-
page_is_ram(unsigned long pfn)
388+
int page_is_ram(unsigned long pfn)
390389
{
391390
struct memclust_struct * cluster;
392391
struct memdesc_struct * memdesc;

0 commit comments

Comments
 (0)