[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 03/32] dump: const-qualify the buf of WriteCoreDumpFu
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [PULL 03/32] dump: const-qualify the buf of WriteCoreDumpFunction |
Date: |
Mon, 3 Mar 2014 12:11:54 -0500 |
From: qiaonuohan <address@hidden>
WriteCoreDumpFunction is a function pointer that points to the function used to
write content in "buf" into core file, so "buf" should be const-qualify.
Signed-off-by: Qiao Nuohan <address@hidden>
Reviewed-by: Laszlo Ersek <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
dump.c | 2 +-
include/qom/cpu.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dump.c b/dump.c
index 80a9116..42622de 100644
--- a/dump.c
+++ b/dump.c
@@ -99,7 +99,7 @@ static void dump_error(DumpState *s, const char *reason)
dump_cleanup(s);
}
-static int fd_write_vmcore(void *buf, size_t size, void *opaque)
+static int fd_write_vmcore(const void *buf, size_t size, void *opaque)
{
DumpState *s = opaque;
size_t written_size;
diff --git a/include/qom/cpu.h b/include/qom/cpu.h
index 367eda1..d734be8 100644
--- a/include/qom/cpu.h
+++ b/include/qom/cpu.h
@@ -28,7 +28,8 @@
#include "qemu/tls.h"
#include "qemu/typedefs.h"
-typedef int (*WriteCoreDumpFunction)(void *buf, size_t size, void *opaque);
+typedef int (*WriteCoreDumpFunction)(const void *buf, size_t size,
+ void *opaque);
/**
* vaddr:
--
1.8.1.4
- [Qemu-devel] [PULL 01/32] QMP: Allow dot separated dict path arguments in qmp-shell, (continued)
- [Qemu-devel] [PULL 01/32] QMP: Allow dot separated dict path arguments in qmp-shell, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 04/32] dump: add argument to write_elfxx_notes, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 07/32] dump: add API to write elf notes to buffer, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 08/32] dump: add support for lzo/snappy, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 09/32] dump: add members to DumpState and init some of them, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 05/32] dump: add API to write header of flatten format, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 11/32] dump: add API to write dump_bitmap, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 06/32] dump: add API to write vmcore, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 12/32] dump: add APIs to operate DataCache, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 10/32] dump: add API to write dump header, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 03/32] dump: const-qualify the buf of WriteCoreDumpFunction,
Luiz Capitulino <=
- [Qemu-devel] [PULL 14/32] dump: make kdump-compressed format available for 'dump-guest-memory', Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 13/32] dump: add API to write dump pages, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 15/32] Define the architecture for compressed dump format, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 16/32] dump: add 'query-dump-guest-memory-capability' command, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 17/32] qmp: Check for returned data from __json_read in get_events, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 19/32] monitor: Remove left-over code in do_info_profile., Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 18/32] qerror: Improve QERR_DEVICE_NOT_ACTIVE message, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 22/32] tests/qapi-schema: Cover simple argument types, Luiz Capitulino, 2014/03/03
- [Qemu-devel] [PULL 20/32] tests/qapi-schema: Actually check successful QMP command response, Luiz Capitulino, 2014/03/03