From 3da25bdb026dedbb8d1250081cb137e4166e8f20 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Tue, 3 Apr 2018 17:16:06 +0000 Subject: [PATCH] fix i386 build with CPU_ELAN (LINT for instance) after r331878 x86/cpu_machdep.c now needs to include elan_mmcr.h when CPU_ELAN is set. While here, also remove the now unneeded inclusion of isareg.h in i386 and amd64 vm_machdep.c. Reported by: lwhsu MFC after: 14 days X-MFC with: r331878 --- sys/amd64/amd64/vm_machdep.c | 2 -- sys/i386/i386/vm_machdep.c | 6 ------ sys/x86/x86/cpu_machdep.c | 3 +++ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/amd64/amd64/vm_machdep.c b/sys/amd64/amd64/vm_machdep.c index eadedc671c6..cf8879eb8eb 100644 --- a/sys/amd64/amd64/vm_machdep.c +++ b/sys/amd64/amd64/vm_machdep.c @@ -82,8 +82,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include - _Static_assert(OFFSETOF_CURTHREAD == offsetof(struct pcpu, pc_curthread), "OFFSETOF_CURTHREAD does not correspond with offset of pc_curthread."); _Static_assert(OFFSETOF_CURPCB == offsetof(struct pcpu, pc_curpcb), diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index ebdcde83b01..dce8435db99 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -79,10 +79,6 @@ __FBSDID("$FreeBSD$"); #include #include -#ifdef CPU_ELAN -#include -#endif - #include #include #include @@ -90,8 +86,6 @@ __FBSDID("$FreeBSD$"); #include #include -#include - #ifndef NSFBUFS #define NSFBUFS (512 + maxusers * 16) #endif diff --git a/sys/x86/x86/cpu_machdep.c b/sys/x86/x86/cpu_machdep.c index 72573955b60..eaa4a3c9ebb 100644 --- a/sys/x86/x86/cpu_machdep.c +++ b/sys/x86/x86/cpu_machdep.c @@ -85,6 +85,9 @@ __FBSDID("$FreeBSD$"); #ifdef SMP #include #endif +#ifdef CPU_ELAN +#include +#endif #include #include