Skip to contentSkip to conversation

Fix compilation warning due to missing header for sigaction (followup)

PATCH Applied Alexandre Raymond 3 participants 5 messages Jun 3, 2011 – Jun 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compilation warning due to missing header for sigaction (followup)

This patch removes all references to signal.h when qemu-common.h is included as they become redundant.

---
 audio/audio_pt_int.c  |    2 --
 audio/sdlaudio.c      |    1 -
 block/raw-posix.c     |    2 --
 bsd-user/syscall.c    |    1 -
 darwin-user/signal.c  |    3 ---
 exec.c                |    1 -
 linux-user/signal.c   |    1 -
 net/tap.c             |    1 -
 posix-aio-compat.c    |    1 -
 qemu-char.c           |    1 -
 qemu-progress.c       |    1 -
 savevm.c              |    1 -
 target-i386/helper.c  |    1 -
 target-ppc/helper.c   |    1 -
 target-sparc/helper.c |    1 -
 ui/curses.c           |    1 -
 ui/sdl.c              |    4 ----
 usb-bsd.c             |    1 -
 usb-linux.c           |    1 -
 19 files changed, 0 insertions(+), 26 deletions(-)
audio/audio_pt_int.c +0 -2
index 908c569..9a9c306 100644
@@ -6,8 +6,6 @@
 #include "audio_int.h"
 #include "audio_pt_int.h"
 
