mm: don't use _{g,m}fn for defining INVALID_{G,M}FN
authorJulien Grall <julien.grall@arm.com>
Tue, 20 Jun 2017 12:48:10 +0000 (14:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Jun 2017 12:48:10 +0000 (14:48 +0200)
commit725039d39ef10c6e3c59ba4a2511188281133b19
treec41ecf7e43d41d8c5f550f2ce421d65ed89e5885
parent6fb94196730f30929f1e617fd1d05daf55376664
mm: don't use _{g,m}fn for defining INVALID_{G,M}FN

INVALID_{G,M}FN are defined using static inline helpers _{g,m}fn.
This means, they cannot be used to initialize a build time static variable:

In file included from mm.c:24:0:
xen/xen/include/xen/mm.h:59:26: error: initializer element is not constant
 #define INVALID_MFN      _mfn(~0UL)

Signed-off-by: Julien Grall <julien.grall@arm.com>
Acked-by: Tim Deegan <tim@xen.org>
[jb: add parentheses and const]
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/mm.h