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:
parent
5456f2728e
commit
cf9a4ec79b
23 changed files with 2 additions and 44 deletions
|
@ -10,8 +10,6 @@
|
||||||
#include <minix/syslib.h>
|
#include <minix/syslib.h>
|
||||||
#include <machine/cmos.h>
|
#include <machine/cmos.h>
|
||||||
|
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/glo.h"
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
|
|
||||||
#include <minix/u64.h>
|
#include <minix/u64.h>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
|
|
||||||
#include "kernel/clock.h"
|
#include "kernel/clock.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/interrupt.h"
|
#include "kernel/interrupt.h"
|
||||||
#include <minix/u64.h>
|
#include <minix/u64.h>
|
||||||
#include "glo.h"
|
#include "glo.h"
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include "oxpcie.h"
|
#include "oxpcie.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/debug.h"
|
|
||||||
#include "direct_utils.h"
|
#include "direct_utils.h"
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@
|
||||||
#define _SMP
|
#define _SMP
|
||||||
|
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
#include "kernel/glo.h"
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
#include "serial.h"
|
#include "serial.h"
|
||||||
#include "oxpcie.h"
|
#include "oxpcie.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/debug.h"
|
|
||||||
#include "direct_utils.h"
|
#include "direct_utils.h"
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/proto.h"
|
|
||||||
#include <machine/vm.h>
|
#include <machine/vm.h>
|
||||||
|
|
||||||
struct ex_s {
|
struct ex_s {
|
||||||
|
|
|
@ -10,8 +10,6 @@
|
||||||
#include <machine/asm.h>
|
#include <machine/asm.h>
|
||||||
#include <machine/interrupt.h>
|
#include <machine/interrupt.h>
|
||||||
#include "archconst.h"
|
#include "archconst.h"
|
||||||
#include "kernel/const.h"
|
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "sconst.h"
|
#include "sconst.h"
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
#include "hw_intr.h"
|
#include "hw_intr.h"
|
||||||
#include <minix/portio.h>
|
#include <minix/portio.h>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "kernel/vm.h"
|
#include "kernel/vm.h"
|
||||||
|
|
||||||
#include <machine/vm.h>
|
#include <machine/vm.h>
|
||||||
|
@ -17,8 +16,6 @@
|
||||||
|
|
||||||
#include "oxpcie.h"
|
#include "oxpcie.h"
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
#include "kernel/proto.h"
|
|
||||||
#include "kernel/debug.h"
|
|
||||||
|
|
||||||
#ifdef USE_APIC
|
#ifdef USE_APIC
|
||||||
#include "apic.h"
|
#include "apic.h"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
|
|
||||||
include "kernel.h"
|
include "kernel.h"
|
||||||
include "proc.h"
|
|
||||||
|
|
||||||
struct proc
|
struct proc
|
||||||
member DIREG p_reg.di
|
member DIREG p_reg.di
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
#include <machine/multiboot.h>
|
#include <machine/multiboot.h>
|
||||||
|
|
||||||
#include "kernel/kernel.h"
|
#include "kernel/kernel.h"
|
||||||
#include "kernel/proc.h"
|
|
||||||
#include "archconst.h"
|
#include "archconst.h"
|
||||||
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include <minix/endpoint.h>
|
#include <minix/endpoint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
|
|
||||||
#ifndef __ASSEMBLY__
|
#ifndef __ASSEMBLY__
|
||||||
|
|
||||||
#include "kernel.h"
|
|
||||||
#include "proc.h"
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
||||||
/* SMP */
|
/* SMP */
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "debug.h"
|
|
||||||
|
|
||||||
#include <minix/callnr.h>
|
#include <minix/callnr.h>
|
||||||
#include <minix/sysutil.h>
|
#include <minix/sysutil.h>
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "archconst.h"
|
#include "archconst.h"
|
||||||
#include "hw_intr.h"
|
#include "hw_intr.h"
|
||||||
|
|
||||||
|
|
|
@ -45,8 +45,9 @@
|
||||||
#include "ipc.h" /* IPC constants */
|
#include "ipc.h" /* IPC constants */
|
||||||
#include "profile.h" /* system profiling */
|
#include "profile.h" /* system profiling */
|
||||||
#include "perf.h" /* performance-related definitions */
|
#include "perf.h" /* performance-related definitions */
|
||||||
|
#include "proc.h" /* process table */
|
||||||
|
#include "cpulocals.h" /* CPU-local variables */
|
||||||
#include "debug.h" /* debugging, MUST be last kernel header */
|
#include "debug.h" /* debugging, MUST be last kernel header */
|
||||||
#include "cpulocals.h"
|
|
||||||
|
|
||||||
#ifndef CONFIG_SMP
|
#ifndef CONFIG_SMP
|
||||||
/* We only support 1 cpu now */
|
/* We only support 1 cpu now */
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
#include <machine/vmparam.h>
|
#include <machine/vmparam.h>
|
||||||
#include <minix/u64.h>
|
#include <minix/u64.h>
|
||||||
#include <minix/type.h>
|
#include <minix/type.h>
|
||||||
#include "proc.h"
|
|
||||||
#include "debug.h"
|
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "hw_intr.h"
|
#include "hw_intr.h"
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
|
|
|
@ -35,14 +35,10 @@
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
#include "debug.h"
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
#include "clock.h"
|
#include "clock.h"
|
||||||
#include "spinlock.h"
|
#include "spinlock.h"
|
||||||
#include "profile.h"
|
|
||||||
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
|
|
||||||
#include <minix/syslib.h>
|
#include <minix/syslib.h>
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
#include <minix/config.h>
|
#include <minix/config.h>
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "profile.h"
|
|
||||||
#include "proc.h"
|
|
||||||
|
|
||||||
#include <minix/profile.h>
|
#include <minix/profile.h>
|
||||||
#include <minix/portio.h>
|
#include <minix/portio.h>
|
||||||
|
|
|
@ -31,10 +31,8 @@
|
||||||
* Sep 30, 2004 source code documentation updated (Jorrit N. Herder)
|
* Sep 30, 2004 source code documentation updated (Jorrit N. Herder)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "debug.h"
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "vm.h"
|
#include "vm.h"
|
||||||
#include "kernel/clock.h"
|
#include "kernel/clock.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
@ -30,11 +30,7 @@
|
||||||
#ifndef SYSTEM_H
|
#ifndef SYSTEM_H
|
||||||
#define SYSTEM_H
|
#define SYSTEM_H
|
||||||
|
|
||||||
/* Common includes for the system library. */
|
|
||||||
#include "debug.h"
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proto.h"
|
|
||||||
#include "proc.h"
|
|
||||||
|
|
||||||
int do_exec(struct proc * caller, message *m_ptr);
|
int do_exec(struct proc * caller, message *m_ptr);
|
||||||
#if ! USE_EXEC
|
#if ! USE_EXEC
|
||||||
|
|
|
@ -30,8 +30,6 @@
|
||||||
#define _TABLE
|
#define _TABLE
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "ipc.h"
|
|
||||||
#include <minix/com.h>
|
#include <minix/com.h>
|
||||||
|
|
||||||
/* The system image table lists all programs that are part of the boot image.
|
/* The system image table lists all programs that are part of the boot image.
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "kernel.h"
|
#include "kernel.h"
|
||||||
#include "proc.h"
|
|
||||||
#include "arch_proto.h"
|
#include "arch_proto.h"
|
||||||
|
|
||||||
#include <minix/syslib.h>
|
#include <minix/syslib.h>
|
||||||
|
|
Loading…
Reference in a new issue