Trivial patches for 2013-05-18
Subsystems (2)
Hello. We accumulated several more patches in the trivial patch queue, all of which are simple, easy to verify and safe. One of the patches are authored by me, -- this one removes a few more double-includes in sources, because we were getting separate patches removing double includes in single place lately, so I went on and checked the rest of the tree for double includes.
As for previous pull requests, I include whole patch below for reference, because it's rather small.
Please consider applying.
Thanks,
/mjt
The following changes since commit 489ed4bbae309a6d897f6e037481c4c04f0737b5:
target-mips: fix incorrect behaviour for EXTP (2013-05-17 19:29:40 +0200)
are available in the git repository at:
git://git.corpit.ru/qemu.git trivial-patches
for you to fetch changes up to d2ad50210b35c2685640f7df931a0fccb49334f7:
target-moxie: replace target_phys_addr_t with hwaddr (2013-05-18 16:35:12 +0400)
----------------------------------------------------------------
Christophe Lyon (1):
fix /proc/self/maps output
Ed Maste (1):
Rename hexdump to avoid FreeBSD libutil conflict
Hu Tao (1):
target-moxie: replace target_phys_addr_t with hwaddr
Michael Tokarev (1):
remove some double-includes
Qiao Nuohan (1):
Remove twice include of qemu-common.h
liguang (1):
translate: remove redundantly included qemu/timer.h
audio/audio_win_int.c | 1 - block/win32-aio.c | 1 - hw/arm/highbank.c | 1 - hw/audio/marvell_88w8618.c | 1 - hw/dma/pl330.c | 4 ++-- hw/mips/mips_malta.c | 1 - hw/misc/lm32_sys.c | 1 - hw/ppc/spapr.c | 2 -- hw/ppc/spapr_hcall.c | 1 - hw/timer/exynos4210_rtc.c | 1 - include/hw/i386/pc.h | 1 - include/qapi/qmp/qlist.h | 1 - include/qemu-common.h | 2 +- include/qemu/config-file.h | 1 - linux-user/syscall.c | 4 ++-- monitor.c | 1 - page_cache.c | 1 - slirp/misc.c | 2 -- target-moxie/helper.c | 2 +- target-ppc/kvm.c | 2 -- tests/tcg/linux-test.c | 1 - translate-all.c | 1 - util/hexdump.c | 2 +- util/iov.c | 2 +- 24 files changed, 8 insertions(+), 29 deletions(-)
audio/audio_win_int.c +0 -1
@@ -1,7 +1,6 @@/* public domain */ #include "qemu-common.h" -#include "audio.h" #define AUDIO_CAP "win-int"#include <windows.h>
block/win32-aio.c +0 -1
@@ -25,7 +25,6 @@#include "qemu/timer.h" #include "block/block_int.h" #include "qemu/module.h" -#include "qemu-common.h" #include "block/aio.h" #include "raw-aio.h" #include "qemu/event_notifier.h"
hw/arm/highbank.c +0 -1
@@ -24,7 +24,6 @@#include "net/net.h" #include "sysemu/sysemu.h" #include "hw/boards.h" -#include "hw/sysbus.h" #include "sysemu/blockdev.h" #include "exec/address-spaces.h"
hw/audio/marvell_88w8618.c +0 -1
@@ -12,7 +12,6 @@#include "hw/sysbus.h" #include "hw/hw.h" #include "hw/i2c/i2c.h" -#include "hw/sysbus.h" #include "audio/audio.h" #define MP_AUDIO_SIZE 0x00001000
hw/dma/pl330.c +2 -2
@@ -1157,7 +1157,7 @@ static int pl330_exec_cycle(PL330Chan *channel)if (PL330_ERR_DEBUG >1 ) {DB_PRINT ("PL330 read from memory @%08x (size = %08x):\n" , q->addr, len); -hexdump ((char *)buf, stderr,"" , len); +qemu_hexdump ((char *)buf, stderr,"" , len); } fifo_res =pl330_fifo_push (&s->fifo, buf, len, q->tag);if (fifo_res ==PL330_FIFO_OK ) {
@@ -1189,7 +1189,7 @@ static int pl330_exec_cycle(PL330Chan *channel)if (PL330_ERR_DEBUG >1 ) {DB_PRINT ("PL330 read from memory @%08x (size = %08x):\n" , q->addr, len); -hexdump ((char *)buf, stderr,"" , len); +qemu_hexdump ((char *)buf, stderr,"" , len); }if (q->inc) { q->addr += len;
hw/mips/mips_malta.c +0 -1
@@ -37,7 +37,6 @@#include "sysemu/char.h" #include "sysemu/sysemu.h" #include "sysemu/arch_init.h" -#include "hw/boards.h" #include "qemu/log.h" #include "hw/mips/bios.h" #include "hw/ide.h"
hw/misc/lm32_sys.c +0 -1
@@ -34,7 +34,6 @@#include "qemu/log.h" #include "qemu/error-report.h" #include "sysemu/sysemu.h" -#include "qemu/log.h" enum {R_CTRL =0 ,
hw/ppc/spapr.c +0 -2
@@ -43,8 +43,6 @@#include "hw/ppc/xics.h" #include "hw/pci/msi.h" -#include "sysemu/kvm.h" -#include "kvm_ppc.h" #include "hw/pci/pci.h" #include "exec/address-spaces.h"
hw/ppc/spapr_hcall.c +0 -1
@@ -1,6 +1,5 @@#include "sysemu/sysemu.h" #include "cpu.h" -#include "sysemu/sysemu.h" #include "helper_regs.h" #include "hw/ppc/spapr.h" #include "mmu-hash64.h"
hw/timer/exynos4210_rtc.c +0 -1
@@ -31,7 +31,6 @@#include "hw/ptimer.h" #include "hw/hw.h" -#include "qemu/timer.h" #include "sysemu/sysemu.h" #include "hw/arm/exynos4210.h"
include/hw/i386/pc.h +0 -1
@@ -7,7 +7,6 @@#include "hw/isa/isa.h" #include "hw/block/fdc.h" #include "net/net.h" -#include "exec/memory.h" #include "hw/i386/ioapic.h" /* PC-style peripherals (also used by other machines). */
include/qapi/qmp/qlist.h +0 -1
@@ -15,7 +15,6 @@#include "qapi/qmp/qobject.h" #include "qemu/queue.h" -#include "qemu/queue.h" typedef struct QListEntry { QObject *value;
include/qemu-common.h +1 -1
@@ -443,7 +443,7 @@ int mod_utf8_codepoint(const char *s, size_t n, char **end);* Hexdump a buffer to a file. An optional string prefix is added to every line */ -void hexdump (const char *buf,FILE *fp,const char *prefix,size_t size); +void qemu_hexdump (const char *buf,FILE *fp,const char *prefix,size_t size);/* vector definitions */ #ifdef __ALTIVEC__
include/qemu/config-file.h +0 -1
@@ -4,7 +4,6 @@#include <stdio.h> #include "qemu/option.h" #include "qapi/error.h" -#include "qemu/option.h" QemuOptsList *qemu_find_opts (const char *group);QemuOptsList *qemu_find_opts_err (const char *group,Error **errp);
linux-user/syscall.c +2 -2
@@ -5050,10 +5050,10 @@ static int open_self_maps(void *cpu_env, int fd) }if (h2g_valid (min) &&h2g_valid (max)) {dprintf (fd, TARGET_ABI_FMT_lx"-" TARGET_ABI_FMT_lx -" %c%c%c%c %08" PRIx64" %02x:%02x %d%s%s\n" , +" %c%c%c%c %08" PRIx64" %02x:%02x %d %s%s\n" ,h2g (min),h2g (max), flag_r, flag_w, flag_x, flag_p, offset, dev_maj, dev_min, inode, - path[0 ] ?" " :"" , path); + path[0 ] ?" " :"" , path); } }
monitor.c +0 -1
@@ -63,7 +63,6 @@#ifdef CONFIG_TRACE_SIMPLE #include "trace/simple.h" #endif -#include "ui/qemu-spice.h" #include "exec/memory.h" #include "qmp-commands.h" #include "hmp.h"
page_cache.c +0 -1
@@ -21,7 +21,6 @@#include <sys/types.h> #include <stdbool.h> #include <glib.h> -#include <strings.h> #include "qemu-common.h" #include "migration/page_cache.h"
slirp/misc.c +0 -2
@@ -242,8 +242,6 @@ strdup(str) }#endif -#include "monitor/monitor.h" -void lprint (const char *format, ...) {va_list args;
target-moxie/helper.c +1 -1
@@ -116,7 +116,7 @@ int cpu_moxie_handle_mmu_fault(CPUMoxieState *env, target_ulong address,return 1 ; } -target_phys_addr_t cpu_get_phys_page_debug (CPUState *env,target_ulong addr) +hwaddr cpu_get_phys_page_debug (CPUState *env,target_ulong addr) {return addr; }
target-ppc/kvm.c +0 -2
@@ -30,8 +30,6 @@#include "cpu.h" #include "sysemu/cpus.h" #include "sysemu/device_tree.h" -#include "hw/sysbus.h" -#include "hw/ppc/spapr.h" #include "mmu-hash64.h" #include "hw/sysbus.h"
tests/tcg/linux-test.c +0 -1
@@ -39,7 +39,6 @@#include <dirent.h> #include <setjmp.h> #include <sys/shm.h> -#include <sched.h> #define TESTPATH "/tmp/linux-test.tmp"#define TESTPORT 7654
translate-all.c +0 -1
@@ -55,7 +55,6 @@#else #include "exec/address-spaces.h" #endif -#include "qemu/timer.h" #include "exec/cputlb.h" #include "translate-all.h"
util/hexdump.c +1 -1
@@ -15,7 +15,7 @@#include "qemu-common.h" -void hexdump (const char *buf,FILE *fp,const char *prefix,size_t size) +void qemu_hexdump (const char *buf,FILE *fp,const char *prefix,size_t size) {unsigned int b;
util/iov.c +1 -1
@@ -225,7 +225,7 @@ void iov_hexdump(const struct iovec *iov, const unsigned int iov_cnt, size = size > limit ? limit : size; buf =g_malloc (size);iov_to_buf (iov, iov_cnt,0 , buf, size); -hexdump (buf, fp, prefix, size); +qemu_hexdump (buf, fp, prefix, size);g_free (buf); }
Pulled. Thanks.
Regards,
Anthony Liguori