The branch main has been updated by glebius:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=7fb975c8fb970b35fc34561ed30a0fe220346cb6

commit 7fb975c8fb970b35fc34561ed30a0fe220346cb6
Author:     Gleb Smirnoff <[email protected]>
AuthorDate: 2022-10-18 05:38:02 +0000
Commit:     Gleb Smirnoff <[email protected]>
CommitDate: 2022-10-18 05:38:02 +0000

    dpaa2: fix build without FDT
---
 sys/dev/dpaa2/dpaa2_mc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c
index 36e3166f1f84..83563b82c6c7 100644
--- a/sys/dev/dpaa2/dpaa2_mc.c
+++ b/sys/dev/dpaa2/dpaa2_mc.c
@@ -742,11 +742,13 @@ dpaa2_mc_get_xref(device_t mcdev, device_t child)
 {
        struct dpaa2_mc_softc *sc = device_get_softc(mcdev);
        struct dpaa2_devinfo *dinfo = device_get_ivars(child);
-       phandle_t msi_parent;
 #ifdef DEV_ACPI
        u_int xref, devid;
 #endif
+#ifdef FDT
+       phandle_t msi_parent;
        int error;
+#endif
 
        if (sc && dinfo) {
 #ifdef DEV_ACPI

Reply via email to