android_kernel_xiaomi_sm8350/arch/sparc/kernel
Martin Habets ab5da288ce [SPARC32]: Fix sparc32 modpost warnings.
Fix these 2.6.19-rc1 build warnings from modpost:

WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'core_kernel_text' (at offset 0x3e060) and '__kernel_text_address'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'core_kernel_text' (at offset 0x3e064) and '__kernel_text_address'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'core_kernel_text' (at offset 0x3e07c) and '__kernel_text_address'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'core_kernel_text' (at offset 0x3e080) and '__kernel_text_address'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'is_ksym_addr' (at offset 0x4b3a4) and 'kallsyms_expand_symbol'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'is_ksym_addr' (at offset 0x4b3a8) and 'kallsyms_expand_symbol'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'is_ksym_addr' (at offset 0x4b3b4) and 'kallsyms_expand_symbol'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'is_ksym_addr' (at offset 0x4b3e4) and 'kallsyms_expand_symbol'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b640) and 'kallsyms_lookup_size_offset'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b644) and 'kallsyms_lookup_size_offset'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'get_symbol_pos' (at offset 0x4b654) and 'kallsyms_lookup_size_offset'
WARNING: vmlinux - Section mismatch: reference to .init.text:_einittext from .text between 'get_symbol_pos' (at offset 0x4b658) and 'kallsyms_lookup_size_offset'
WARNING: vmlinux - Section mismatch: reference to .init.text:_sinittext from .text between 'get_symbol_pos' (at offset 0x4b68c) and 'kallsyms_lookup_size_offset'

The crux of the matter is that modpost only checks the relocatable
sections. i386 vmlinux has none, so modpost does no checking on it (it
does on the modules).  However, sparc vmlinux has plenty of
relocatable sections because it is being built with 'ld -r' (to allow
for btfixup processing).  So for sparc, modpost does do a lot of
checking. Sure enough, running modpost on arch/sparc/boot/image yields
no output (i.e. all is well).

modpost.c check_sec_ref() has:
                /* We want to process only relocation sections and not .init */
                if (sechdrs[i].sh_type == SHT_RELA) {
			// check here
                } else if (sechdrs[i].sh_type == SHT_REL) {
			// check here
		}

Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-10-11 23:56:54 -07:00
..
apc.c
asm-offsets.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
auxio.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
cpu.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
devices.c [SPARC]: Simplify and correct __cpu_find_by() 2006-07-21 14:18:15 -07:00
ebus.c [PATCH] fix ancient breakage in ebus_init() 2006-09-22 17:48:56 -07:00
entry.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
errtbls.c
etrap.S
head.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
idprom.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
ioport.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
irq.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
led.c
Makefile
module.c
muldiv.c
of_device.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
pcic.c [SPARC32]: pcic.c needs asm/irq_regs.h 2006-10-11 23:56:51 -07:00
pmc.c
process.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
prom.c [SPARC32]: Fix prom.c build warning 2006-10-09 18:10:16 -07:00
ptrace.c
rtrap.S
sclow.S
semaphore.c
setup.c [SPARC32]: Fix sparc32 modpost warnings with sunzilog 2006-10-11 23:56:53 -07:00
signal.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
smp.c [SPARC]: Small smp cleanup. 2006-08-26 17:52:56 -07:00
sparc_ksyms.c [PATCH] sparc32 rwlock fix 2006-10-08 12:32:35 -07:00
sparc-stub.c
sun4c_irq.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
sun4d_irq.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
sun4d_smp.c [PATCH] sparc32 pt_regs fixes 2006-10-08 12:32:35 -07:00
sun4m_irq.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
sun4m_smp.c [PATCH] sparc32 pt_regs fixes 2006-10-08 12:32:35 -07:00
sun4setup.c
sunos_asm.S
sunos_ioctl.c
sys_solaris.c fix file specification in comments 2006-10-03 23:01:26 +02:00
sys_sparc.c [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
sys_sunos.c [PATCH] VFS: Make filldir_t and struct kstat deal in 64-bit inode numbers 2006-10-03 08:03:40 -07:00
systbls.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
tadpole.c
tick14.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
time.c [PATCH] sparc32 pt_regs fixes 2006-10-08 12:32:35 -07:00
trampoline.S
traps.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
unaligned.c
vmlinux.lds.S [SPARC32]: Fix sparc32 modpost warnings. 2006-10-11 23:56:54 -07:00
windows.c
wof.S
wuf.S