qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 575dde: exec: Fix prototype of phys_mem_set_a


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 575dde: exec: Fix prototype of phys_mem_set_alloc and rela...
Date: Mon, 14 Oct 2013 09:30:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 575ddeb459f622a114cbfe37d220c0519ec9c2a4
      
https://github.com/qemu/qemu/commit/575ddeb459f622a114cbfe37d220c0519ec9c2a4
  Author: Stefan Weil <address@hidden>
  Date:   2013-10-14 (Mon, 14 Oct 2013)

  Changed paths:
    M exec.c
    M include/exec/exec-all.h
    M target-s390x/kvm.c

  Log Message:
  -----------
  exec: Fix prototype of phys_mem_set_alloc and related functions

phys_mem_alloc and its assigned values qemu_anon_ram_alloc and
legacy_s390_alloc must have identical argument lists.

legacy_s390_alloc uses the size parameter to call mmap, so size_t is
good enough for all of them.

This patch fixes compiler errors on i686 Linux hosts:

  CC    alpha-softmmu/exec.o
exec.c:752:51: error:
 initialization from incompatible pointer type [-Werror]
exec.c: In function 'qemu_ram_alloc_from_ptr':
exec.c:1139:32: error:
 comparison of distinct pointer types lacks a cast [-Werror]
exec.c: In function 'qemu_ram_remap':
exec.c:1283:21: error:
 comparison of distinct pointer types lacks a cast [-Werror]

Signed-off-by: Stefan Weil <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Message-id: address@hidden
Signed-off-by: Anthony Liguori <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]