[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/56] hw/block/tc58128: Don't emit deprecation warning under qtes
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 01/56] hw/block/tc58128: Don't emit deprecation warning under qtest |
Date: |
Thu, 15 Feb 2024 18:56:55 +0100 |
From: Peter Maydell <peter.maydell@linaro.org>
Suppress the deprecation warning when we're running under qtest,
to avoid "make check" including warning messages in its output.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20240206154151.155620-1-peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/block/tc58128.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/block/tc58128.c b/hw/block/tc58128.c
index 6944cf58fa..0984e37417 100644
--- a/hw/block/tc58128.c
+++ b/hw/block/tc58128.c
@@ -202,7 +202,9 @@ static sh7750_io_device tc58128 = {
int tc58128_init(struct SH7750State *s, const char *zone1, const char *zone2)
{
- warn_report_once("The TC58128 flash device is deprecated");
+ if (!qtest_enabled()) {
+ warn_report_once("The TC58128 flash device is deprecated");
+ }
init_dev(&tc58128_devs[0], zone1);
init_dev(&tc58128_devs[1], zone2);
return sh7750_register_io_device(s, &tc58128);
--
2.41.0
- [PULL 00/56] Misc HW patches for 2024-02-15, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 01/56] hw/block/tc58128: Don't emit deprecation warning under qtest,
Philippe Mathieu-Daudé <=
- [PULL 02/56] hw/mips: remove unnecessary "select PTIMER", Philippe Mathieu-Daudé, 2024/02/15
- [PULL 04/56] target/mips: Remove helpers accessing SAAR registers, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 05/56] hw/misc/mips: Reduce itc_reconfigure() scope, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 03/56] target/mips: Use qemu_irq typedef for CPUMIPSState::irq member, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 06/56] target/mips: Remove MIPSITUState::itu field, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 07/56] target/mips: Remove CPUMIPSState::saarp field, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 08/56] hw/misc/mips_itu: Remove MIPSITUState::cpu0 field, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 09/56] hw/misc/mips_itu: Remove MIPSITUState::saar field, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 10/56] target/mips: Remove unused mips_def_t::SAARP field, Philippe Mathieu-Daudé, 2024/02/15
- [PULL 11/56] target/mips: Remove CPUMIPSState::CP0_SAAR[2] field, Philippe Mathieu-Daudé, 2024/02/15