|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v5 2/3] xen/arm: Add p2m_ipa_bits
Hi Edgar,
On 06/05/15 06:28, Edgar E. Iglesias wrote:
> diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
> index 59dd23a..98f1019 100644
> --- a/xen/arch/arm/p2m.c
> +++ b/xen/arch/arm/p2m.c
> @@ -17,9 +17,11 @@
[..]
> +const unsigned int __read_mostly p2m_ipa_bits = 40;
[..]
> diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h
> index 341df55..63748ef 100644
> --- a/xen/include/asm-arm/p2m.h
> +++ b/xen/include/asm-arm/p2m.h
> @@ -10,6 +10,9 @@
>
> #define paddr_bits PADDR_BITS
>
> +/* Holds the bit size of IPAs in p2m tables. */
> +extern unsigned int p2m_ipa_bits;
> +
The two declarations of p2m_ipa_bits are different on ARM32. GCC will
fail to build with:
p2m.c:24:34: error: conflicting type qualifiers for ‘p2m_ipa_bits’
const unsigned int __read_mostly p2m_ipa_bits = 40;
^
In file included from works/xen/xen/include/asm/domain.h:8:0,
from works/xen/xen/include/xen/domain.h:6,
from works/xen/xen/include/xen/sched.h:10,
from p2m.c:2:
works/xen/xen/include/asm/p2m.h:14:21: note: previous declaration of
‘p2m_ipa_bits’ was here
extern unsigned int p2m_ipa_bits;
^
I would either drop the const in p2m.c or use a define for ARM32 in
asm-arm/p2m.h
Regards,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |