Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiling #69

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/mmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <arch.h>
#include <arch/arm.h>
#include <arch/defines.h>
#include <arch/ops.h>
#include <arch/arm/mmu.h>
#include <platform.h>

Expand Down
2 changes: 2 additions & 0 deletions kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include <arch.h>
#include <platform.h>
#include <target.h>
#include <lib/bio.h>
#include <lib/fs.h>
#include <lib/heap.h>
#include <kernel/thread.h>
#include <kernel/timer.h>
Expand Down
1 change: 1 addition & 0 deletions lib/debug/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <arch/ops.h>
#include <platform.h>
#include <platform/debug.h>
#include <platform/timer.h>
#include <kernel/thread.h>
#include <kernel/timer.h>
#include <rand.h>
Expand Down
6 changes: 3 additions & 3 deletions lib/fs/ext2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int ext2_lookup(ext2_t *ext2, const char *_path, inodenum_t *inum)
// © 2019 Mis012 - SPDX-License-Identifier: GPL-3.0
// from here till the end of file

status_t ext2_open_directory(fscookie *cookie, const char *path, dircookie **dircookie) {
status_t ext2_open_directory(fscookie *cookie, const char *path, dircookie **dcookie) {
off_t entry_len = 0;
ext2_dir_t *dir = malloc(sizeof(ext2_dir_t));
memset(dir, 0, sizeof(ext2_dir_t));
Expand All @@ -225,7 +225,7 @@ status_t ext2_open_directory(fscookie *cookie, const char *path, dircookie **dir
dir->offset = 0;
dir->length = entry_len;

*dircookie = dir;
*dcookie = (dircookie *) dir;

return 0;
}
Expand Down Expand Up @@ -254,7 +254,7 @@ status_t ext2_read_directory(dircookie *dircookie, struct dirent *ent) {
status_t ext2_close_directory(dircookie *dircookie) {
ext2_dir_t *dir = (ext2_dir_t *)dircookie;

ext2_close_file(dir->file);
ext2_close_file((filecookie *)dir->file);
free(dir);
return 0;
}
1 change: 1 addition & 0 deletions platform/msm8953/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <qtimer.h>
#include <mmu.h>
#include <arch/arm/mmu.h>
#include <arch/defines.h>
#include <smem.h>
#include <board.h>
#include <boot_stats.h>
Expand Down
Loading