common/initcall: extern linker symbols with correct types
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Oct 2013 10:58:44 +0000 (11:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Oct 2013 10:58:44 +0000 (11:58 +0100)
commit1c7964a1ea4b2f46958fdc716c7b9a06f5514fab
tree3a09411c0095d2ae17e2eaaa7a2c23b6d4f087a1
parent85c891961bf63943fc975b971f25fb90c25def0a
common/initcall: extern linker symbols with correct types

Coverity IDs 10549561054957

Coverity pointed out that we applying array operations based on an expression
which yielded singleton pointers.  The problem is actually that the externs
were typed incorrectly.

Correct the extern declaration to prevent straying into undefined behaviour,
and relying on the lenience of GCC to work.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/kernel.c