Skip to contentSkip to conversation

virtio-9p: Fix compilation (wrong include statements)

PATCH In review Stefan Weil 6 participants 13 messages Apr 28, 2011 – May 28, 2011 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-9p: Fix compilation (wrong include statements)

From: Stefan Weil <[email protected]>

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths.

---
 hw/9pfs/virtio-9p-debug.c      |    5 +++--
 hw/9pfs/virtio-9p-local.c      |    3 ++-
 hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
 hw/9pfs/virtio-9p-xattr-user.c |    2 +-
 hw/9pfs/virtio-9p-xattr.c      |    2 +-
 hw/9pfs/virtio-9p.c            |    4 ++--
 6 files changed, 10 insertions(+), 8 deletions(-)
hw/9pfs/virtio-9p-debug.c +3 -2
index 6b18842..4636ad5 100644
@@ -10,8 +10,9 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
-#include "pc.h"
+
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "virtio-9p.h"
 #include "virtio-9p-debug.h"
 
hw/9pfs/virtio-9p-local.c +2 -1
index 0a015de..3effc39 100644
@@ -10,7 +10,8 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
+
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "virtio-9p-xattr.h"
 #include <arpa/inet.h>
hw/9pfs/virtio-9p-posix-acl.c +1 -1
index 575abe8..c0ae9d6 100644
@@ -13,7 +13,7 @@
 
 #include <sys/types.h>
 #include <attr/xattr.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr-user.c +1 -1
index bba13ce..c56039c 100644
@@ -12,7 +12,7 @@
  */
 
 #include <sys/types.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr.c +1 -1
index 03c3d3f..f08ce6e 100644
@@ -11,7 +11,7 @@
  *
  */
 
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p.c +2 -2
index b5fc52b..ac5a1d0 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "virtio.h"
-#include "pc.h"
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "qemu_socket.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 6 lines · Stefan Weil

From: Stefan Weil<[email protected]>

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths.

This is not correct. I think we learned in IRC that the problem is Stefan is using CFLAGS=-g which overrides the CFLAGS append added by this patch.

Regards,

Anthony Liguori

Quoted 97 lines
---
  hw/9pfs/virtio-9p-debug.c      |    5 +++--
  hw/9pfs/virtio-9p-local.c      |    3 ++-
  hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
  hw/9pfs/virtio-9p-xattr-user.c |    2 +-
  hw/9pfs/virtio-9p-xattr.c      |    2 +-
  hw/9pfs/virtio-9p.c            |    4 ++--
  6 files changed, 10 insertions(+), 8 deletions(-)
hw/9pfs/virtio-9p-debug.c +3 -2
index 6b18842..4636ad5 100644
@@ -10,8 +10,9 @@
   * the COPYING file in the top-level directory.
   *
   */
-#include "virtio.h"
-#include "pc.h"
+
+#include "hw/virtio.h"
+#include "hw/pc.h"
 
 
 
  #include "virtio-9p.h"
  #include "virtio-9p-debug.h"
hw/9pfs/virtio-9p-local.c +2 -1
index 0a015de..3effc39 100644
@@ -10,7 +10,8 @@
   * the COPYING file in the top-level directory.
   *
   */
-#include "virtio.h"
+
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "virtio-9p-xattr.h"
  #include<arpa/inet.h>
hw/9pfs/virtio-9p-posix-acl.c +1 -1
index 575abe8..c0ae9d6 100644
@@ -13,7 +13,7 @@
 
  #include<sys/types.h>
  #include<attr/xattr.h>
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr-user.c +1 -1
index bba13ce..c56039c 100644
@@ -12,7 +12,7 @@
   */
 
  #include<sys/types.h>
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr.c +1 -1
index 03c3d3f..f08ce6e 100644
@@ -11,7 +11,7 @@
   *
   */
 
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p.c +2 -2
index b5fc52b..ac5a1d0 100644
@@ -11,8 +11,8 @@
   *
   */
 
-#include "virtio.h"
-#include "pc.h"
+#include "hw/virtio.h"
+#include "hw/pc.h"
  #include "qemu_socket.h"
  #include "virtio-9p.h"
  #include "fsdev/qemu-fsdev.h"
#2 lore raw

