git: 3c631d2f19cd - stable/13 - extres: syscon: pull in sys/malloc.h (fix !FDT)

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Wed, 02 Nov 2022 17:03:10 UTC
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=3c631d2f19cd7a1649393d3d914898ebda41fec3

commit 3c631d2f19cd7a1649393d3d914898ebda41fec3
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2022-09-29 19:33:32 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2022-11-02 17:02:25 +0000

    extres: syscon: pull in sys/malloc.h (fix !FDT)
    
    syscon currently includes sys/malloc.h via header pollution from
    dev/ofw/ofw_bus.h -> dev/ofw/openfirm.h.  Fix the build without FDT
    defined by including sys/malloc.h directly.
    
    Reviewed by:    andrew, imp, manu
    
    (cherry picked from commit 79794d5c18b7df9458b3c609a189bf2159e234e4)
---
 sys/dev/extres/syscon/syscon.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/extres/syscon/syscon.c b/sys/dev/extres/syscon/syscon.c
index 9bae30432880..3701c6e8fe70 100644
--- a/sys/dev/extres/syscon/syscon.c
+++ b/sys/dev/extres/syscon/syscon.c
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/kernel.h>
 #include <sys/kobj.h>
 #include <sys/lock.h>
+#include <sys/malloc.h>
 #include <sys/module.h>
 #include <sys/rman.h>
 #include <sys/sx.h>