You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/i386
Cédric Le Goater 2f5c96d534 i386: Fix const qualifier build errors with recent glibc
A recent change in glibc 2.42.9000 [1] changes the return type of
strstr() and other string functions to be 'const char *' when the
input is a 'const char *'. This breaks the build in :

  ../hw/i386/x86-common.c:827:11: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
  827 |     vmode = strstr(kernel_cmdline, "vga=");
      |           ^

Fix this by changing the type of the variables that store the result
of these functions to 'const char *'.

[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=cd748a63ab1a7ae846175c532a3daab341c62690

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Link: https://lore.kernel.org/qemu-devel/20251215101937.281722-2-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
1 week ago
..
kvm hw/i386/apic: Prefer APICCommonState over DeviceState 2 months ago
xen qom: Make InterfaceInfo[] uses const 8 months ago
Kconfig hw/i386: move isapc machine to separate isapc.c file 4 months ago
acpi-build.c amd_iommu: HATDis/HATS=11 support 3 months ago
acpi-build.h hw/acpi: Rename and move build_x86_acpi_pci_hotplug to pcihp 5 months ago
acpi-common.c include/system: Move exec/memory.h to system/memory.h 8 months ago
acpi-common.h hw/i386/acpi: Declare pc_madt_cpu_entry() in 'acpi-common.h' 2 years ago
acpi-microvm.c include/system: Move exec/memory.h to system/memory.h 8 months ago
acpi-microvm.h microvm/acpi: add minimal acpi support 5 years ago
amd_iommu-stub.c amd_iommu: report x2APIC support to the operating system 2 years ago
amd_iommu.c amd_iommu: Support 64-bit address for IOTLB lookup 2 months ago
amd_iommu.h amd_iommu: Support 64-bit address for IOTLB lookup 2 months ago
e820_memory_layout.c hw/i386/fw_cfg: Add etc/e820 to fw_cfg late 2 years ago
e820_memory_layout.h hw/i386/fw_cfg: Add etc/e820 to fw_cfg late 2 years ago
fw_cfg.c rust: Kconfig: Factor out whether HPET is Rust or C 9 months ago
fw_cfg.h hw/i386/fw_cfg: Add etc/e820 to fw_cfg late 2 years ago
intel_iommu.c intel_iommu: Fix DMA failure when guest switches IOMMU domain 2 months ago
intel_iommu_internal.h intel_iommu: Handle PASID cache invalidation 2 months ago
isapc.c hw/i386/isapc.c: warn rather than reject modern x86 CPU models 2 months ago
meson.build hw/i386: move isapc machine to separate isapc.c file 4 months ago
microvm-dt.c hw/i386/microvm: Use fdt field from MachineState 2 months ago
microvm-dt.h microvm: add device tree support. 4 years ago
microvm.c hw/i386: Fix 'use-legacy-x86-rom' property compatibility 5 months ago
monitor.c qapi: expose rtc-reset-reinjection command unconditionally 7 months ago
multiboot.c hw/core/loader: capture Error from load_image_targphys 2 months ago
multiboot.h target/i386: use DMA-enabled multiboot ROM for new-enough QEMU machine types 4 years ago
nitro_enclave.c qom: Have class_init() take a const data argument 8 months ago
pc.c q35: increase default tseg size 2 months ago
pc_piix.c smbios: cap DIMM size to 2Tb as workaround for broken Windows 3 months ago
pc_q35.c smbios: cap DIMM size to 2Tb as workaround for broken Windows 3 months ago
pc_sysfw.c i386/pc_sysfw: Ensure sysfw flash configuration does not conflict with IGVM 6 months ago
pc_sysfw_ovmf-stubs.c hw/i386: Introduce X86_FW_OVMF Kconfig symbol 5 years ago
pc_sysfw_ovmf.c exec/cpu-all: remove exec/target_page include 8 months ago
port92.c qom: Have class_init() take a const data argument 8 months ago
sgx-epc.c qom: Make InterfaceInfo[] uses const 8 months ago
sgx-stub.c qapi: make SGX commands unconditionally available 7 months ago
sgx.c qapi: make SGX commands unconditionally available 7 months ago
tdvf-hob.c i386/tdx: Setup the TD HOB list 7 months ago
tdvf-hob.h i386/tdx: Setup the TD HOB list 7 months ago
tdvf.c i386/tdvf: Fix build on 32-bit host 7 months ago
trace-events intel_iommu: Reset pasid cache when system level reset 2 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
vapic.c hw/i386/apic: Prefer APICCommonState over DeviceState 2 months ago
vmmouse.c qom: Have class_init() take a const data argument 8 months ago
vmport.c qom: Have class_init() take a const data argument 8 months ago
x86-common.c i386: Fix const qualifier build errors with recent glibc 1 week ago
x86-cpu.c hw/i386/apic: Prefer APICCommonState over DeviceState 2 months ago
x86-iommu-stub.c hw/i386/pc: Remove x86_iommu_get_type() 4 years ago
x86-iommu.c intel-iommu: Move dma_translation to x86-iommu 3 months ago
x86.c hw/i386/x86: Remove X86MachineClass::save_tsc_khz field 7 months ago