trivial fixes
cover trivial fixes
Here is a hodge-podge of fixes for issues I found while reviewing QTAILQ callers, with a .gitignore patch as a bonus.
Thanks,
Emilio
PATCH 1/6 cpus: use first_cpu macro instead of QTAILQ_FIRST(&cpus)
--- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cpus.c +1 -1
@@ -1016,7 +1016,7 @@ static void *qemu_tcg_cpu_thread_fn(void *arg)qemu_cond_signal (&qemu_cpu_cond);/* wait for initial kick-off after machine start */ -while (QTAILQ_FIRST (&cpus)->stopped) { +while (first_cpu->stopped) {qemu_cond_wait (tcg_halt_cond, &qemu_global_mutex);/* process any pending work */
Signature · 1 line
1.9.1
PATCH 2/6 input: remove unused mouse_handlers list
In reply to Emilio G. Cota--- ui/input-legacy.c | 2 -- 1 file changed, 2 deletions(-)
ui/input-legacy.c +0 -2
@@ -57,8 +57,6 @@ struct QEMUPutLEDEntry { static QTAILQ_HEAD(, QEMUPutLEDEntry) led_handlers =QTAILQ_HEAD_INITIALIZER (led_handlers); -static QTAILQ_HEAD(, QEMUPutMouseEntry) mouse_handlers = -QTAILQ_HEAD_INITIALIZER (mouse_handlers);int index_from_key (const char *key) {
Signature · 1 line
1.9.1
PATCH 3/6 qemu-char: remove unused list node from FDCharDriver
In reply to Emilio G. Cota--- qemu-char.c | 1 - 1 file changed, 1 deletion(-)
qemu-char.c +0 -1
@@ -973,7 +973,6 @@ typedef struct FDCharDriver {CharDriverState *chr;GIOChannel *fd_in, *fd_out;int max_size; -QTAILQ_ENTRY (FDCharDriver) node; } FDCharDriver;/* Called with chr_write_lock held. */
Signature · 1 line
1.9.1
PATCH 4/6 gitignore: ignore *.patch files
In reply to Emilio G. Cota--- .gitignore | 1 + 1 file changed, 1 insertion(+)
.gitignore +1 -0
@@ -62,6 +62,7 @@ *.fn *.ky *.log +*.patch *.pdf *.pod *.cps
Signature · 1 line
1.9.1
PATCH 5/6 coroutine: remove unnecessary parentheses in qemu_co_queue_empty
In reply to Emilio G. Cota--- qemu-coroutine-lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
qemu-coroutine-lock.c +1 -1
@@ -108,7 +108,7 @@ bool qemu_co_enter_next(CoQueue *queue)bool qemu_co_queue_empty (CoQueue *queue) { -return (QTAILQ_FIRST (&queue->entries) ==NULL ); +return QTAILQ_FIRST (&queue->entries) ==NULL ; }void qemu_co_mutex_init (CoMutex *mutex)
Signature · 1 line
1.9.1
PATCH 6/6 linux-user/elfload: use QTAILQ_FOREACH instead of open-coding it
In reply to Emilio G. Cota--- linux-user/elfload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
linux-user/elfload.c +1 -2
@@ -2887,8 +2887,7 @@ static int write_note_info(struct elf_note_info *info, int fd)return (error);/* write prstatus for each thread */ -for (ets = info->thread_list.tqh_first; ets !=NULL ; - ets = ets->ets_link.tqe_next) { + QTAILQ_FOREACH(ets, &info->thread_list, ets_link) {if ((error =write_note (&ets->notes[0 ], fd)) !=0 )return (error); }
Signature · 1 line
1.9.1
Re: [Qemu-devel] [PATCH 4/6] gitignore: ignore *.patch files
In reply to Emilio G. CotaQuoted 10 lines · Emilio G. Cota
Signed-off-by Emilio G. Cota <[email protected]>--- .gitignore | 1 + 1 file changed, 1 insertion(+).gitignore +0
-0
.gitignore line 65
Quoted 4 lines
.gitignore +1
-0@@ -62,6 +62,7 @@ *.fn *.ky *.log +*.patch
This Issue is discussed and I think it was concluded to not gitignore patches. See:
commit f3a22014e94dfaacb57277dafce66b41cd994869
Author: Michael Tokarev <[email protected]> Date: Thu Jun 6 01:14:54 2013 +0400
gitignore: unignore *.patch
This partially reverts:
commit 082369e62c5bbaba89f173c2b803bc24115bb111
Author: liguang <[email protected]>
Date: Fri Mar 22 16:44:13 2013 +0800
gitignore: ignore more files
I'm not sure how this went in. The thing is that ignoring *.patch, in my opinion, is just wrong. Especially for downstreams who apply patches for real.
Regards,
Peter
Quoted 7 lines
.gitignore +0
-1*.pdf *.pod *.cps --1.9.1
Re: [Qemu-devel] [PATCH 4/6] gitignore: ignore *.patch files
Quoted 10 lines · Peter Crosthwaite
.gitignore line 65
Quoted 6 lines
+++ b/.gitignore
.gitignore +1
-0@@ -62,6 +62,7 @@ *.fn *.ky *.log +*.patchThis Issue is discussed and I think it was concluded to not gitignore patches. See:
Quoted 5 lines
commit
f3a22014e94dfaacb57277dafce66b41cd994869Author: Michael Tokarev <[email protected]> Date: Thu Jun 6 01:14:54 2013 +0400gitignore: unignore *.patch
You can always ignore them locally:
echo '*.patch' >> .git/info/exclude
without requiring everyone to ignore them (I actually like seeing them show up, to know when I have not yet hit send on a series).
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Re: [Qemu-devel] [PATCH 4/6] gitignore: ignore *.patch files
Quoted 8 lines · Eric Blake
Quoted 7 lines · Peter Crosthwaite
This Issue is discussed and I think it was concluded to not gitignore patches. See:
commit
f3a22014e94dfaacb57277dafce66b41cd994869Author: Michael Tokarev <[email protected]> Date: Thu Jun 6 01:14:54 2013 +0400
Quoted 7 lines
Quoted 1 line
gitignore: unignore *.patch
You can always ignore them locally:
echo '*.patch' >> .git/info/excludewithout requiring everyone to ignore them (I actually like seeing them show up, to know when I have not yet hit send on a series).
Thanks for the tip!
All: please ignore this patch in the series.
Emilio
Michael Tokarev
AppliedQuoted 2 lines · Emilio G. Cota
Here is a hodge-podge of fixes for issues I found while reviewing QTAILQ callers, with a .gitignore patch as a bonus.
Applied to -trivial, all except the bonus. The 5/6 one (unnecessary parentheses removal) is a bit too trivial, maybe not worh a patch, but I applied it too anyway.
Thank you!
/mjt
Re: [Qemu-devel] [PATCH 2/6] input: remove unused mouse_handlers list
In reply to Emilio G. CotaQuoted 1 line · Emilio G. Cota
Signed-off-by Emilio G. Cota <[email protected]>
Re: [Qemu-devel] [PATCH 2/6] input: remove unused mouse_handlers list
Quoted 4 lines · Gerd Hoffmann
Quoted 1 line · Emilio G. Cota
Signed-off-by Emilio G. Cota <[email protected]>Reviewed-by Gerd Hoffmann <[email protected]>
Too late, it has already been applied to master…
/mjt