Kernel: clean up include statements a bit
Coverity was flagging a recursive include between kernel.h and cpulocals.h. As cpulocals.h also included proc.h, we can move that include statement into kernel.h, and clean up the source files' include statements accordingly.
This commit is contained in:
@@ -10,8 +10,6 @@
|
||||
#include <minix/syslib.h>
|
||||
#include <machine/cmos.h>
|
||||
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/glo.h"
|
||||
#include "arch_proto.h"
|
||||
|
||||
#include <minix/u64.h>
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "kernel/kernel.h"
|
||||
|
||||
#include "kernel/clock.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/interrupt.h"
|
||||
#include <minix/u64.h>
|
||||
#include "glo.h"
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include "arch_proto.h"
|
||||
#include "serial.h"
|
||||
#include "oxpcie.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/debug.h"
|
||||
#include "direct_utils.h"
|
||||
#include <machine/multiboot.h>
|
||||
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
#define _SMP
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "arch_proto.h"
|
||||
#include "kernel/glo.h"
|
||||
#include <unistd.h>
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
#include "arch_proto.h"
|
||||
#include "serial.h"
|
||||
#include "oxpcie.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/debug.h"
|
||||
#include "direct_utils.h"
|
||||
#include <machine/multiboot.h>
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@
|
||||
#include <signal.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/proto.h"
|
||||
#include <machine/vm.h>
|
||||
|
||||
struct ex_s {
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
#include <machine/asm.h>
|
||||
#include <machine/interrupt.h>
|
||||
#include "archconst.h"
|
||||
#include "kernel/const.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "sconst.h"
|
||||
#include <machine/multiboot.h>
|
||||
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
*/
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "arch_proto.h"
|
||||
#include "hw_intr.h"
|
||||
#include <minix/portio.h>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "kernel/vm.h"
|
||||
|
||||
#include <machine/vm.h>
|
||||
@@ -17,8 +16,6 @@
|
||||
|
||||
#include "oxpcie.h"
|
||||
#include "arch_proto.h"
|
||||
#include "kernel/proto.h"
|
||||
#include "kernel/debug.h"
|
||||
|
||||
#ifdef USE_APIC
|
||||
#include "apic.h"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
include "kernel.h"
|
||||
include "proc.h"
|
||||
|
||||
struct proc
|
||||
member DIREG p_reg.di
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <machine/multiboot.h>
|
||||
|
||||
#include "kernel/kernel.h"
|
||||
#include "kernel/proc.h"
|
||||
#include "archconst.h"
|
||||
|
||||
#include "arch_proto.h"
|
||||
|
||||
Reference in New Issue
Block a user