Skip to content

Commit

Permalink
Fix compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
barni2000 committed May 15, 2024
1 parent 9100613 commit 8347ebc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
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

0 comments on commit 8347ebc

Please sign in to comment.