Alper Nebi Yasak has uploaded this change for review.

View Change

drivers/qemu/cirrus: Add missing arch/io.h include

The Cirrus display driver uses port I/O functions without including the
arch/io.h header that defines them. The header is included through
arch/pci_ops.h and arch/pci_io_cfg.h on x86, so we don't normally get
a build error. This is not the case on other architectures.

Include the necessary arch/io.h header directly in the Cirrus driver
to help make it possible to build it on other architectures.

Change-Id: I84c76e6e723c776f45d40d98029e33adb57005c0
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
---
M src/drivers/emulation/qemu/cirrus.c
1 file changed, 1 insertion(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/82062/1
diff --git a/src/drivers/emulation/qemu/cirrus.c b/src/drivers/emulation/qemu/cirrus.c
index 6fa9ac2..a98fabb 100644
--- a/src/drivers/emulation/qemu/cirrus.c
+++ b/src/drivers/emulation/qemu/cirrus.c
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */

#include <stdint.h>
+#include <arch/io.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>

To view, visit change 82062. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I84c76e6e723c776f45d40d98029e33adb57005c0
Gerrit-Change-Number: 82062
Gerrit-PatchSet: 1
Gerrit-Owner: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Gerrit-MessageType: newchange