From 7ed836c1e1e3b3ad761787cd5a5c0916139163b0 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Wed, 7 Aug 2024 14:57:15 +0200 Subject: [PATCH] Cleaning unused imports --- kernel/file.c | 2 -- kernel/sleeplock.c | 5 ----- user/umalloc.c | 2 -- user/usertests.c | 2 -- user/wc.c | 2 -- 5 files changed, 13 deletions(-) diff --git a/kernel/file.c b/kernel/file.c index 72cca61..24c6ec6 100644 --- a/kernel/file.c +++ b/kernel/file.c @@ -3,12 +3,10 @@ // #include "types.h" -#include "riscv.h" #include "defs.h" #include "param.h" #include "fs.h" #include "spinlock.h" -#include "sleeplock.h" #include "file.h" #include "stat.h" #include "proc.h" diff --git a/kernel/sleeplock.c b/kernel/sleeplock.c index e0f05a9..2aaf93e 100644 --- a/kernel/sleeplock.c +++ b/kernel/sleeplock.c @@ -1,11 +1,6 @@ // Sleeping locks -#include "types.h" -#include "riscv.h" #include "defs.h" -#include "param.h" -#include "memlayout.h" -#include "spinlock.h" #include "proc.h" #include "sleeplock.h" diff --git a/user/umalloc.c b/user/umalloc.c index 4398225..99107b2 100644 --- a/user/umalloc.c +++ b/user/umalloc.c @@ -1,7 +1,5 @@ #include "kernel/types.h" -#include "kernel/stat.h" #include "user/user.h" -#include "kernel/param.h" // Memory allocator by Kernighan and Ritchie, // The C programming Language, 2nd ed. Section 8.7. diff --git a/user/usertests.c b/user/usertests.c index d4fb6be..d078540 100644 --- a/user/usertests.c +++ b/user/usertests.c @@ -1,10 +1,8 @@ #include "kernel/param.h" #include "kernel/types.h" -#include "kernel/stat.h" #include "user/user.h" #include "kernel/fs.h" #include "kernel/fcntl.h" -#include "kernel/syscall.h" #include "kernel/memlayout.h" #include "kernel/riscv.h" diff --git a/user/wc.c b/user/wc.c index 7719650..77dae22 100644 --- a/user/wc.c +++ b/user/wc.c @@ -1,5 +1,3 @@ -#include "kernel/types.h" -#include "kernel/stat.h" #include "user/user.h" char buf[512];