Am 28.04.2011 19:39, schrieb Anthony Liguori:

Quoted 6 lines · Stefan Weil
Quoted 5 lines

From: Stefan Weil<[email protected]>

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths.

Quoted 8 lines
Quoted 1 line

This is not correct. I think we learned in IRC that the problem is Stefan is using CFLAGS=-g which overrides the CFLAGS append added by this patch.

Regards,

Anthony Liguori

QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, because now users can no longer set their own CFLAGS.

The special CFLAGS for virtio should be removed (with my patch applied first). The second best solution would be changing CFLAGS to QEMU_CFLAGS in Makefile.objs and Makefile.target.

Regards,

Stefan

#3 lore raw
Quoted 14 lines · Stefan Weil

Am 28.04.2011 19:39, schrieb Anthony Liguori:

Quoted 13 lines · Stefan Weil
Quoted 6 lines

From: Stefan Weil<[email protected]>

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths.

This is not correct. I think we learned in IRC that the problem is Stefan is using CFLAGS=-g which overrides the CFLAGS append added by this patch.

Quoted 7 lines
Quoted 3 lines

Regards,

Anthony Liguori

QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, because now users can no longer set their own CFLAGS.

Use ./configure --extra-cflags="-g"

Regards,

Anthony Liguori

Quoted 10 lines

The special CFLAGS for virtio should be removed (with my patch applied first).
The second best solution would be changing CFLAGS to QEMU_CFLAGS in Makefile.objs and Makefile.target.

Regards,

Stefan

#4 lore raw
Quoted 20 lines · Anthony Liguori
Quoted 19 lines · Stefan Weil

Am 28.04.2011 19:39, schrieb Anthony Liguori:

Quoted 17 lines · Stefan Weil
Quoted 7 lines

From: Stefan Weil<[email protected]>

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths.

This is not correct. I think we learned in IRC that the problem is Stefan is using CFLAGS=-g which overrides the CFLAGS append added by this patch.

Regards,

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Anthony Liguori

QEMU Makefiles use QEMU_CFLAGS - setting CFLAGS in Makefile* is wrong, because now users can no longer set their own CFLAGS.

Use ./configure --extra-cflags="-g"

No, we should be able to override CFLAGS, because Juan made great effort earlier to fix the logic and separate QEMU_CFLAGS and CFLAGS. Please see a558ee17761c3c9ef22792bd5097880ab92f1bf5.

#5 lore raw

PATCH v3 1/1 virtio-9p: Use relative includes for files in hw

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths. It used a modified CFLAGS to add hw to the include search path, but this breaks builds where the user wants to set special CFLAGS. Long include paths also increase compilation time.

Therefore this patch removes the special CFLAGS for virtio and fixes the include statements by using relative include paths.

v2: Remove special CFLAGS.
v3: Update needed for latest QEMU.

---
 Makefile.objs                  |    2 --
 Makefile.target                |    2 --
 hw/9pfs/virtio-9p-debug.c      |    5 +++--
 hw/9pfs/virtio-9p-local.c      |    3 ++-
 hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
 hw/9pfs/virtio-9p-xattr-user.c |    2 +-
 hw/9pfs/virtio-9p-xattr.c      |    2 +-
 hw/9pfs/virtio-9p.c            |    4 ++--
 8 files changed, 10 insertions(+), 12 deletions(-)
