git: 4e2ddb0d416e - stable/12 - x86 mptable: Include <x86/legacvar.h> for legacy_get_pcibus().

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 13 Jul 2022 17:53:33 UTC
The branch stable/12 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=4e2ddb0d416e420ecf63d1008b3f931effc04d5f

commit 4e2ddb0d416e420ecf63d1008b3f931effc04d5f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-06-23 22:00:12 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-07-13 16:53:16 +0000

    x86 mptable: Include <x86/legacvar.h> for legacy_get_pcibus().
    
    Fixes:          b076d8d54c2f mptable_hostb: Use legacy_get_pcibus() to fetch PCI bus number.
    
    (cherry picked from commit 15a6642da6b0b97de580e06349706cf7e660986c)
---
 sys/x86/x86/mptable.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/x86/x86/mptable.c b/sys/x86/x86/mptable.c
index d6e5cbc27235..f3f9ece14082 100644
--- a/sys/x86/x86/mptable.c
+++ b/sys/x86/x86/mptable.c
@@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$");
 #include <dev/pci/pcib_private.h>
 #endif
 #include <x86/apicreg.h>
+#include <x86/legacyvar.h>
 #include <x86/mptable.h>
 #include <machine/frame.h>
 #include <machine/intr_machdep.h>