]> xenbits.xensource.com Git - xen.git/commit
xen/mm: Introduce {G,M}FN_INVALID_INITIALIZER
authorJulien Grall <julien.grall@arm.com>
Tue, 27 Jun 2017 09:33:20 +0000 (10:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Jun 2017 10:27:50 +0000 (11:27 +0100)
commitbbbe89351275ed6ac09207fe9aeb80b606af1a4d
treea82e271d680a01e0adf38b877ce3c462d8494151
parent26c6885fe5fd01b2734c57db573d31825dcc34f5
xen/mm: Introduce {G,M}FN_INVALID_INITIALIZER

The current implementation of {G,M}FN_INVALID cannot be used to
initialize global variable because the initializer element is not a
constant.

Due to a bug in GCC 4.9 and older ([1]), it is not easy to find a common
value to initialize a variable and directly passed as an argument.

Introduce 2 news define {G,M}FN_INVALID_INITIALIZER to be used for
initializing a variable.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64856

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/include/xen/mm.h