-#include <signal.h>
-
 static void GCC_FMT_ATTR(3, 4) logerr (struct audio_pt *pt, int err,
                                        const char *fmt, ...)
 {
audio/sdlaudio.c +0 -1
index a847aa9..d24daa5 100644
@@ -32,7 +32,6 @@
 #elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
 #include <pthread.h>
 #endif
-#include <signal.h>
 #endif
 
 #define AUDIO_CAP "sdl"
block/raw-posix.c +0 -2
index 6b72470..9a72a17 100644
@@ -43,7 +43,6 @@
 
 #ifdef __sun__
 #define _POSIX_PTHREAD_SEMANTICS 1
-#include <signal.h>
 #include <sys/dkio.h>
 #endif
 #ifdef __linux__
@@ -53,7 +52,6 @@
 #include <linux/fd.h>
 #endif
 #if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
-#include <signal.h>
 #include <sys/disk.h>
 #include <sys/cdio.h>
 #endif
bsd-user/syscall.c +0 -1
index eb1cdf2..d4d039a 100644
@@ -31,7 +31,6 @@
 #include <sys/syscall.h>
 #include <sys/param.h>
 #include <sys/sysctl.h>
-#include <signal.h>
 #include <utime.h>
 
 #include "qemu.h"
darwin-user/signal.c +0 -3
index 4862018..e2adca3 100644
@@ -21,7 +21,6 @@
 #include <string.h>
 #include <stdarg.h>
 #include <unistd.h>
-#include <signal.h>
 #include <errno.h>
 #include <sys/ucontext.h>
 
@@ -32,8 +31,6 @@
 #undef uc_link
 #endif
 
-#include <signal.h>
-
 #include "qemu.h"
 #include "qemu-common.h"
 
exec.c +0 -1
index 8529390..bb8334c 100644
@@ -36,7 +36,6 @@
 #include "qemu-timer.h"
 #if defined(CONFIG_USER_ONLY)
 #include <qemu.h>
-#include <signal.h>
 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
 #include <sys/param.h>
 #if __FreeBSD_version >= 700104
linux-user/signal.c +0 -1
index c7a375f..11b25be 100644
@@ -21,7 +21,6 @@
 #include <string.h>
 #include <stdarg.h>
 #include <unistd.h>
-#include <signal.h>
 #include <errno.h>
 #include <assert.h>
 #include <sys/ucontext.h>
net/tap.c +0 -1
index b8cd252..1f26dc9 100644
@@ -27,7 +27,6 @@
 
 #include "config-host.h"
 
-#include <signal.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
posix-aio-compat.c +0 -1
index f3cc868..c4116e3 100644
@@ -17,7 +17,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <time.h>
-#include <signal.h>
 #include <string.h>
 #include <stdlib.h>
 #include <stdio.h>
qemu-char.c +0 -1
index 5e04a20..fb13b28 100644
@@ -35,7 +35,6 @@
 
 #include <unistd.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/time.h>
qemu-progress.c +0 -1
index 8ebe8ef..5f1b8df 100644
@@ -26,7 +26,6 @@
 #include "osdep.h"
 #include "sysemu.h"
 #include <stdio.h>
-#include <signal.h>
 
 struct progress_state {
     float current;
savevm.c +0 -1
index f4ff1a1..939845c 100644
@@ -23,7 +23,6 @@
  */
 #include <unistd.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <time.h>
 #include <errno.h>
 #include <sys/time.h>
target-i386/helper.c +0 -1
index 89df997..ca4ec08 100644
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
target-ppc/helper.c +0 -1
index 4700632..cf2a368 100644
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
target-sparc/helper.c +0 -1
index b2d4d70..e9b42d0 100644
@@ -21,7 +21,6 @@
 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
-#include <signal.h>
 
 #include "cpu.h"
 #include "exec-all.h"
ui/curses.c +0 -1
index 82bc614..d29b6cf 100644
@@ -24,7 +24,6 @@
 #include <curses.h>
 
 #ifndef _WIN32
-#include <signal.h>
 #include <sys/ioctl.h>
 #include <termios.h>
 #endif
ui/sdl.c +0 -4
index 14a62d9..f2bd4a0 100644
@@ -28,10 +28,6 @@
 #include <SDL.h>
 #include <SDL_syswm.h>
 
-#ifndef _WIN32
-#include <signal.h>
-#endif
-
 #include "qemu-common.h"
 #include "console.h"
 #include "sysemu.h"
usb-bsd.c +0 -1
index 9bab6e3..c1bcc4a 100644
@@ -39,7 +39,6 @@
 #else
 #include <bus/usb/usb.h>
 #endif
-#include <signal.h>
 
 /* This value has maximum potential at 16.
  * You should also set hw.usb.debug to gain
usb-linux.c +0 -1
index baa6574..fcfa09e 100644
@@ -37,7 +37,6 @@
 
 #include <dirent.h>
 #include <sys/ioctl.h>
-#include <signal.h>
 
 #include <linux/usbdevice_fs.h>
 #include <linux/version.h>
Signature · 1 line
1.7.5
#1 lore raw
Quoted 2 lines · Alexandre Raymond

This patch removes all references to signal.h when qemu-common.h is included as they become redundant.

This breaks the build. Maybe it depends on some previous patch? If so, it would be nice to submit the patches as a series so that the patches can be tested, now I could not find the other patch.

#2 lore raw

Hi Blue,

This patch indeed depends on http://patchwork.ozlabs.org/patch/98325/.

Since it had already been applied by Andreas to the trivial tree, I didn't think it was necessary to resend it in the followup.

If you prefer, I can resend both in the same series.

Alexandre

Quoted 8 lines · Blue Swirl
Quoted 2 lines · Alexandre Raymond

This patch removes all references to signal.h when qemu-common.h is included as they become redundant.

This breaks the build. Maybe it depends on some previous patch? If so, it would be nice to submit the patches as a series so that the patches can be tested, now I could not find the other patch.

#3 lore raw
Quoted 8 lines · Alexandre Raymond

Hi Blue,

This patch indeed depends on http://patchwork.ozlabs.org/patch/98325/.

Since it had already been applied by Andreas to the trivial tree, I didn't think it was necessary to resend it in the followup.

If you prefer, I can resend both in the same series.

No need, I think this should also go via trivial patches queue. The patch looks fine to me.

#4 lore raw
In reply to Alexandre Raymond
Quoted 17 lines · Alexandre Raymond

This patch removes all references to signal.h when qemu-common.h is included as they become redundant.

---
 audio/audio_pt_int.c  |    2 --
 audio/sdlaudio.c      |    1 -
 block/raw-posix.c     |    2 --
 bsd-user/syscall.c    |    1 -
 darwin-user/signal.c  |    3 ---
 exec.c                |    1 -
 linux-user/signal.c   |    1 -
 net/tap.c             |    1 -
 posix-aio-compat.c    |    1 -
 qemu-char.c           |    1 -
 qemu-progress.c       |    1 -
 savevm.c              |    1 -
Quoted 8 lines
 target-i386/helper.c  |    1 -
 target-ppc/helper.c   |    1 -
 target-sparc/helper.c |    1 -
 ui/curses.c           |    1 -
 ui/sdl.c              |    4 ----
 usb-bsd.c             |    1 -
 usb-linux.c           |    1 -
 19 files changed, 0 insertions(+), 26 deletions(-)

Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches

Stefan