Commit:     e6b33220845d4702590ecbe356787e59c8d914ae
Parent:     a5e58a61420e99dd08685f622d4dc666bf07e9a5
Author:     Randy Dunlap <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:37:32 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:37 2007 -0700

    x86-64: Calgary: fix section mismatch warnings in tce
    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 
    Signed-off-by: Randy Dunlap <[EMAIL PROTECTED]>
    Signed-off-by: Muli Ben-Yehuda <[EMAIL PROTECTED]>
    Cc: Andi Kleen <[EMAIL PROTECTED]>
    Cc: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 arch/x86_64/kernel/tce.c |    2 +-
 include/asm-x86_64/tce.h |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/x86_64/kernel/tce.c b/arch/x86_64/kernel/tce.c
index 821527e..e3f2569 100644
--- a/arch/x86_64/kernel/tce.c
+++ b/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 --git a/include/asm-x86_64/tce.h b/include/asm-x86_64/tce.h
index dbb047f..cd955d3 100644
--- a/include/asm-x86_64/tce.h
+++ b/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 */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to