[PATCH 2/4] fix sparc32 modpost warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix these 2.6.19-rc1 build warnings from modpost:

WARNING: vmlinux - Section mismatch: reference to .init.data:boot_flags from .text between 'obp_system_intr' (at offset 0x12dd0) and 'show_cpuinfo'
WARNING: vmlinux - Section mismatch: reference to .init.data:boot_flags from .text between 'obp_system_intr' (at offset 0x12dd4) and 'show_cpuinfo'

Martin

	Signed-off-by: Martin Habets <errandir_news@xxxxxxxxxxxxxxxxx>
---
Index: linux/arch/sparc/kernel/setup.c
===================================================================
--- linux.orig/arch/sparc/kernel/setup.c	2006-10-06 01:08:29.000000000 +0100
+++ linux/arch/sparc/kernel/setup.c	2006-10-07 02:32:20.000000000 +0100
@@ -122,7 +122,7 @@
 	.index =	-1,
 };
 
-int obp_system_intr(void)
+int __init obp_system_intr(void)
 {
 	if (boot_flags & BOOTME_DEBUG) {
 		printk("OBP: system interrupted\n");
-
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux