All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm: fix build with gcc6
@ 2016-10-04 10:26 Jan Beulich
  2016-10-04 16:28 ` Stefano Stabellini
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2016-10-04 10:26 UTC (permalink / raw)
  To: xen-devel; +Cc: Julien Grall, Stefano Stabellini

Commit e170622f95 ("xen/arm: p2m: Re-implement p2m_set_mem_access using
p2m_{set,get}_entry") eliminated the only user of level_sizes[],
causing gcc6 to warn about the unused variable (as it's a const one
older gcc versions apparently don't care to emit a warning).

Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/arm/p2m.c
+++ b/xen/arch/arm/p2m.c
@@ -30,8 +30,6 @@ static unsigned int __read_mostly p2m_ro
 unsigned int __read_mostly p2m_ipa_bits;
 
 /* Helpers to lookup the properties of each level */
-static const paddr_t level_sizes[] =
-    { ZEROETH_SIZE, FIRST_SIZE, SECOND_SIZE, THIRD_SIZE };
 static const paddr_t level_masks[] =
     { ZEROETH_MASK, FIRST_MASK, SECOND_MASK, THIRD_MASK };
 static const uint8_t level_orders[] =




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] arm: fix build with gcc6
  2016-10-04 10:26 [PATCH] arm: fix build with gcc6 Jan Beulich
@ 2016-10-04 16:28 ` Stefano Stabellini
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Stabellini @ 2016-10-04 16:28 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel, Julien Grall, Stefano Stabellini

On Tue, 4 Oct 2016, Jan Beulich wrote:
> Commit e170622f95 ("xen/arm: p2m: Re-implement p2m_set_mem_access using
> p2m_{set,get}_entry") eliminated the only user of level_sizes[],
> causing gcc6 to warn about the unused variable (as it's a const one
> older gcc versions apparently don't care to emit a warning).
> 
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> --- a/xen/arch/arm/p2m.c
> +++ b/xen/arch/arm/p2m.c
> @@ -30,8 +30,6 @@ static unsigned int __read_mostly p2m_ro
>  unsigned int __read_mostly p2m_ipa_bits;
>  
>  /* Helpers to lookup the properties of each level */
> -static const paddr_t level_sizes[] =
> -    { ZEROETH_SIZE, FIRST_SIZE, SECOND_SIZE, THIRD_SIZE };
>  static const paddr_t level_masks[] =
>      { ZEROETH_MASK, FIRST_MASK, SECOND_MASK, THIRD_MASK };
>  static const uint8_t level_orders[] =
> 
> 
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-04 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 10:26 [PATCH] arm: fix build with gcc6 Jan Beulich
2016-10-04 16:28 ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.