Makefile.objs +0 -2
index 9d8851e..df8cc9c 100644
@@ -290,8 +290,6 @@ hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
 9pfs-nested-$(CONFIG_VIRTFS) +=   virtio-9p-xattr-user.o virtio-9p-posix-acl.o
 
 hw-obj-$(CONFIG_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS +=  -I$(SRC_PATH)/hw/
-
 
 ######################################################################
 # libdis
Makefile.target +0 -2
index 2501c63..76bbdc7 100644
@@ -401,8 +401,6 @@ hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
 qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
 
-9pfs/virtio-9p.o: CFLAGS +=  -I$(SRC_PATH)/hw/
-
 clean:
 	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
 	rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o
hw/9pfs/virtio-9p-debug.c +3 -2
index 6b18842..4636ad5 100644
@@ -10,8 +10,9 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
-#include "pc.h"
+
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "virtio-9p.h"
 #include "virtio-9p-debug.h"
 
hw/9pfs/virtio-9p-local.c +2 -1
index 0a015de..3effc39 100644
@@ -10,7 +10,8 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
+
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "virtio-9p-xattr.h"
 #include <arpa/inet.h>
hw/9pfs/virtio-9p-posix-acl.c +1 -1
index 575abe8..c0ae9d6 100644
@@ -13,7 +13,7 @@
 
 #include <sys/types.h>
 #include <attr/xattr.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr-user.c +1 -1
index bba13ce..c56039c 100644
@@ -12,7 +12,7 @@
  */
 
 #include <sys/types.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr.c +1 -1
index 03c3d3f..f08ce6e 100644
@@ -11,7 +11,7 @@
  *
  */
 
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p.c +2 -2
index b5fc52b..ac5a1d0 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "virtio.h"
-#include "pc.h"
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "qemu_socket.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
Signature · 1 line
1.7.2.5
#6 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

Quoted 29 lines · Stefan Weil

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths. It used a modified CFLAGS to add hw to the include search path, but this breaks builds where the user wants to set special CFLAGS. Long include paths also increase compilation time.

Therefore this patch removes the special CFLAGS for virtio and fixes the include statements by using relative include paths.

v2: Remove special CFLAGS.
v3: Update needed for latest QEMU.

---
  Makefile.objs                  |    2 --
  Makefile.target                |    2 --
  hw/9pfs/virtio-9p-debug.c      |    5 +++--
  hw/9pfs/virtio-9p-local.c      |    3 ++-
  hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
  hw/9pfs/virtio-9p-xattr-user.c |    2 +-
  hw/9pfs/virtio-9p-xattr.c      |    2 +-
  hw/9pfs/virtio-9p.c            |    4 ++--
  8 files changed, 10 insertions(+), 12 deletions(-)
Makefile.objs +0 -0
index 9d8851e..df8cc9c 100644

Makefile.objs hw-obj-$(CONFIG_SOUND) += $(sound-obj-y) · line 293

Quoted 4 lines
Makefile.objs +0 -1
@@ -290,8 +290,6 @@ hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
  9pfs-nested-$(CONFIG_VIRTFS) +=   virtio-9p-xattr-user.o virtio-9p-posix-acl.o
 
  hw-obj-$(CONFIG_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS +=  -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

Regards,

Anthony Liguori

Quoted 101 lines
Makefile.objs +0 -1
-
 
  ######################################################################
  # libdis
Makefile.target +0 -2
index 2501c63..76bbdc7 100644
@@ -401,8 +401,6 @@ hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
  qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
  	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h<  $<  >  $@,"  GEN   $(TARGET_DIR)$@")
 
-9pfs/virtio-9p.o: CFLAGS +=  -I$(SRC_PATH)/hw/
-
  clean:
  	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
  	rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o
hw/9pfs/virtio-9p-debug.c +3 -2
index 6b18842..4636ad5 100644
@@ -10,8 +10,9 @@
   * the COPYING file in the top-level directory.
   *
   */
-#include "virtio.h"
-#include "pc.h"
+
+#include "hw/virtio.h"
+#include "hw/pc.h"
  #include "virtio-9p.h"
  #include "virtio-9p-debug.h"
 
hw/9pfs/virtio-9p-local.c +2 -1
index 0a015de..3effc39 100644
@@ -10,7 +10,8 @@
   * the COPYING file in the top-level directory.
   *
   */
-#include "virtio.h"
+
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "virtio-9p-xattr.h"
  #include<arpa/inet.h>
hw/9pfs/virtio-9p-posix-acl.c +1 -1
index 575abe8..c0ae9d6 100644
@@ -13,7 +13,7 @@
 
  #include<sys/types.h>
  #include<attr/xattr.h>
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr-user.c +1 -1
index bba13ce..c56039c 100644
@@ -12,7 +12,7 @@
   */
 
  #include<sys/types.h>
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr.c +1 -1
index 03c3d3f..f08ce6e 100644
@@ -11,7 +11,7 @@
   *
   */
 
-#include "virtio.h"
+#include "hw/virtio.h"
  #include "virtio-9p.h"
  #include "fsdev/file-op-9p.h"
  #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p.c +2 -2
index b5fc52b..ac5a1d0 100644
@@ -11,8 +11,8 @@
   *
   */
 
-#include "virtio.h"
-#include "pc.h"
+#include "hw/virtio.h"
+#include "hw/pc.h"
  #include "qemu_socket.h"
  #include "virtio-9p.h"
  #include "fsdev/qemu-fsdev.h"
#7 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

Am 28.04.2011 22:49, schrieb Anthony Liguori:

Quoted 33 lines · Stefan Weil
Quoted 32 lines

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths. It used a modified CFLAGS to add hw to the include search path, but this breaks builds where the user wants to set special CFLAGS. Long include paths also increase compilation time.

Therefore this patch removes the special CFLAGS for virtio and fixes the include statements by using relative include paths.

v2: Remove special CFLAGS.
v3: Update needed for latest QEMU.

---
  Makefile.objs                  |    2 --
  Makefile.target                |    2 --
  hw/9pfs/virtio-9p-debug.c      |    5 +++--
  hw/9pfs/virtio-9p-local.c      |    3 ++-
  hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
  hw/9pfs/virtio-9p-xattr-user.c |    2 +-
  hw/9pfs/virtio-9p-xattr.c      |    2 +-
  hw/9pfs/virtio-9p.c            |    4 ++--
  8 files changed, 10 insertions(+), 12 deletions(-)
Makefile.objs +0 -0
index 9d8851e..df8cc9c 100644
@@ -290,8 +290,6 @@ hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
  9pfs-nested-$(CONFIG_VIRTFS) +=   virtio-9p-xattr-user.o 

virtio-9p-posix-acl.o

Quoted 8 lines
Quoted 2 lines

hw-obj-$(CONFIG_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS += -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

Regards,

Anthony Liguori

That would be the second best solution (in my opinion). Its only advantage would be that it minimises the size of the patch (which is not a good argument if the result has disadvantages).

Do you think that the lines which I removed in Makefile.* look pretty and maintainable? I don't think so. The new include statements are much cleaner. They are also in line with other QEMU code - try

                        git grep '"hw/'

to see it yourself.

Regards,

Stefan Weil

#8 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

In reply to Anthony Liguori
Quoted 4 lines · Anthony Liguori
Quoted 1 line · Stefan Weil

-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS +=  -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

There aren't any other source files in QEMU which have custom include paths -- why should 9pfs be a special case?

-- PMM

#9 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

Am 29.04.2011 02:46, schrieb Peter Maydell:

Quoted 13 lines · Anthony Liguori
Quoted 7 lines · Stefan Weil
Quoted 3 lines

-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS += -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

There aren't any other source files in QEMU which have custom include paths -- why should 9pfs be a special case?

-- PMM

Was this an acked-by?
The patch is still uncommitted. Are there any objections?

Stefan W.

#10 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

Quoted 9 lines · Stefan Weil

Am 29.04.2011 02:46, schrieb Peter Maydell:

Quoted 8 lines · Anthony Liguori
Quoted 7 lines · Stefan Weil
Quoted 3 lines

-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS += -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

Quoted 8 lines
Quoted 5 lines

There aren't any other source files in QEMU which have custom include paths -- why should 9pfs be a special case?

-- PMM

Was this an acked-by?
The patch is still uncommitted. Are there any objections?

I have pulled this patch into the tree. I guess the next pull request from JV should include that.

-aneesh

#11 lore raw

Re: [Qemu-devel] [PATCH v3] virtio-9p: Use relative includes for files in hw

Quoted 13 lines · Aneesh Kumar K.V
Quoted 12 lines · Stefan Weil

Am 29.04.2011 02:46, schrieb Peter Maydell:

Quoted 11 lines · Anthony Liguori
Quoted 7 lines · Stefan Weil
Quoted 3 lines

-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS += -I$(SRC_PATH)/hw/

Wouldn't it be more straight forward to just do QEMU_CFLAGS +=?

There aren't any other source files in QEMU which have custom include paths -- why should 9pfs be a special case?

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

-- PMM

Was this an acked-by?
The patch is still uncommitted. Are there any objections?

I have pulled this patch into the tree. I guess the next pull request from JV should include that.

Yes, next pull will include this. Thanks.

- JV

Quoted 1 line

-aneesh

#12 lore raw

PATCH v2 1/1 virtio-9p: Use relative includes for files in hw

In reply to Stefan Weil

Commit 353ac78d495ef976242abd868f68d78420861c2c moved the files without fixing the include paths. It used a modified CFLAGS to add hw to the include search path, but this breaks builds where the user wants to set special CFLAGS. Long include paths also increase compilation time.

Therefore this patch removes the special CFLAGS for virtio and fixes the include statements by using relative include paths.

v2: Remove special CFLAGS.

---
 Makefile.objs                  |    2 --
 Makefile.target                |    2 --
 hw/9pfs/virtio-9p-debug.c      |    5 +++--
 hw/9pfs/virtio-9p-local.c      |    3 ++-
 hw/9pfs/virtio-9p-posix-acl.c  |    2 +-
 hw/9pfs/virtio-9p-xattr-user.c |    2 +-
 hw/9pfs/virtio-9p-xattr.c      |    2 +-
 hw/9pfs/virtio-9p.c            |    4 ++--
 8 files changed, 10 insertions(+), 12 deletions(-)
Makefile.objs +0 -2
index 0cbff4d..b37b342 100644
@@ -290,8 +290,6 @@ hw-obj-$(CONFIG_SOUND) += $(sound-obj-y)
 9pfs-nested-$(CONFIG_VIRTFS) +=   virtio-9p-xattr-user.o virtio-9p-posix-acl.o
 
 hw-obj-$(CONFIG_REALLY_VIRTFS) += $(addprefix 9pfs/, $(9pfs-nested-y))
-$(addprefix 9pfs/, $(9pfs-nested-y)): CFLAGS +=  -I$(SRC_PATH)/hw/
-
 
 ######################################################################
 # libdis
Makefile.target +0 -2
index 2501c63..76bbdc7 100644
@@ -401,8 +401,6 @@ hmp-commands.h: $(SRC_PATH)/hmp-commands.hx
 qmp-commands.h: $(SRC_PATH)/qmp-commands.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $(TARGET_DIR)$@")
 
-9pfs/virtio-9p.o: CFLAGS +=  -I$(SRC_PATH)/hw/
-
 clean:
 	rm -f *.o *.a *~ $(PROGS) nwfpe/*.o fpu/*.o
 	rm -f *.d */*.d tcg/*.o ide/*.o 9pfs/*.o
hw/9pfs/virtio-9p-debug.c +3 -2
index 6b18842..4636ad5 100644
@@ -10,8 +10,9 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
-#include "pc.h"
+
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "virtio-9p.h"
 #include "virtio-9p-debug.h"
 
hw/9pfs/virtio-9p-local.c +2 -1
index 0a015de..3effc39 100644
@@ -10,7 +10,8 @@
  * the COPYING file in the top-level directory.
  *
  */
-#include "virtio.h"
+
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "virtio-9p-xattr.h"
 #include <arpa/inet.h>
hw/9pfs/virtio-9p-posix-acl.c +1 -1
index 575abe8..c0ae9d6 100644
@@ -13,7 +13,7 @@
 
 #include <sys/types.h>
 #include <attr/xattr.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr-user.c +1 -1
index bba13ce..c56039c 100644
@@ -12,7 +12,7 @@
  */
 
 #include <sys/types.h>
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p-xattr.c +1 -1
index 03c3d3f..f08ce6e 100644
@@ -11,7 +11,7 @@
  *
  */
 
-#include "virtio.h"
+#include "hw/virtio.h"
 #include "virtio-9p.h"
 #include "fsdev/file-op-9p.h"
 #include "virtio-9p-xattr.h"
hw/9pfs/virtio-9p.c +2 -2
index b5fc52b..ac5a1d0 100644
@@ -11,8 +11,8 @@
  *
  */
 
-#include "virtio.h"
-#include "pc.h"
+#include "hw/virtio.h"
+#include "hw/pc.h"
 #include "qemu_socket.h"
 #include "virtio-9p.h"
 #include "fsdev/qemu-fsdev.h"
Signature · 1 line
1.7.2.5