]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/display/bcm2835_fb: Move inclusion of console.h to the .c file
authorThomas Huth <thuth@redhat.com>
Thu, 8 May 2025 14:41:17 +0000 (16:41 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 9 Sep 2025 07:31:15 +0000 (09:31 +0200)
The definitions from console.h are not needed in the bcm2835_fb.h
header file yet, so let's move it to the place that really needs
its definitions, i.e. into the bcm2835_fb.c file.
This way the header can also be used by code that is not compiled
with the CFLAGS that are required for pixman or OpenGL (in case
their headers do not reside under /usr/include).

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250508144120.163009-3-thuth@redhat.com>

hw/display/bcm2835_fb.c
include/hw/display/bcm2835_fb.h

index 820e67ac8bb499357a5c008a88ad1015ba4952da..1bb2ee45a015708a278a57a6b8fc87b41447c293 100644 (file)
@@ -27,6 +27,7 @@
 #include "hw/display/bcm2835_fb.h"
 #include "hw/hw.h"
 #include "hw/irq.h"
+#include "ui/console.h"
 #include "framebuffer.h"
 #include "ui/pixel_ops.h"
 #include "hw/misc/bcm2835_mbox_defs.h"
index 49541bf08f4503b765be5e5a352c7f554bbcaa89..acc9230b6a857b70c62b8920e46059d77b0051e1 100644 (file)
@@ -13,7 +13,6 @@
 #define BCM2835_FB_H
 
 #include "hw/sysbus.h"
-#include "ui/console.h"
 #include "qom/object.h"
 
 #define UPPER_RAM_BASE 0x40000000