]> git.baikalelectronics.ru Git - kernel.git/commit
of/pdt: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Tue, 27 Dec 2011 21:58:40 +0000 (22:58 +0100)
committerRob Herring <rob.herring@calxeda.com>
Tue, 27 Dec 2011 22:37:30 +0000 (16:37 -0600)
commit07e8c4d241bcf935b812a5f21fa17ac0bb52599c
tree0af791199b6309dc0e8c3b9822c064a16c0fcf9d
parent76a6d23e3fecdd1b7c4a2cbddc7502e87d72361c
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 <sam@ravnborg.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
drivers/of/pdt.c