Fix include statements for qemu-common.h
PATCH 1/1 Fix include statements for qemu-common.h
* qemu-common.h is not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes.
* linux-user/syscall.c included the file twice.
--- hw/virtio-blk.c | 2 +- linux-user/syscall.c | 3 +-- nbd.h | 2 +- qemu-nbd.c | 2 +- slirp/libslirp.h | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-)
hw/virtio-blk.c +1 -1
@@ -11,7 +11,7 @@* */ -#include <qemu-common.h> +#include "qemu-common.h" #include "qemu-error.h" #include "trace.h" #include "blockdev.h"
linux-user/syscall.c +1 -2
@@ -60,7 +60,7 @@ int __clone2(int (*fn)(void *), void *child_stack_base,#include <netinet/ip.h> #include <netinet/tcp.h> #include <linux/wireless.h> -#include <qemu-common.h> +#include "qemu-common.h" #ifdef TARGET_GPROF #include <sys/gmon.h> #endif
@@ -96,7 +96,6 @@ int __clone2(int (*fn)(void *), void *child_stack_base,#include "cpu-uname.h" #include "qemu.h" -#include "qemu-common.h" #if defined(CONFIG_USE_NPTL )#define CLONE_NPTL_FLAGS2 (CLONE_SETTLS | \
nbd.h +1 -1
@@ -21,7 +21,7 @@#include <sys/types.h> -#include <qemu-common.h> +#include "qemu-common.h" #include "block_int.h"
qemu-nbd.c +1 -1
@@ -16,7 +16,7 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -#include <qemu-common.h> +#include "qemu-common.h" #include "block_int.h" #include "nbd.h"
slirp/libslirp.h +1 -1
@@ -1,7 +1,7 @@#ifndef _LIBSLIRP_H#define _LIBSLIRP_H -#include <qemu-common.h> +#include "qemu-common.h" #ifdef CONFIG_SLIRP
Signature · 1 line
1.7.2.5
Am 08.09.2011 17:55, schrieb Stefan Weil:
Quoted 10 lines
*
qemu-common.his not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes.*
linux-user/syscall.cincluded the file twice.Cc Kevin Wolf <[email protected]>Cc Riku Voipio <[email protected]>Cc Jan Kiszka <[email protected]>Signed-off-by Stefan Weil <[email protected]>
Stefan Hajnoczi
AppliedQuoted 10 lines · Stefan Weil
*
qemu-common.his not a system include file, so it should be included with "" instead of <>. Otherwise incremental builds might fail because only local include files are checked for changes.*
linux-user/syscall.cincluded the file twice.Cc Kevin Wolf <[email protected]>Cc Riku Voipio <[email protected]>Cc Jan Kiszka <[email protected]>Signed-off-by Stefan Weil <[email protected]>
Quoted 7 lines
--- hw/virtio-blk.c | 2 +- linux-user/syscall.c | 3 +-- nbd.h | 2 +- qemu-nbd.c | 2 +- slirp/libslirp.h | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-)
Thanks, applied to the trivial patches -next tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches-next
Perhaps I'm being too quick but seems like an obvious fix.
Stefan