diff options
author | dzwdz | 2022-08-12 15:21:59 +0200 |
---|---|---|
committer | dzwdz | 2022-08-12 15:21:59 +0200 |
commit | 55ce6808cd99ecbb06bd9b0fac181ed2c3bf15ff (patch) | |
tree | 2aae9e401d6fc963e106588795666cd8af07bbb4 /src/kernel/arch/amd64 | |
parent | 3fa9fee167b9e6f070aba9a1cec1ce69531d9601 (diff) |
fix some minor warnings
Diffstat (limited to 'src/kernel/arch/amd64')
-rw-r--r-- | src/kernel/arch/amd64/driver/pata.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/amd64/driver/video.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/arch/amd64/driver/pata.c b/src/kernel/arch/amd64/driver/pata.c index a21fc2b..b4ec46c 100644 --- a/src/kernel/arch/amd64/driver/pata.c +++ b/src/kernel/arch/amd64/driver/pata.c @@ -7,7 +7,7 @@ #include <kernel/vfs/request.h> #include <shared/mem.h> -const int root_id = 100; +static const int root_id = 100; static void accept(struct vfs_request *req); static struct vfs_backend backend = BACKEND_KERN(accept); diff --git a/src/kernel/arch/amd64/driver/video.c b/src/kernel/arch/amd64/driver/video.c index ed4b971..c1aabe1 100644 --- a/src/kernel/arch/amd64/driver/video.c +++ b/src/kernel/arch/amd64/driver/video.c @@ -37,7 +37,7 @@ static int handle(struct vfs_request *req) { } case VFSOP_WRITE: - if ((long)req->id != H_FB) { + if ((long __force)req->id != H_FB) { return -1; } fs_normslice(&req->offset, &req->input.len, fb.size, false); |