Commit:     1d6f4e60e736a00b50ec668ba1a9fe27afb083a3
Parent:     b0e86f0a3b9329bbebadb01ca935208459df18c3
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Thu Jan 17 15:21:12 2008 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Jan 17 15:38:58 2008 -0800

    mm: fix section mismatch warning in page_alloc.c
    following warning:
    WARNING: mm/built-in.o(.text+0x6864): Section mismatch: reference to 
.init.text: (between 'process_zones' and 'pageset_cpuup_callback')
    The culprit was zone_batchsize() which were annotated __devinit but used
    from process_zones() which is annotated __cpuinit.  zone_batchsize() are
    used from another function annotated __meminit so the only valid option is
    to drop the annotation of zone_batchsize() so we know it is always valid to
    use it.
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Acked-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/page_alloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index e1028fa..b2838c2 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -2566,7 +2566,7 @@ static void __meminit zone_init_free_lists(struct 
pglist_data *pgdat,
        memmap_init_zone((size), (nid), (zone), (start_pfn), MEMMAP_EARLY)
-static int __devinit zone_batchsize(struct zone *zone)
+static int zone_batchsize(struct zone *zone)
        int batch;
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