The patch titled x86-64: Calgary: fix section mismatch warnings in tce has been added to the -mm tree. Its filename is x86-64-calgary-fix-section-mismatch-warnings-in-tce.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: x86-64: Calgary: fix section mismatch warnings in tce From: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Fix section mismatch warnings: these functions are called only from __init functions. WARNING: vmlinux.o(.text+0x1861c): Section mismatch: reference to .init.text:free_bootmem (between 'free_tce_table' and 'build_tce_table') WARNING: vmlinux.o(.text+0x187e5): Section mismatch: reference to .init.text:__alloc_bootmem_low (between 'alloc_tce_table' and 'kretprobe_trampoline_holder') Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx> Signed-off-by: Muli Ben-Yehuda <muli@xxxxxxxxxx> Cc: Andi Kleen <ak@xxxxxxx> Cc: Sam Ravnborg <sam@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86_64/kernel/tce.c | 2 +- include/asm-x86_64/tce.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff -puN arch/x86_64/kernel/tce.c~x86-64-calgary-fix-section-mismatch-warnings-in-tce arch/x86_64/kernel/tce.c --- a/arch/x86_64/kernel/tce.c~x86-64-calgary-fix-section-mismatch-warnings-in-tce +++ a/arch/x86_64/kernel/tce.c @@ -131,7 +131,7 @@ done: return ret; } -int build_tce_table(struct pci_dev *dev, void __iomem *bbar) +int __init build_tce_table(struct pci_dev *dev, void __iomem *bbar) { struct iommu_table *tbl; int ret; diff -puN include/asm-x86_64/tce.h~x86-64-calgary-fix-section-mismatch-warnings-in-tce include/asm-x86_64/tce.h --- a/include/asm-x86_64/tce.h~x86-64-calgary-fix-section-mismatch-warnings-in-tce +++ a/include/asm-x86_64/tce.h @@ -41,8 +41,8 @@ struct iommu_table; extern void tce_build(struct iommu_table *tbl, unsigned long index, unsigned int npages, unsigned long uaddr, int direction); extern void tce_free(struct iommu_table *tbl, long index, unsigned int npages); -extern void* alloc_tce_table(void); -extern void free_tce_table(void *tbl); -extern int build_tce_table(struct pci_dev *dev, void __iomem *bbar); +extern void * __init alloc_tce_table(void); +extern void __init free_tce_table(void *tbl); +extern int __init build_tce_table(struct pci_dev *dev, void __iomem *bbar); #endif /* _ASM_X86_64_TCE_H */ _ Patches currently in -mm which might be from randy.dunlap@xxxxxxxxxx are kernel-doc-fix-for-kmodc.patch update-dontdiff-file.patch kernel-doc-fixes-for-pci-and-drivers-base.patch docbook-add-pipes-other-fixes.patch x86-64-calgary-fix-section-mismatch-warnings-in-tce.patch git-acpi.patch git-mtd.patch aha152x-in-debug-mode.patch git-unionfs.patch git-ipwireless_cs.patch doc-kernel-parameters-use-x86-32-tag-instead-of-ia-32.patch i2ch-kernel-doc-additions.patch irqh-fix-kernel-doc.patch docbook-bad-file-references.patch kthread-silence-bogus-section-mismatch-warning.patch profile-likely-unlikely-macros.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html