All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] target-i386: Fix compiler warning (integer constant is too large)
@ 2013-09-29 15:55 Stefan Weil
  2013-09-29 19:45 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Weil @ 2013-09-29 15:55 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Stefan Weil

>From buildbot default_i386_rhel61:

  CC    i386-softmmu/target-i386/arch_memory_mapping.o
target-i386/arch_memory_mapping.c: In function 'walk_pde':
target-i386/arch_memory_mapping.c:110: warning:
 integer constant is too large for 'long' type

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 target-i386/arch_memory_mapping.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target-i386/arch_memory_mapping.c b/target-i386/arch_memory_mapping.c
index 2566a04..462f984 100644
--- a/target-i386/arch_memory_mapping.c
+++ b/target-i386/arch_memory_mapping.c
@@ -75,7 +75,7 @@ static void walk_pte2(MemoryMappingList *list,
 }
 
 /* PAE Paging or IA-32e Paging */
-#define PLM4_ADDR_MASK 0xffffffffff000 /* selects bits 51:12 */
+#define PLM4_ADDR_MASK 0xffffffffff000ULL /* selects bits 51:12 */
 
 static void walk_pde(MemoryMappingList *list, hwaddr pde_start_addr,
                      int32_t a20_mask, target_ulong start_line_addr)
-- 
1.7.10.4

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

* Re: [Qemu-devel] [Qemu-trivial] [PATCH] target-i386: Fix compiler warning (integer constant is too large)
  2013-09-29 15:55 [Qemu-devel] [PATCH] target-i386: Fix compiler warning (integer constant is too large) Stefan Weil
@ 2013-09-29 19:45 ` Michael Tokarev
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tokarev @ 2013-09-29 19:45 UTC (permalink / raw)
  To: Stefan Weil; +Cc: qemu-trivial, qemu-devel

29.09.2013 19:55, Stefan Weil wrote:
>  From buildbot default_i386_rhel61:
>
>    CC    i386-softmmu/target-i386/arch_memory_mapping.o
> target-i386/arch_memory_mapping.c: In function 'walk_pde':
> target-i386/arch_memory_mapping.c:110: warning:
>   integer constant is too large for 'long' type

Thanks, applied to the trivial-patches queue.

/mjt

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

end of thread, other threads:[~2013-09-29 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-29 15:55 [Qemu-devel] [PATCH] target-i386: Fix compiler warning (integer constant is too large) Stefan Weil
2013-09-29 19:45 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev

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.