fs/procfs: The procfsversion should be under control of FS_PROCFS_EXCLUDE_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 <wangjianyu3@xiaomi.com>
This commit is contained in:
wangjianyu3 2024-11-13 21:02:46 +08:00 committed by Alan C. Assis
parent 3d90079f50
commit 4266580319

View file

@ -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