Skip to contentSkip to conversation

hw/ide: Remove last two uses of ide/internal.h outside of hw/ide

PATCH In review BALATON Zoltan 3 participants 6 messages Feb 23, 2024 – Feb 25, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/ide: Remove last two uses of ide/internal.h outside of hw/ide

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)
---
 hw/arm/sbsa-ref.c                 | 2 +-
 {include/hw => hw}/ide/internal.h | 0
 include/hw/misc/macio/macio.h     | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)
 rename {include/hw => hw}/ide/internal.h (100%)
hw/arm/sbsa-ref.c +1 -1
index 5d3a574664..f027622a75 100644
@@ -36,7 +36,7 @@
 #include "hw/arm/smmuv3.h"
 #include "hw/block/flash.h"
 #include "hw/boards.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
 #include "hw/ide/ahci_internal.h"
 #include "hw/ide/ahci-sysbus.h"
 #include "hw/intc/arm_gicv3_common.h"
hw/ide/internal.h renamed from include/hw/ide/internal.h +0 -0
similarity index 100%
rename from include/hw/ide/internal.h
rename to hw/ide/internal.h
include/hw/misc/macio/macio.h +1 -1
index 86df2c2b60..2b54da6b31 100644
@@ -28,7 +28,7 @@
 
 #include "hw/char/escc.h"
 #include "hw/pci/pci_device.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
 #include "hw/intc/heathrow_pic.h"
 #include "hw/misc/macio/cuda.h"
 #include "hw/misc/macio/gpio.h"
Signature · 1 line
2.30.9
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · BALATON Zoltan

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Quoted 8 lines
Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)
---
  hw/arm/sbsa-ref.c                 | 2 +-
  {include/hw => hw}/ide/internal.h | 0
  include/hw/misc/macio/macio.h     | 2 +-
  3 files changed, 2 insertions(+), 2 deletions(-)

rename {include/hw => hw}/ide/internal.h (100%)

Reviewed-by on v1 1/1
#2 lore raw
In reply to BALATON Zoltan
Quoted 35 lines · BALATON Zoltan

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)
---
  hw/arm/sbsa-ref.c                 | 2 +-
  {include/hw => hw}/ide/internal.h | 0
  include/hw/misc/macio/macio.h     | 2 +-
  3 files changed, 2 insertions(+), 2 deletions(-)

rename {include/hw => hw}/ide/internal.h (100%)

hw/arm/sbsa-ref.c +1 -1
index 5d3a574664..f027622a75 100644
@@ -36,7 +36,7 @@
  #include "hw/arm/smmuv3.h"
  #include "hw/block/flash.h"
  #include "hw/boards.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
  #include "hw/ide/ahci_internal.h"
  #include "hw/ide/ahci-sysbus.h"
  #include "hw/intc/arm_gicv3_common.h"
hw/ide/internal.h renamed from include/hw/ide/internal.h +0 -0
similarity index 100%
rename from include/hw/ide/internal.h
rename to hw/ide/internal.h
include/hw/misc/macio/macio.h +0 -0
index 86df2c2b60..2b54da6b31 100644

include/hw/misc/macio/macio.h line 34

Quoted 8 lines
include/hw/misc/macio/macio.h +1 -1
@@ -28,7 +28,7 @@
 
  #include "hw/char/escc.h"
  #include "hw/pci/pci_device.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
  #include "hw/intc/heathrow_pic.h"
  #include "hw/misc/macio/cuda.h"
  #include "hw/misc/macio/gpio.h"

Oh, I was sure that I got them all ... thanks for double checking!

#3 lore raw
In reply to BALATON Zoltan
Quoted 18 lines · BALATON Zoltan

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)
---
  hw/arm/sbsa-ref.c                 | 2 +-
  {include/hw => hw}/ide/internal.h | 0
  include/hw/misc/macio/macio.h     | 2 +-
  3 files changed, 2 insertions(+), 2 deletions(-)

rename {include/hw => hw}/ide/internal.h (100%)

hw/arm/sbsa-ref.c +0 -0
index 5d3a574664..f027622a75 100644

hw/arm/sbsa-ref.c line 40

Quoted 6 lines
hw/arm/sbsa-ref.c +1 -1
@@ -36,7 +36,7 @@
  #include "hw/arm/smmuv3.h"
  #include "hw/block/flash.h"
  #include "hw/boards.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
  #include "hw/ide/ahci_internal.h"

Unrelated, but what about this one ^?

#4 lore raw
Quoted 14 lines · Philippe Mathieu-Daudé
Quoted 13 lines · BALATON Zoltan

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)
---
  hw/arm/sbsa-ref.c                 | 2 +-
  {include/hw => hw}/ide/internal.h | 0
  include/hw/misc/macio/macio.h     | 2 +-
  3 files changed, 2 insertions(+), 2 deletions(-)

rename {include/hw => hw}/ide/internal.h (100%)

Quoted 13 lines

hw/arm/sbsa-ref.c line 40

Quoted 11 lines
hw/arm/sbsa-ref.c +1 -1
index 5d3a574664..f027622a75 100644
@@ -36,7 +36,7 @@
  #include "hw/arm/smmuv3.h"
  #include "hw/block/flash.h"
  #include "hw/boards.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
  #include "hw/ide/ahci_internal.h"

Unrelated, but what about this one ^?

The ahci_internal.h is in hw/ide not in include/hw/ide so how does that even work? I don't care about AHCI so not interested to anything about that personally.

Regards,
BALATON Zoltan

#5 lore raw
Quoted 29 lines · BALATON Zoltan
Quoted 14 lines · Philippe Mathieu-Daudé
Quoted 13 lines · BALATON Zoltan

Remove last two includes of hw/ide/intarnal.h outside of hw/ide and replace them with newly added public header to allow moving internal.h into hw/ide to really stop exposing it.

Fixes a11f439a0e (hw/ide: Stop exposing internal.h to non-IDE files)

---
  hw/arm/sbsa-ref.c                 | 2 +-
  {include/hw => hw}/ide/internal.h | 0
  include/hw/misc/macio/macio.h     | 2 +-

  3 files changed, 2 insertions(+), 2 deletions(-)

  rename {include/hw => hw}/ide/internal.h (100%)

Quoted 13 lines

hw/arm/sbsa-ref.c line 40

Quoted 11 lines
hw/arm/sbsa-ref.c +1 -1
index 5d3a574664..f027622a75 100644
@@ -36,7 +36,7 @@
   #include "hw/arm/smmuv3.h"
   #include "hw/block/flash.h"
   #include "hw/boards.h"
-#include "hw/ide/internal.h"
+#include "hw/ide/ide-bus.h"
   #include "hw/ide/ahci_internal.h"

Unrelated, but what about this one ^?

Quoted 1 line

The ahci_internal.h is in hw/ide not in include/hw/ide so how does that even work? I don't care about AHCI so not interested to anything about that personally.

No worries, done:
https://lore.kernel.org/qemu-devel/[email protected]/

Quoted 3 lines

Regards,
BALATON Zoltan