Trivial patches for 2017-05-07
Subsystems (4)
[Qemu-devel] [PULL 08/23] qga: fix compiler warnings (clang 5)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
static code analyzer complain:
qga/commands-posix.c:2127:9: warning: Null pointer passed as an argument to a 'nonnull' parameter
closedir(dp);
^~~~~~~~~~~~--- qga/commands-posix.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
qga/commands-posix.c +5 -3
@@ -2125,9 +2125,11 @@ static void transfer_memory_block(GuestMemoryBlock *mem_blk, bool sys2memblk,* we think this VM does not support online/offline memory block, * any other solution? */ -if (!dp && errno ==ENOENT ) { - result->response = -GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED ; +if (!dp) { +if (errno ==ENOENT ) { + result->response = +GUEST_MEMORY_BLOCK_RESPONSE_TYPE_OPERATION_NOT_SUPPORTED ; + } goto out1; }closedir (dp);
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 12/23] use _Static_assert in QEMU_BUILD_BUG_ON
In reply to Michael TokarevFrom: Andreas Grapentin <[email protected]>
QEMU_BUILD_BUG_ON should use C11's _Static_assert, if the compiler supports it, to provide more readable messages on failure.
We check for _Static_assert in configure, and set CONFIG_STATIC_ASSERT accordingly. QEMU_BUILD_BUG_ON invokes _Static_assert if CONFIG_STATIC_ASSERT is defined, and reverts to the old way otherwise.
That way, systems without C11 conforming compiler will still have the old messages, as verified by intentionally breaking the configure check.
the following example output was generated by inverting the condition in QEMU_BUILD_BUG_ON:
without _Static_assert:
Quoted 10 lines
In file included from /qemu/include/qemu/osdep.h:36:0,
from /qemu/qga/commands.c:13: /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’: /qemu/include/qemu/compiler.h:89:12: error: negative width in bit-field ‘<anonymous>’ struct { \ ^ /qemu/include/qemu/compiler.h:96:38: note: in expansion of macro QEMU_BUILD_BUG_ON_STRUCT’ #define QEMU_BUILD_BUG_ON(x) typedef QEMU_BUILD_BUG_ON_STRUCT(x) \ ^~~~~~~~~~~~~~~~~~~~~~~~/qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’
Quoted 8 lines
QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *)); \
^~~~~~~~~~~~~~~~~
/qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’
atomic_load_acquire(ptr)
^~~~~~~~~~~~~~~~~~~
/qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’
bool finished = atomic_mb_read(&gei->finished);
^~~~~~~~~~~~~~with _Static_assert:
Quoted 15 lines
In file included from /qemu/include/qemu/osdep.h:36:0,
from /qemu/qga/commands.c:13: /qemu/qga/commands.c: In function ‘qmp_guest_exec_status’: /qemu/include/qemu/compiler.h:94:30: error: static assertion failed: "not expecting: sizeof(*&gei->finished) > sizeof(void *)" #define QEMU_BUILD_BUG_ON(x) _Static_assert(!(x), #x) ^ /qemu/include/qemu/atomic.h:146:5: note: in expansion of macro ‘QEMU_BUILD_BUG_ON’ QEMU_BUILD_BUG_ON(sizeof(*ptr) > sizeof(void *)); \ ^~~~~~~~~~~~~~~~~ /qemu/include/qemu/atomic.h:417:5: note: in expansion of macro ‘atomic_load_acquire’ atomic_load_acquire(ptr) ^~~~~~~~~~~~~~~~~~~ /qemu/qga/commands.c:160:21: note: in expansion of macro ‘atomic_mb_read’ bool finished = atomic_mb_read(&gei->finished); ^~~~~~~~~~~~~~
--- configure | 18 ++++++++++++++++++ include/qemu/compiler.h | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-)
configure +18 -0
@@ -4853,6 +4853,20 @@ EOF fi ########################################## +# check for _Static_assert() + +have_static_assert=no +cat > $TMPC << EOF +_Static_assert(1, "success"); +int main(void) { + return 0; +} +EOF +if compile_prog "" "" ; then + have_static_assert=yes +fi + +########################################## # End of CC checks # After here, no more $cc or $ld runs
@@ -5848,6 +5862,10 @@ if test "$have_sysmacros" = "yes" ; then echo "CONFIG_SYSMACROS=y" >> $config_host_mak fi +if test "$have_static_assert" = "yes" ; then + echo "CONFIG_STATIC_ASSERT=y" >> $config_host_mak +fi + # Hold two types of flag: # CONFIG_THREAD_SETNAME_BYTHREAD - we've got a way of setting the name on # a thread we have a handle to
include/qemu/compiler.h +3 -1
@@ -82,7 +82,9 @@ int:(x) ? -1 : 1; \ } -#ifdef __COUNTER__ +#if defined(CONFIG_STATIC_ASSERT ) +#define QEMU_BUILD_BUG_ON (x) _Static_assert(!(x), "not expecting: " #x) +#elif defined(__COUNTER__)#define QEMU_BUILD_BUG_ON (x) typedef QEMU_BUILD_BUG_ON_STRUCT(x) \ glue(qemu_build_bug_on__, __COUNTER__) __attribute__((unused))#else
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
In reply to Michael TokarevFrom: "sochin.jiang fix wrong parameter comments in channel-file.h" <[email protected]>
--- include/io/channel-file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/io/channel-file.h +1 -1
@@ -71,7 +71,7 @@ qio_channel_file_new_fd(int fd);/** * qio_channel_file_new_path: -* @fd: the file descriptor +* @path: the file path * @flags: the open flags (O_RDONLY|O_WRONLY|O_RDWR, etc) * @mode: the file creation mode if O_WRONLY is set in @flags * @errp: pointer to initialized error object
Signature · 1 line
2.11.0
The following changes since commit 12a95f320a36ef66f724a49bb05e4fb553ac5dbe:
Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
are available in the git repository at:
git://git.corpit.ru/qemu.git tags/trivial-patches-fetch
for you to fetch changes up to 311875781e549af91a3216d34c6ef40420bab435:
tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
----------------------------------------------------------------
trivial patches for 2017-05-07
----------------------------------------------------------------
Andreas Grapentin (1):
use _Static_assert in QEMU_BUILD_BUG_ON
Chris Webb (1):
virtfs: allow a device id to be specified in the -virtfs option
Craig Jellick (1):
Add 'none' as type for drive's if option
Eric Blake (2):
tests: Ignore more test executables
tests: Ignore another built executable (test-hmp)
Fam Zheng (3):
block: Make 'replication_state' an enum
virtio-blk: Remove useless condition around g_free()
tests: Remove redundant assignment
Ishani Chugh (1):
Remove reduntant qemu: from error functions
KONRAD Frederic (1):
ppc_booke: drop useless assignment
Kamil Rytarowski (2):
scripts/qemu-binfmt-conf.sh: Fix shell portability issue
scripts: Switch to more portable Perl shebang
Marc-André Lureau (1):
doc: fix function spelling
Paolo Bonzini (3):
jazz_led: fix bad snprintf
MAINTAINERS: Update paths for main loop
MAINTAINERS: Update paths for AioContext implementation
Philippe Mathieu-Daudé (3):
usb-ccid: make ccid_write_data_block() cope with null buffers
device_tree: fix compiler warnings (clang 5)
qga: fix compiler warnings (clang 5)
Saurav Sachidanand (1):
util: Use g_malloc/g_free in envlist.c
Thomas Huth (2):
qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip hw/core/generic-loader: Fix crash when running without CPU
sochin.jiang fix wrong parameter comments in channel-file.h (1):
channel-file: fix wrong parameter comments
MAINTAINERS | 8 +++---- block/replication.c | 44 +++++++++++++++++++------------------- bsd-user/main.c | 14 ++++-------- configure | 18 ++++++++++++++++ device_tree.c | 1 + hw/block/virtio-blk.c | 4 +--- hw/core/generic-loader.c | 9 ++++---- hw/display/jazz_led.c | 4 ++-- hw/microblaze/boot.c | 2 +- hw/nios2/boot.c | 2 +- hw/ppc/pnv.c | 2 +- hw/ppc/ppc_booke.c | 1 - hw/s390x/sclp.c | 4 ++-- hw/tricore/tricore_testboard.c | 2 +- hw/usb/dev-smartcard-reader.c | 5 ++++- include/io/channel-file.h | 2 +- include/io/channel.h | 2 +- include/qemu/compiler.h | 4 +++- linux-user/main.c | 9 +++----- numa.c | 4 ++-- qemu-doc.texi | 10 ++++----- qemu-options.hx | 4 ++-- qga/commands-posix.c | 8 ++++--- scripts/checkpatch.pl | 3 ++- scripts/clean-header-guards.pl | 3 ++- scripts/cleanup-trace-events.pl | 2 +- scripts/disas-objdump.pl | 4 +++- scripts/get_maintainer.pl | 3 ++- scripts/qemu-binfmt-conf.sh | 4 ++-- scripts/shaderinclude.pl | 2 +- scripts/switch-timer-api | 2 +- scripts/texi2pod.pl | 4 +++- tests/.gitignore | 4 ++++ tests/postcopy-test.c | 2 +- util/envlist.c | 47 +++++++++++++++++------------------------ vl.c | 5 +++-- 36 files changed, 133 insertions(+), 115 deletions(-)
[Qemu-devel] [PULL 01/23] Remove reduntant qemu: from error functions
From: Ishani Chugh <[email protected]>
This patch removes redundant "qemu:" from error functions. The link to the bitesized task is:
http://wiki.qemu-project.org/Contribute/BiteSizedTasks#Error_checking
--- hw/microblaze/boot.c | 2 +- hw/nios2/boot.c | 2 +- hw/ppc/pnv.c | 2 +- hw/s390x/sclp.c | 4 ++-- hw/tricore/tricore_testboard.c | 2 +- numa.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-)
hw/microblaze/boot.c +1 -1
@@ -189,7 +189,7 @@ void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, ram_size - initrd_offset); }if (initrd_size <0 ) { -error_report ("qemu: could not load initrd '%s'" , +error_report ("could not load initrd '%s'" , initrd_filename);exit (EXIT_FAILURE ); }
hw/nios2/boot.c +1 -1
@@ -197,7 +197,7 @@ void nios2_load_kernel(Nios2CPU *cpu, hwaddr ddr_base, ram_size - initrd_offset); }if (initrd_size <0 ) { -error_report ("qemu: could not load initrd '%s'" , +error_report ("could not load initrd '%s'" , initrd_filename);exit (EXIT_FAILURE ); }
hw/ppc/pnv.c +1 -1
@@ -610,7 +610,7 @@ static void ppc_powernv_init(MachineState *machine)/* Create the processor chips */ chip_typename =g_strdup_printf (TYPE_PNV_CHIP "-%s" , machine->cpu_model);if (!object_class_by_name (chip_typename)) { -error_report ("qemu: invalid CPU model '%s' for %s machine" , +error_report ("invalid CPU model '%s' for %s machine" , machine->cpu_model,MACHINE_GET_CLASS (machine)->name);exit (1 ); }
hw/s390x/sclp.c +2 -2
@@ -496,10 +496,10 @@ static void sclp_realize(DeviceState *dev, Error **errp) ret =s390_set_memory_limit (machine->maxram_size, &hw_limit);if (ret == -E2BIG ) { -error_setg (&err,"qemu: host supports a maximum of %" PRIu64" GB" , +error_setg (&err,"host supports a maximum of %" PRIu64" GB" , hw_limit >>30 ); }else if (ret) { -error_setg (&err,"qemu: setting the guest size failed" ); +error_setg (&err,"setting the guest size failed" ); } out:
hw/tricore/tricore_testboard.c +1 -1
@@ -50,7 +50,7 @@ static void tricore_load_kernel(CPUTriCoreState *env)NULL ,0 , EM_TRICORE, 1, 0);if (kernel_size <=0 ) { -error_report ("qemu: no kernel file '%s'" , +error_report ("no kernel file '%s'" , tricoretb_binfo.kernel_filename);exit (1 ); }
numa.c +2 -2
@@ -174,7 +174,7 @@ static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp) }if (node->has_mem && node->has_memdev) { -error_setg (errp,"qemu: cannot specify both mem= and memdev=" ); +error_setg (errp,"cannot specify both mem= and memdev=" );return ; }
@@ -182,7 +182,7 @@ static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp) have_memdevs = node->has_memdev; }if (node->has_memdev != have_memdevs) { -error_setg (errp,"qemu: memdev option must be specified for either " +error_setg (errp,"memdev option must be specified for either " "all or no nodes" );return ; }
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 09/23] util: Use g_malloc/g_free in envlist.c
In reply to Michael TokarevFrom: Saurav Sachidanand <[email protected]>
Change malloc/strdup/free to g_malloc/g_strdup/g_free in util/envlist.c.
Remove NULL checks for pointers returned from g_malloc and g_strdup as they exit in case of failure. Also, update calls to envlist_create to reflect this.
Free array and array contents returned by envlist_to_environ using g_free in bsd-user/main.c and linux-user/main.c.
Update comments to reflect change in semantics.
--- bsd-user/main.c | 14 ++++---------- linux-user/main.c | 9 +++------ util/envlist.c | 47 +++++++++++++++++++---------------------------- 3 files changed, 26 insertions(+), 44 deletions(-)
bsd-user/main.c +4 -10
@@ -744,10 +744,7 @@ int main(int argc, char **argv)qemu_init_cpu_list ();module_call_init (MODULE_INIT_QOM ); -if ((envlist =envlist_create ()) ==NULL ) { - (void )fprintf (stderr,"Unable to allocate envlist\n" ); -exit (1 ); - } + envlist =envlist_create ();/* add current environment into the list */ for (wrk = environ; *wrk !=NULL ; wrk++) {
@@ -785,10 +782,7 @@ int main(int argc, char **argv)usage (); }else if (!strcmp (r,"ignore-environment" )) {envlist_free (envlist); -if ((envlist =envlist_create ()) ==NULL ) { - (void )fprintf (stderr,"Unable to allocate envlist\n" ); -exit (1 ); - } + envlist =envlist_create (); }else if (!strcmp (r,"U" )) { r = argv[optind++];if (envlist_unsetenv (envlist, r) !=0 )
@@ -956,10 +950,10 @@ int main(int argc, char **argv) }for (wrk = target_environ; *wrk; wrk++) { -free (*wrk); +g_free (*wrk); } -free (target_environ); +g_free (target_environ);if (qemu_loglevel_mask (CPU_LOG_PAGE )) {qemu_log ("guest_base 0x%lx\n" , guest_base);
linux-user/main.c +3 -6
@@ -4229,10 +4229,7 @@ int main(int argc, char **argv, char **envp)qemu_init_cpu_list ();module_call_init (MODULE_INIT_QOM ); -if ((envlist =envlist_create ()) ==NULL ) { - (void )fprintf (stderr,"Unable to allocate envlist\n" ); -exit (EXIT_FAILURE ); - } + envlist =envlist_create ();/* add current environment into the list */ for (wrk = environ; *wrk !=NULL ; wrk++) {
@@ -4429,10 +4426,10 @@ int main(int argc, char **argv, char **envp) }for (wrk = target_environ; *wrk; wrk++) { -free (*wrk); +g_free (*wrk); } -free (target_environ); +g_free (target_environ);if (qemu_loglevel_mask (CPU_LOG_PAGE )) {qemu_log ("guest_base 0x%lx\n" , guest_base);
util/envlist.c +19 -28
111 lines not on this page · raw message
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 19/23] tests: Ignore another built executable (test-hmp)
In reply to Michael TokarevFrom: Eric Blake <[email protected]>
Commit 78f86a2b7 added a new test, but forgot to exclude the built binary from version control.
--- tests/.gitignore | 1 + 1 file changed, 1 insertion(+)
tests/.gitignore +1 -0
@@ -40,6 +40,7 @@ test-crypto-tlssession-server/ test-crypto-xts test-cutils test-hbitmap +test-hmp test-int128 test-iov test-io-channel-buffer
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 23/23] tests: Remove redundant assignment
In reply to Michael TokarevFrom: Fam Zheng <[email protected]>
--- tests/postcopy-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/postcopy-test.c +1 -1
@@ -41,7 +41,7 @@ static bool ufd_version_check(void)struct uffdio_api api_struct;uint64_t ioctl_mask; -int ufd = ufd =syscall (__NR_userfaultfd,O_CLOEXEC ); +int ufd =syscall (__NR_userfaultfd,O_CLOEXEC );if (ufd ==-1 ) {g_test_message ("Skipping test: userfaultfd not available" );
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 13/23] qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
There are some broken URLs in the qemu-doc which reference tools that are not available at their original location anymore. Fortunately, they have been mirrored to archive.org, so point to that location instead.
--- qemu-doc.texi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
qemu-doc.texi +5 -5
@@ -1878,8 +1878,8 @@ resolution modes which the Cirrus Logic BIOS does not support (i.e. >= Windows 9x does not correctly use the CPU HLT instruction. The result is that it takes host CPU cycles even when idle. You can install the utility from -@url{http://www.user.cityline.ru/~maxamn/amnhltm.zip} to solve this -problem. Note that no such tool is needed for NT, 2000 or XP. +@url{http://web.archive.org/web/20060212132151/http://www.user.cityline.ru/~maxamn/amnhltm.zip} +to solve this problem. Note that no such tool is needed for NT, 2000 or XP. @subsubsection Windows 2000 disk full problem
@@ -1927,9 +1927,9 @@ vvfat block device ("-hdb fat:directory_which_holds_the_SP"). @subsubsection CPU usage reduction DOS does not correctly use the CPU HLT instruction. The result is that -it takes host CPU cycles even when idle. You can install the utility -from @url{http://www.vmware.com/software/dosidle210.zip} to solve this -problem. +it takes host CPU cycles even when idle. You can install the utility from +@url{http://web.archive.org/web/20051222085335/http://www.vmware.com/software/dosidle210.zip} +to solve this problem. @node QEMU System emulator for non PC targets @chapter QEMU System emulator for non PC targets
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 06/23] usb-ccid: make ccid_write_data_block() cope with null buffers
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
static code analyzer complain:
hw/usb/dev-smartcard-reader.c:816:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
memcpy(p->abData, data, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~--- hw/usb/dev-smartcard-reader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
hw/usb/dev-smartcard-reader.c +4 -1
@@ -813,7 +813,10 @@ static void ccid_write_data_block(USBCCIDState *s, uint8_t slot, uint8_t seq,if (p->b.bError) {DPRINTF (s,D_VERBOSE ,"error %d\n" , p->b.bError); } -memcpy (p->abData, data, len); +if (len) { +g_assert_nonnull (data); +memcpy (p->abData, data, len); + }ccid_reset_error_status (s);usb_wakeup (s->bulk,0 ); }
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 15/23] hw/core/generic-loader: Fix crash when running without CPU
In reply to Michael TokarevFrom: Thomas Huth <[email protected]>
When running QEMU with "-M none -device loader,file=kernel.elf", it currently crashes with a segmentation fault, because the "none"-machine does not have any CPU by default and the generic loader code tries to dereference s->cpu. Fix it by adding an appropriate check for a NULL pointer.
--- hw/core/generic-loader.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
hw/core/generic-loader.c +5 -4
@@ -137,20 +137,21 @@ static void generic_loader_realize(DeviceState *dev, Error **errp)#endif if (s->file) { +AddressSpace *as = s->cpu ? s->cpu->as :NULL ; +if (!s->force_raw) { size =load_elf_as (s->file,NULL ,NULL , &entry,NULL ,NULL , - big_endian,0 ,0 ,0 , s->cpu->as); + big_endian,0 ,0 ,0 , as);if (size <0 ) { size =load_uimage_as (s->file, &entry,NULL ,NULL ,NULL ,NULL , - s->cpu->as); + as); } }if (size <0 || s->force_raw) {/* Default to the maximum size being the machine's ram size */ - size =load_image_targphys_as (s->file, s->addr, ram_size, - s->cpu->as); + size =load_image_targphys_as (s->file, s->addr, ram_size, as); }else { s->addr = entry; }
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 14/23] virtio-blk: Remove useless condition around g_free()
In reply to Michael TokarevFrom: Fam Zheng <[email protected]>
Laszlo spotted and studied this wasteful "if". He pointed out:
The original virtio_blk_free_request needed an "if" as it accesses one field, since 671ec3f05655 ("virtio-blk: Convert VirtIOBlockReq.elem to pointer", 2014-06-11); later on in f897bf751fbd ("virtio-blk: embed VirtQueueElement in VirtIOBlockReq", 2014-07-09) the field became embedded, so the "if" became unnecessary (at which point we were using g_slice_free(), but it is the same.
Now drop it.
--- hw/block/virtio-blk.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
hw/block/virtio-blk.c +1 -3
@@ -42,9 +42,7 @@ static void virtio_blk_init_request(VirtIOBlock *s, VirtQueue *vq,static void virtio_blk_free_request (VirtIOBlockReq *req) { -if (req) { -g_free (req); - } +g_free (req); }static void virtio_blk_req_complete (VirtIOBlockReq *req,unsigned char status)
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 07/23] device_tree: fix compiler warnings (clang 5)
In reply to Michael TokarevFrom: Philippe Mathieu-Daudé <[email protected]>
static code analyzer complain:
device_tree.c:155:18: warning: Null pointer passed as an argument to a 'nonnull' parameter
while ((de = readdir(d)) != NULL) {
^~~~~~~~~~--- device_tree.c | 1 + 1 file changed, 1 insertion(+)
device_tree.c +1 -0
@@ -148,6 +148,7 @@ static void read_fstree(void *fdt, const char *dirname) d =opendir (dirname);if (!d) {error_setg (&error_fatal,"%s cannot open %s" , __func__, dirname); +return ; }while ((de =readdir (d)) !=NULL ) {
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 02/23] ppc_booke: drop useless assignment
In reply to Michael TokarevFrom: KONRAD Frederic <[email protected]>
The tb_env variable is set two lines above. So just drop the double assignment.
--- hw/ppc/ppc_booke.c | 1 - 1 file changed, 1 deletion(-)
hw/ppc/ppc_booke.c +0 -1
@@ -282,7 +282,6 @@ void store_booke_tcr(CPUPPCState *env, target_ulong val)ppc_tb_t *tb_env = env->tb_env;booke_timer_t *booke_timer = tb_env->opaque; - tb_env = env->tb_env; env->spr[SPR_BOOKE_TCR ] = val;kvmppc_set_tcr (cpu);
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 10/23] block: Make 'replication_state' an enum
In reply to Michael TokarevFrom: Fam Zheng <[email protected]>
BDRVReplicationState.replication_state is a name with a bit of duplication, plus it could be an enum like BDRVReplicationState.mode, which is more readable and also more straightforward in a debugger.
Rename it, and improve the type while at it.
--- block/replication.c | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-)
block/replication.c +22 -22
@@ -22,9 +22,17 @@#include "qapi/error.h" #include "replication.h" +typedef enum { +BLOCK_REPLICATION_NONE ,/* block replication is not started */ +BLOCK_REPLICATION_RUNNING ,/* block replication is running */ +BLOCK_REPLICATION_FAILOVER ,/* failover is running in background */ +BLOCK_REPLICATION_FAILOVER_FAILED ,/* failover failed */ +BLOCK_REPLICATION_DONE ,/* block replication is done */ +}ReplicationStage ; + typedef struct BDRVReplicationState { ReplicationMode mode; - int replication_state; + ReplicationStage stage; BdrvChild *active_disk; BdrvChild *hidden_disk; BdrvChild *secondary_disk;
@@ -36,14 +44,6 @@ typedef struct BDRVReplicationState {int error; } BDRVReplicationState; -enum { -BLOCK_REPLICATION_NONE ,/* block replication is not started */ -BLOCK_REPLICATION_RUNNING ,/* block replication is running */ -BLOCK_REPLICATION_FAILOVER ,/* failover is running in background */ -BLOCK_REPLICATION_FAILOVER_FAILED ,/* failover failed */ -BLOCK_REPLICATION_DONE ,/* block replication is done */ -}; -static void replication_start (ReplicationState *rs,ReplicationMode mode,Error **errp);static void replication_do_checkpoint (ReplicationState *rs,Error **errp);
@@ -141,10 +141,10 @@ static void replication_close(BlockDriverState *bs) {BDRVReplicationState *s = bs->opaque; -if (s->replication_state ==BLOCK_REPLICATION_RUNNING ) { +if (s->stage ==BLOCK_REPLICATION_RUNNING ) {replication_stop (s->rs, false,NULL ); } -if (s->replication_state ==BLOCK_REPLICATION_FAILOVER ) { +if (s->stage ==BLOCK_REPLICATION_FAILOVER ) {block_job_cancel_sync (s->active_disk->bs->job); }
@@ -174,7 +174,7 @@ static int64_t replication_getlength(BlockDriverState *bs)static int replication_get_io_status (BDRVReplicationState *s) { -switch (s->replication_state) { +switch (s->stage) {case BLOCK_REPLICATION_NONE :return -EIO ;case BLOCK_REPLICATION_RUNNING :
@@ -403,7 +403,7 @@ static void backup_job_completed(void *opaque, int ret)BlockDriverState *bs = opaque;BDRVReplicationState *s = bs->opaque; -if (s->replication_state !=BLOCK_REPLICATION_FAILOVER ) { +if (s->stage !=BLOCK_REPLICATION_FAILOVER ) {/* The backup job is cancelled unexpectedly */ s->error = -EIO ; }
@@ -445,7 +445,7 @@ static void replication_start(ReplicationState *rs, ReplicationMode mode,aio_context_acquire (aio_context); s = bs->opaque; -if (s->replication_state !=BLOCK_REPLICATION_NONE ) { +if (s->stage !=BLOCK_REPLICATION_NONE ) {error_setg (errp,"Block replication is running or done" );aio_context_release (aio_context);return ;
@@ -545,7 +545,7 @@ static void replication_start(ReplicationState *rs, ReplicationMode mode,abort (); } - s->replication_state =BLOCK_REPLICATION_RUNNING ; + s->stage =BLOCK_REPLICATION_RUNNING ;if (s->mode ==REPLICATION_MODE_SECONDARY ) {secondary_do_checkpoint (s, errp);
@@ -581,7 +581,7 @@ static void replication_get_error(ReplicationState *rs, Error **errp)aio_context_acquire (aio_context); s = bs->opaque; -if (s->replication_state !=BLOCK_REPLICATION_RUNNING ) { +if (s->stage !=BLOCK_REPLICATION_RUNNING ) {error_setg (errp,"Block replication is not running" );aio_context_release (aio_context);return ;
@@ -601,7 +601,7 @@ static void replication_done(void *opaque, int ret)BDRVReplicationState *s = bs->opaque;if (ret ==0 ) { - s->replication_state =BLOCK_REPLICATION_DONE ; + s->stage =BLOCK_REPLICATION_DONE ;/* refresh top bs's filename */ bdrv_refresh_filename (bs);
@@ -610,7 +610,7 @@ static void replication_done(void *opaque, int ret) s->hidden_disk =NULL ; s->error =0 ; }else { - s->replication_state =BLOCK_REPLICATION_FAILOVER_FAILED ; + s->stage =BLOCK_REPLICATION_FAILOVER_FAILED ; s->error = -EIO ; } }
@@ -625,7 +625,7 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)aio_context_acquire (aio_context); s = bs->opaque; -if (s->replication_state !=BLOCK_REPLICATION_RUNNING ) { +if (s->stage !=BLOCK_REPLICATION_RUNNING ) {error_setg (errp,"Block replication is not running" );aio_context_release (aio_context);return ;
@@ -633,7 +633,7 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)switch (s->mode) {case REPLICATION_MODE_PRIMARY : - s->replication_state =BLOCK_REPLICATION_DONE ; + s->stage =BLOCK_REPLICATION_DONE ; s->error =0 ;break ;case REPLICATION_MODE_SECONDARY :
@@ -648,12 +648,12 @@ static void replication_stop(ReplicationState *rs, bool failover, Error **errp)if (!failover) {secondary_do_checkpoint (s, errp); - s->replication_state =BLOCK_REPLICATION_DONE ; + s->stage =BLOCK_REPLICATION_DONE ;aio_context_release (aio_context);return ; } - s->replication_state =BLOCK_REPLICATION_FAILOVER ; + s->stage =BLOCK_REPLICATION_FAILOVER ;commit_active_start (NULL , s->active_disk->bs, s->secondary_disk->bs,BLOCK_JOB_INTERNAL ,0 ,BLOCKDEV_ON_ERROR_REPORT ,NULL , replication_done, bs, true, errp);
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 04/23] Add 'none' as type for drive's if option
In reply to Michael TokarevFrom: Craig Jellick <[email protected]>
--- qemu-options.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-options.hx +1 -1
@@ -604,7 +604,7 @@ Special files such as iSCSI devices can be specified using protocol specific URLs. See the section for "Device URL Syntax" for more information. @item if=@var{interface} This option defines on which type on interface the drive is connected. -Available types are: ide, scsi, sd, mtd, floppy, pflash, virtio. +Available types are: ide, scsi, sd, mtd, floppy, pflash, virtio, none. @item bus=@var{bus},unit=@var{unit} These options define where is connected the drive by defining the bus number and the unit id.
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 22/23] MAINTAINERS: Update paths for AioContext implementation
In reply to Michael TokarevFrom: Paolo Bonzini <[email protected]>
Moved by c2b38b2
("block: move AioContext, QEMUTimer, main-loop to libqemuutil")
--- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
@@ -1175,8 +1175,8 @@ M: Stefan Hajnoczi <[email protected]> M: Fam Zheng <[email protected]> L: [email protected] S: Supported -F: async.c -F: aio-*.c +F: util/async.c +F: util/aio-*.c F: block/io.c F: migration/block* F: include/block/aio.h
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 18/23] scripts: Switch to more portable Perl shebang
In reply to Michael TokarevFrom: Kamil Rytarowski <[email protected]>
The default NetBSD package manager is pkgsrc and it installs Perl along other third party programs under custom and configurable prefix. The default prefix for binary prebuilt packages is /usr/pkg, and the Perl executable lands in /usr/pkg/bin/perl.
This change switches "/usr/bin/perl" to "/usr/bin/env perl" as it's the most portable solution that should work for almost everybody. Perl's executable is detected automatically.
This change switches -w option passed to the executable with more modern "use warnings;" approach. There is no functional change to the default behavior.
--- scripts/checkpatch.pl | 3 ++- scripts/clean-header-guards.pl | 3 ++- scripts/cleanup-trace-events.pl | 2 +- scripts/disas-objdump.pl | 4 +++- scripts/get_maintainer.pl | 3 ++- scripts/shaderinclude.pl | 2 +- scripts/switch-timer-api | 2 +- scripts/texi2pod.pl | 4 +++- 8 files changed, 15 insertions(+), 8 deletions(-)
scripts/checkpatch.pl +2 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # (c) 2001, Dave Jones. (the file handling bit) # (c) 2005, Joel Schopp <[email protected]> (the ugly bit) # (c) 2007,2008, Andy Whitcroft <[email protected]> (new conditions, test suite)
@@ -6,6 +6,7 @@ # Licensed under the terms of the GNU GPL License version 2 use strict; +use warnings; my $P = $0; $P =~ s@.*/@@g;
scripts/clean-header-guards.pl +2 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # # Clean up include guards in headers #
@@ -28,6 +28,7 @@ # "cc -E -DGUARD_H -c -P -", and fed the test program on stdin. use strict; +use warnings; use Getopt::Std; # Stuff we don't want to clean because we import it into our tree:
scripts/cleanup-trace-events.pl +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # Copyright (C) 2013 Red Hat, Inc. # # Authors:
scripts/disas-objdump.pl +3 -1
@@ -1,4 +1,6 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl + +use warnings; use File::Temp qw/ tempfile /; use Getopt::Long;
scripts/get_maintainer.pl +2 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # (c) 2007, Joe Perches <[email protected]> # created from checkpatch.pl #
@@ -11,6 +11,7 @@ # Licensed under the terms of the GNU GPL License version 2 use strict; +use warnings; my $P = $0; my $V = '0.26';
scripts/shaderinclude.pl +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings;
scripts/switch-timer-api +1 -1
@@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl use strict; use warnings;
scripts/texi2pod.pl +3 -1
@@ -1,4 +1,4 @@ -#! /usr/bin/perl -w +#! /usr/bin/env perl # Copyright (C) 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
@@ -22,6 +22,8 @@ # markup to Perl POD format. It's intended to be used to extract # something suitable for a manpage from a Texinfo document. +use warnings; + $output = 0; $skipping = 0; %sects = ();
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 05/23] tests: Ignore more test executables
In reply to Michael TokarevFrom: Eric Blake <[email protected]>
Ignore test executables when building in-tree:
test-arm-mptimer introduced in commit 882fac3 test-crypto-hmac introduced in commit 4fd460b test-aio-multithread introduced in commit 0c330a7
--- tests/.gitignore | 3 +++ 1 file changed, 3 insertions(+)
tests/.gitignore +3 -0
@@ -11,6 +11,8 @@ check-qom-proplist qht-bench rcutorture test-aio +test-aio-multithread +test-arm-mptimer test-base64 test-bitops test-bitcnt
@@ -24,6 +26,7 @@ test-crypto-afsplit test-crypto-block test-crypto-cipher test-crypto-hash +test-crypto-hmac test-crypto-ivgen test-crypto-pbkdf test-crypto-secret
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 16/23] virtfs: allow a device id to be specified in the -virtfs option
In reply to Michael TokarevFrom: Chris Webb <[email protected]>
When using a virtfs root filesystem, the mount_tag needs to be set to /dev/root. This can be done long-hand as
-fsdev local,id=root,path=/path/to/rootfs,... -device virtio-9p-pci,fsdev=root,mount_tag=/dev/root
but the -virtfs shortcut cannot be used as it hard-codes the device identifier to match the mount_tag, and device identifiers may not contain '/':
$ qemu-system-x86_64 -virtfs local,path=/foo,mount_tag=/dev/root,security_model=passthrough qemu-system-x86_64: -virtfs local,path=/foo,mount_tag=/dev/root,security_model=passthrough: duplicate fsdev id: /dev/root
To support this case using -virtfs, we allow the device identifier to be specified explicitly when the mount_tag is not suitable:
-virtfs local,id=root,path=/path/to/rootfs,mount_tag=/dev/root,...
--- qemu-options.hx | 2 +- vl.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-)
qemu-options.hx +1 -1
@@ -876,7 +876,7 @@ ETEXI DEF("virtfs", HAS_ARG, QEMU_OPTION_virtfs, "-virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none]\n" - " [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]\n", + " [,id=id][,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd]\n", QEMU_ARCH_ALL) STEXI
vl.c +3 -2
@@ -3524,10 +3524,11 @@ int main(int argc, char **argv, char **envp)exit (1 ); } fsdev =qemu_opts_create (qemu_find_opts ("fsdev" ), +qemu_opts_id (opts) ?:qemu_opt_get (opts,"mount_tag" ),1 ,NULL );if (!fsdev) { -error_report ("duplicate fsdev id: %s" , +error_report ("duplicate or invalid fsdev id: %s" ,qemu_opt_get (opts,"mount_tag" ));exit (1 ); }
@@ -3565,7 +3566,7 @@ int main(int argc, char **argv, char **envp) &error_abort);qemu_opt_set (device,"driver" ,"virtio-9p-pci" , &error_abort);qemu_opt_set (device,"fsdev" , -qemu_opt_get (opts,"mount_tag" ), &error_abort); +qemu_opts_id (fsdev), &error_abort);qemu_opt_set (device,"mount_tag" ,qemu_opt_get (opts,"mount_tag" ), &error_abort);break ;
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 03/23] doc: fix function spelling
In reply to Michael TokarevFrom: Marc-André Lureau <[email protected]>
--- include/io/channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/io/channel.h +1 -1
@@ -315,7 +315,7 @@ ssize_t qio_channel_read(QIOChannel *ioc, Error **errp);/** -* qio_channel_writev: +* qio_channel_write: * @ioc: the channel object * @buf: the memory regions to send data from * @buflen: the length of @buf
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 21/23] MAINTAINERS: Update paths for main loop
In reply to Michael TokarevFrom: Paolo Bonzini <[email protected]>
Moved by c2b38b2 ("block: move AioContext, QEMUTimer, main-loop to libqemuutil"), let's update MAINTAINERS too.
--- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
@@ -1305,8 +1305,8 @@ Main loop M: Paolo Bonzini <[email protected]> S: Maintained F: cpus.c -F: main-loop.c -F: qemu-timer.c +F: util/main-loop.c +F: util/qemu-timer.c F: vl.c Human Monitor (HMP)
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 20/23] jazz_led: fix bad snprintf
In reply to Michael TokarevFrom: Paolo Bonzini <[email protected]>
Detected by GCC 7's -Wformat-truncation. snprintf writes at most 2 bytes here including the terminating NUL, so the result is truncated. In addition, the newline at the end is pointless. Fix the buffer size and the format string.
--- hw/display/jazz_led.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/display/jazz_led.c +2 -2
@@ -227,13 +227,13 @@ static void jazz_led_invalidate_display(void *opaque)static void jazz_led_text_update (void *opaque,console_ch_t *chardata) {LedState *s = opaque; -char buf[2 ]; +char buf[3 ];dpy_text_cursor (s->con,-1 ,-1 );qemu_console_resize (s->con,2 ,1 );/* TODO: draw the segments */ -snprintf (buf,2 ,"%02hhx\n" , s->segments); +snprintf (buf,3 ,"%02hhx" , s->segments);console_write_ch (chardata++,ATTR2CHTYPE (buf[0 ],QEMU_COLOR_BLUE ,QEMU_COLOR_BLACK ,1 )); console_write_ch(chardata++, ATTR2CHTYPE(buf[1], QEMU_COLOR_BLUE,
Signature · 1 line
2.11.0
[Qemu-devel] [PULL 17/23] scripts/qemu-binfmt-conf.sh: Fix shell portability issue
In reply to Michael TokarevFrom: Kamil Rytarowski <[email protected]>
Appease pkgsrc and use portable shell variable comparison. This switches "==" to "=". It should not be a functional change.
--- scripts/qemu-binfmt-conf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/qemu-binfmt-conf.sh +2 -2
@@ -284,12 +284,12 @@ while true ; do shift # check given cpu is in the supported CPU list for cpu in ${qemu_target_list} ; do - if [ "$cpu" == "$1" ] ; then + if [ "$cpu" = "$1" ] ; then break fi done - if [ "$cpu" == "$1" ] ; then + if [ "$cpu" = "$1" ] ; then qemu_target_list="$1" else echo "ERROR: unknown CPU \"$1\"" 1>&2
Signature · 1 line
2.11.0
This series seems to have some coding style problems. See output below for more information:
Hi,
This series seems to have some coding style problems. See output below for more information:
Message-id: [email protected]
Subject: [Qemu-devel] [PULL 00/23] Trivial patches for 2017-05-07
Type: series
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)" for c in $commits; do
echo "Checking PATCH $n/$total: $(git log -n 1 --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
8acf5d3 tests: Remove redundant assignment
0f494a6 MAINTAINERS: Update paths for AioContext implementation 9974be0 MAINTAINERS: Update paths for main loop
3e8c3af jazz_led: fix bad snprintf
8f753b9 tests: Ignore another built executable (test-hmp) 7d5489d scripts: Switch to more portable Perl shebang 536d031 scripts/qemu-binfmt-conf.sh: Fix shell portability issue a3e0b2b virtfs: allow a device id to be specified in the -virtfs option 3227c55 hw/core/generic-loader: Fix crash when running without CPU 22bf6ca virtio-blk: Remove useless condition around g_free() 65fe06c qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip 1f55ac0 use _Static_assert in QEMU_BUILD_BUG_ON
58005fb channel-file: fix wrong parameter comments
9029b8b block: Make 'replication_state' an enum
d5f07f0 util: Use g_malloc/g_free in envlist.c
e1d8273 qga: fix compiler warnings (clang 5)
077a79e device_tree: fix compiler warnings (clang 5)
965b305 usb-ccid: make ccid_write_data_block() cope with null buffers 3b19d93 tests: Ignore more test executables
296cc0d Add 'none' as type for drive's if option
708674a doc: fix function spelling
afcc583 ppc_booke: drop useless assignment
8b94589 Remove reduntant qemu: from error functions
=== OUTPUT BEGIN ===
Checking PATCH 1/23: Remove reduntant qemu: from error functions... Checking PATCH 2/23: ppc_booke: drop useless assignment...
Checking PATCH 3/23: doc: fix function spelling...
Checking PATCH 4/23: Add 'none' as type for drive's if option... Checking PATCH 5/23: tests: Ignore more test executables...
Checking PATCH 6/23: usb-ccid: make ccid_write_data_block() cope with null buffers... Checking PATCH 7/23: device_tree: fix compiler warnings (clang 5)... Checking PATCH 8/23: qga: fix compiler warnings (clang 5)...
Checking PATCH 9/23: util: Use g_malloc/g_free in envlist.c...
ERROR: code indent should never use tabs
#116: FILE: util/envlist.c:27:
+^Ienvlist = g_malloc(sizeof(*envlist));$
ERROR: code indent should never use tabs
#126: FILE: util/envlist.c:49:
+^I^Ig_free((char *)entry->ev_var);$
ERROR: code indent should never use tabs
#127: FILE: util/envlist.c:50:
+^I^Ig_free(entry);$
ERROR: code indent should never use tabs
#130: FILE: util/envlist.c:52:
+^Ig_free(envlist);$
ERROR: code indent should never use tabs
#140: FILE: util/envlist.c:102:
+^Itmpenv = g_strdup(env);$
ERROR: code indent should never use tabs
#159: FILE: util/envlist.c:155:
+^I^Ig_free((char *)entry->ev_var);$
ERROR: code indent should never use tabs
#160: FILE: util/envlist.c:156:
+^I^Ig_free(entry);$
ERROR: code indent should never use tabs
#171: FILE: util/envlist.c:161:
+^Ientry = g_malloc(sizeof(*entry));$
ERROR: code indent should never use tabs
#172: FILE: util/envlist.c:162:
+^Ientry->ev_var = g_strdup(env);$
ERROR: code indent should never use tabs
#182: FILE: util/envlist.c:197:
+^I^Ig_free((char *)entry->ev_var);$
ERROR: code indent should never use tabs
#183: FILE: util/envlist.c:198:
+^I^Ig_free(entry);$
ERROR: code indent should never use tabs
#211: FILE: util/envlist.c:221:
+^Ipenv = env = g_malloc((envlist->el_count + 1) * sizeof(char *));$
ERROR: code indent should never use tabs
#216: FILE: util/envlist.c:225:
+^I^I*(penv++) = g_strdup(entry->ev_var);$
total: 13 errors, 0 warnings, 168 lines checked
Your patch has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS.
Checking PATCH 10/23: block: Make 'replication_state' an enum...
Checking PATCH 11/23: channel-file: fix wrong parameter comments... Checking PATCH 12/23: use _Static_assert in QEMU_BUILD_BUG_ON...
Checking PATCH 13/23: qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip... Checking PATCH 14/23: virtio-blk: Remove useless condition around g_free()... Checking PATCH 15/23: hw/core/generic-loader: Fix crash when running without CPU... Checking PATCH 16/23: virtfs: allow a device id to be specified in the -virtfs option... Checking PATCH 17/23: scripts/qemu-binfmt-conf.sh: Fix shell portability issue... Checking PATCH 18/23: scripts: Switch to more portable Perl shebang... Checking PATCH 19/23: tests: Ignore another built executable (test-hmp)... Checking PATCH 20/23: jazz_led: fix bad snprintf...
Checking PATCH 21/23: MAINTAINERS: Update paths for main loop...
Checking PATCH 22/23: MAINTAINERS: Update paths for AioContext implementation... Checking PATCH 23/23: tests: Remove redundant assignment...
=== OUTPUT END ===
Test command exited with code: 1
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to [email protected]
Stefan Hajnoczi
AppliedQuoted 96 lines · Michael Tokarev
The following changes since commit
12a95f320a36ef66f724a49bb05e4fb553ac5dbe:Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
are available in the git repository at:
git://git.corpit.ru/qemu.gittags/trivial-patches-fetchfor you to fetch changes up to
311875781e549af91a3216d34c6ef40420bab435:tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
----------------------------------------------------------------
trivial patches for 2017-05-07----------------------------------------------------------------
Andreas Grapentin (1):
use_Static_assertinQEMU_BUILD_BUG_ONChris Webb (1):
virtfs: allow a device id to be specified in the -virtfs optionCraig Jellick (1):
Add 'none' as type for drive's if optionEric Blake (2):
tests: Ignore more test executables
tests: Ignore another built executable (test-hmp)Fam Zheng (3):
block: Make 'replication_state' an enum
virtio-blk: Remove useless condition aroundg_free()
tests: Remove redundant assignmentIshani Chugh (1):
Remove reduntant qemu: from error functionsKONRAD Frederic (1):
ppc_booke: drop useless assignmentKamil Rytarowski (2):
scripts/qemu-binfmt-conf.sh: Fix shell portability issue
scripts: Switch to more portable Perl shebangMarc-André Lureau (1):
doc: fix function spellingPaolo Bonzini (3):
jazz_led: fix bad snprintf
MAINTAINERS: Update paths for main loop
MAINTAINERS: Update paths for AioContext implementationPhilippe Mathieu-Daudé (3):
usb-ccid: makeccid_write_data_block()cope with null buffers
device_tree: fix compiler warnings (clang 5)
qga: fix compiler warnings (clang 5)Saurav Sachidanand (1):
util: Use g_malloc/g_free inenvlist.cThomas Huth (2):
qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip hw/core/generic-loader: Fix crash when running without CPUsochin.jiang fix wrong parameter comments in
channel-file.h(1):
channel-file: fix wrong parameter commentsMAINTAINERS | 8 +++---- block/replication.c | 44 +++++++++++++++++++------------------- bsd-user/main.c | 14 ++++-------- configure | 18 ++++++++++++++++ device_tree.c | 1 + hw/block/virtio-blk.c | 4 +--- hw/core/generic-loader.c | 9 ++++---- hw/display/jazz_led.c | 4 ++-- hw/microblaze/boot.c | 2 +- hw/nios2/boot.c | 2 +- hw/ppc/pnv.c | 2 +- hw/ppc/ppc_booke.c | 1 - hw/s390x/sclp.c | 4 ++-- hw/tricore/tricore_testboard.c | 2 +- hw/usb/dev-smartcard-reader.c | 5 ++++- include/io/channel-file.h | 2 +- include/io/channel.h | 2 +- include/qemu/compiler.h | 4 +++- linux-user/main.c | 9 +++----- numa.c | 4 ++-- qemu-doc.texi | 10 ++++----- qemu-options.hx | 4 ++-- qga/commands-posix.c | 8 ++++--- scripts/checkpatch.pl | 3 ++- scripts/clean-header-guards.pl | 3 ++- scripts/cleanup-trace-events.pl | 2 +- scripts/disas-objdump.pl | 4 +++- scripts/get_maintainer.pl | 3 ++- scripts/qemu-binfmt-conf.sh | 4 ++--
Quoted 9 lines
scripts/shaderinclude.pl | 2 +- scripts/switch-timer-api | 2 +- scripts/texi2pod.pl | 4 +++- tests/.gitignore | 4 ++++ tests/postcopy-test.c | 2 +- util/envlist.c | 47 +++++++++++++++++------------------------ vl.c | 5 +++-- 36 files changed, 133 insertions(+), 115 deletions(-)
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Stefan
Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
In reply to Michael TokarevQuoted 1 line · Michael Tokarev
From: "sochin.jiang fix wrong parameter comments in
channel-file.h" <[email protected]>
Do we really want this HUGE email name, or can we get it touched up before stefanha promotes his staging branch to master?
Quoted 8 lines
Signed-off-by sochin.jiang <[email protected]>Reviewed-by Marc-André Lureau <[email protected]>Signed-off-by Michael Tokarev <[email protected]>--- include/io/channel-file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Quoted 11 lines · Stefan Hajnoczi
Quoted 10 lines · Michael Tokarev
The following changes since commit
12a95f320a36ef66f724a49bb05e4fb553ac5dbe:Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
are available in the git repository at:
git://git.corpit.ru/qemu.gittags/trivial-patches-fetchfor you to fetch changes up to
311875781e549af91a3216d34c6ef40420bab435:
Quoted 8 lines
Quoted 8 lines
tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
----------------------------------------------------------------
trivial patches for 2017-05-07sochin.jiang fix wrong parameter comments in
channel-file.h(1):
channel-file: fix wrong parameter comments
See my question on 11/23
Quoted 3 lines
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Signature · 3 lines
Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
Re: [Qemu-devel] [PULL 11/23] channel-file: fix wrong parameter comments
In reply to Michael TokarevQuoted 1 line · Michael Tokarev
From: "sochin.jiang fix wrong parameter comments in
channel-file.h" <[email protected]>
Hi Michael,
This patch has a corrupted From field. I do not modify pull requests myself when merging. Could you please resend?
Thanks,
Stefan
Quoted 107 lines · Stefan Hajnoczi
Quoted 96 lines · Michael Tokarev
The following changes since commit
12a95f320a36ef66f724a49bb05e4fb553ac5dbe:Merge remote-tracking branch 'kwolf/tags/for-upstream' into staging (2017-05-04 13:44:32 +0100)
are available in the git repository at:
git://git.corpit.ru/qemu.gittags/trivial-patches-fetchfor you to fetch changes up to
311875781e549af91a3216d34c6ef40420bab435:tests: Remove redundant assignment (2017-05-07 09:57:51 +0300)
----------------------------------------------------------------
trivial patches for 2017-05-07----------------------------------------------------------------
Andreas Grapentin (1):
use_Static_assertinQEMU_BUILD_BUG_ONChris Webb (1):
virtfs: allow a device id to be specified in the -virtfs optionCraig Jellick (1):
Add 'none' as type for drive's if optionEric Blake (2):
tests: Ignore more test executables
tests: Ignore another built executable (test-hmp)Fam Zheng (3):
block: Make 'replication_state' an enum
virtio-blk: Remove useless condition aroundg_free()
tests: Remove redundant assignmentIshani Chugh (1):
Remove reduntant qemu: from error functionsKONRAD Frederic (1):
ppc_booke: drop useless assignmentKamil Rytarowski (2):
scripts/qemu-binfmt-conf.sh: Fix shell portability issue
scripts: Switch to more portable Perl shebangMarc-André Lureau (1):
doc: fix function spellingPaolo Bonzini (3):
jazz_led: fix bad snprintf
MAINTAINERS: Update paths for main loop
MAINTAINERS: Update paths for AioContext implementationPhilippe Mathieu-Daudé (3):
usb-ccid: makeccid_write_data_block()cope with null buffers
device_tree: fix compiler warnings (clang 5)
qga: fix compiler warnings (clang 5)Saurav Sachidanand (1):
util: Use g_malloc/g_free inenvlist.cThomas Huth (2):
qemu-doc: Fix broken URLs of amnhltm.zip and dosidle210.zip hw/core/generic-loader: Fix crash when running without CPUsochin.jiang fix wrong parameter comments in
channel-file.h(1):
channel-file: fix wrong parameter commentsMAINTAINERS | 8 +++---- block/replication.c | 44 +++++++++++++++++++------------------- bsd-user/main.c | 14 ++++-------- configure | 18 ++++++++++++++++ device_tree.c | 1 + hw/block/virtio-blk.c | 4 +--- hw/core/generic-loader.c | 9 ++++---- hw/display/jazz_led.c | 4 ++-- hw/microblaze/boot.c | 2 +- hw/nios2/boot.c | 2 +- hw/ppc/pnv.c | 2 +- hw/ppc/ppc_booke.c | 1 - hw/s390x/sclp.c | 4 ++-- hw/tricore/tricore_testboard.c | 2 +- hw/usb/dev-smartcard-reader.c | 5 ++++- include/io/channel-file.h | 2 +- include/io/channel.h | 2 +- include/qemu/compiler.h | 4 +++- linux-user/main.c | 9 +++----- numa.c | 4 ++-- qemu-doc.texi | 10 ++++----- qemu-options.hx | 4 ++-- qga/commands-posix.c | 8 ++++--- scripts/checkpatch.pl | 3 ++- scripts/clean-header-guards.pl | 3 ++- scripts/cleanup-trace-events.pl | 2 +- scripts/disas-objdump.pl | 4 +++- scripts/get_maintainer.pl | 3 ++- scripts/qemu-binfmt-conf.sh | 4 ++--Quoted 9 lines
scripts/shaderinclude.pl | 2 +- scripts/switch-timer-api | 2 +- scripts/texi2pod.pl | 4 +++- tests/.gitignore | 4 ++++ tests/postcopy-test.c | 2 +- util/envlist.c | 47 +++++++++++++++++------------------------ vl.c | 5 +++-- 36 files changed, 133 insertions(+), 115 deletions(-)
Quoted 2 lines
Thanks, applied to my staging tree:
https://github.com/stefanha/qemu/commits/staging
Dropped for now, please see my reply to "channel-file: fix wrong parameter comments".