Remove unused MAX_IDE_BUS define
PATCH 1/1 Remove unused MAX_IDE_BUS define
Several machines have an unused MAX_IDE_BUS define. Remove it from these machines that don't need it.
Signed-off-by BALATON Zoltan <[email protected]>
--- hw/alpha/dp264.c | 2 -- hw/hppa/machine.c | 2 -- hw/mips/fuloong2e.c | 1 - hw/mips/malta.c | 2 -- hw/ppc/prep.c | 2 -- hw/sparc64/sun4u.c | 1 - 6 files changed, 10 deletions(-)
hw/alpha/dp264.c +0 -2
@@ -20,8 +20,6 @@#include "qemu/datadir.h" #include "net/net.h" -#define MAX_IDE_BUS 2 -static uint64_t cpu_alpha_superpage_to_phys (void *opaque,uint64_t addr) {if (((addr >>41 ) &3 ) ==2 ) {
hw/hppa/machine.c +0 -2
@@ -30,8 +30,6 @@#include "qemu/log.h" #include "net/net.h" -#define MAX_IDE_BUS 2 -#define MIN_SEABIOS_HPPA_VERSION 6/* require at least this fw version */ #define HPA_POWER_BUTTON (FIRMWARE_END - 0x10)
hw/mips/fuloong2e.c +0 -1
@@ -49,7 +49,6 @@/* Fuloong 2e has a 512k flash: Winbond W39L040AP70Z */ #define BIOS_SIZE (512 * KiB) -#define MAX_IDE_BUS 2/* * PMON is not part of qemu and released with BSD license, anyone
hw/mips/malta.c +0 -2
@@ -69,8 +69,6 @@#define FLASH_SIZE 0x400000 -#define MAX_IDE_BUS 2 - typedef struct { MemoryRegion iomem; MemoryRegion iomem_lo; /* 0 - 0x900 */
hw/ppc/prep.c +0 -2
@@ -50,8 +50,6 @@/* SMP is not enabled, for now */ #define MAX_CPUS 1 -#define MAX_IDE_BUS 2 -#define CFG_ADDR 0xf0000510#define KERNEL_LOAD_ADDR 0x01000000
hw/sparc64/sun4u.c +0 -1
@@ -66,7 +66,6 @@#define PBM_PCI_IO_BASE (PBM_SPECIAL_BASE + 0x02000000ULL)#define PROM_FILENAME "openbios-sparc64"#define NVRAM_SIZE 0x2000 -#define MAX_IDE_BUS 2#define BIOS_CFG_IOPORT 0x510#define FW_CFG_SPARC64_WIDTH (FW_CFG_ARCH_LOCAL + 0x00)#define FW_CFG_SPARC64_HEIGHT (FW_CFG_ARCH_LOCAL + 0x01)
Signature · 1 line
2.30.4
Quoted 4 lines · BALATON Zoltan
Several machines have an unused
MAX_IDE_BUSdefine. Remove it from these machines that don't need it.Signed-off-by BALATON Zoltan<[email protected]>
Quoted 8 lines
--- hw/alpha/dp264.c | 2 -- hw/hppa/machine.c | 2 -- hw/mips/fuloong2e.c | 1 - hw/mips/malta.c | 2 -- hw/ppc/prep.c | 2 -- hw/sparc64/sun4u.c | 1 - 6 files changed, 10 deletions(-)
Reviewed-by Richard Henderson <[email protected]>
r~
Quoted 4 lines · BALATON Zoltan
Several machines have an unused
MAX_IDE_BUSdefine. Remove it from these machines that don't need it.Signed-off-by BALATON Zoltan <[email protected]>
Quoted 8 lines
--- hw/alpha/dp264.c | 2 -- hw/hppa/machine.c | 2 -- hw/mips/fuloong2e.c | 1 - hw/mips/malta.c | 2 -- hw/ppc/prep.c | 2 -- hw/sparc64/sun4u.c | 1 - 6 files changed, 10 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
And queued to mips-next, thanks!