Skip to contentSkip to conversation

fix sparc32 modpost warnings

PATCH In review Martin Habets 2 participants 2 messages Oct 10, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 fix sparc32 modpost warnings

Fix these 2.6.19-rc1 build warnings from modpost:

WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a0f8) and 'srmmu_mmu_info'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a118) and 'srmmu_mmu_info'
WARNING: vmlinux - Section mismatch: reference to .init.text:srmmu_early_allocate_ptable_skeleton from .text between 'srmmu_nocache_init' (at offset 0x1a188) and 'srmmu_mmu_info'

Martin

---
Index: linux/arch/sparc/mm/srmmu.c
=================================--- linux.orig/arch/sparc/mm/srmmu.c 2006-10-06 00:33:30.000000000 +0100
+++ linux/arch/sparc/mm/srmmu.c 2006-10-07 02:35:52.000000000 +0100
@@ -402,7 +402,7 @@
srmmu_nocache_end = SRMMU_NOCACHE_VADDR + srmmu_nocache_size;
}

-void srmmu_nocache_init(void)
+void __init srmmu_nocache_init(void)
{
unsigned int bitmap_bits;
pgd_t *pgd;

#1 lore raw

From: Martin Habets <[email protected]>
Date: Tue, 10 Oct 2006 16:45:48 +0100

Quoted 9 lines

Fix these 2.6.19-rc1 build warnings from modpost:

WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a0f8) and 'srmmu_mmu_info'
WARNING: vmlinux - Section mismatch: reference to .init.text:__alloc_bootmem from .text between 'srmmu_nocache_init' (at offset 0x1a118) and 'srmmu_mmu_info'
WARNING: vmlinux - Section mismatch: reference to .init.text:srmmu_early_allocate_ptable_skeleton from .text between 'srmmu_nocache_init' (at offset 0x1a188) and 'srmmu_mmu_info'

Martin

This patch looks great, applied.

Thanks a lot.