From: Sam Ravnborg Date: Tue, 27 Dec 2011 21:58:40 +0000 (+0100) Subject: of/pdt: fix section mismatch warning X-Git-Tag: v3.3-rc1~63^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75c71848f22e6381f48614da23df2a43e374b498;p=pandora-kernel.git of/pdt: fix section mismatch warning Fix the following section mismatch warning - seen when building sparc32: WARNING: vmlinux.o(.text+0x1ff9c0): Section mismatch in reference from the function kernel_tree_alloc() to the function .init.text:prom_early_alloc() The function kernel_tree_alloc() references the function __init prom_early_alloc(). This is often because kernel_tree_alloc lacks a __init annotation or the annotation of prom_early_alloc is wrong. prom_early_alloc() is annotated __init, and users of kernel_tree_alloc() is also annotated __init. So simply match the annoation of these to fix the warning. Signed-off-by: Sam Ravnborg Cc: Grant Likely Acked-by: David S. Miller Signed-off-by: Rob Herring --- Reading git-diff-tree failed