Skip to content

Commit

Permalink
rv-virt: Guard procfs mount with CONFIG_FS_PROCFS
Browse files Browse the repository at this point in the history
Don't mount procfs if it is not enabled in the kernel configuration.

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
  • Loading branch information
no1wudi authored and acassis committed Feb 1, 2024
1 parent dce4597 commit bff298a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boards/risc-v/qemu-rv/rv-virt/src/qemu_rv_appinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ int board_app_initialize(uintptr_t arg)

#ifdef CONFIG_NSH_ARCHINIT

#ifdef CONFIG_FS_PROCFS
mount(NULL, "/proc", "procfs", 0, NULL);
#endif

#ifdef CONFIG_FS_TMPFS
mount(NULL, "/tmp", "tmpfs", 0, NULL);
Expand Down

0 comments on commit bff298a

Please sign in to comment.