Commit 83c9f4ca authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

hw: include hw header files with full paths



Done with this script:

cd hw
for i in `find . -name '*.h' | sed 's/^..//'`; do
  echo '\,^#.*include.*["<]'$i'[">], s,'$i',hw/&,'
done | sed -i -f - `find . -type f`

This is so that paths remain valid as files are moved.

Instead, files in hw/dataplane are referenced with the relative path.
We know they are not going to move to include/, and they are the only
include files that are in subdirectories _and_ move.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 7948b4b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
 * with this program; if not, see <http://www.gnu.org/licenses/>.
 */

#include "sysbus.h"
#include "hw/sysbus.h"

/* A15MP private memory region.  */

+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
 * This code is licensed under the GPL.
 */

#include "sysbus.h"
#include "hw/sysbus.h"

typedef struct A9MPPrivState {
    SysBusDevice busdev;
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
 * This code is licensed under the GPL.
 */

#include "sysbus.h"
#include "hw/sysbus.h"

/* A9MP private memory region.  */

+3 −3
Original line number Diff line number Diff line
@@ -17,10 +17,10 @@
 * GNU GPL, version 2 or (at your option) any later version.
 */

#include "hw.h"
#include "audiodev.h"
#include "hw/hw.h"
#include "hw/audiodev.h"
#include "audio/audio.h"
#include "pci/pci.h"
#include "hw/pci/pci.h"
#include "sysemu/dma.h"

enum {
+3 −3
Original line number Diff line number Diff line
@@ -19,9 +19,9 @@
 * GNU GPL, version 2 or (at your option) any later version.
 */
#include "sysemu/sysemu.h"
#include "hw.h"
#include "pc.h"
#include "acpi.h"
#include "hw/hw.h"
#include "hw/pc.h"
#include "hw/acpi.h"
#include "monitor/monitor.h"

struct acpi_table_header {
Loading