Skip to content

Commit

Permalink
fs/procfs: The procfsversion should be under control of `FS_PROCFS_EX…
Browse files Browse the repository at this point in the history
…CLUDE_VERSION`

Env

  sim:nsh
  - CONFIG_FS_PROCFS_EXCLUDE_PROCESS=y

Error

  LD:  nuttx
  /usr/bin/ld: nuttx.rel:(.rodata.g_procfs_entries+0xc8): undefined reference to `g_version_operations'
  collect2: error: ld returned 1 exit status
  make[1]: *** [Makefile:429: nuttx] Error 1
  make: *** [tools/Unix.mk:551: nuttx] Error 2

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 authored and acassis committed Nov 13, 2024
1 parent 3d90079 commit 4266580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/procfs/fs_procfsversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#include "fs_heap.h"

#if !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_PROCFS)
#ifndef CONFIG_FS_PROCFS_EXCLUDE_PROCESS
#ifndef CONFIG_FS_PROCFS_EXCLUDE_VERSION

/****************************************************************************
* Pre-processor Definitions
Expand Down

0 comments on commit 4266580

Please sign in to comment.