nuttx/fs
Xiang Xiao 36c05601df fs/procfs: Fix warning when all CONFIG_FS_PROCFS_EXCLUDE_xxx are enabled
procfs/fs_procfs.c: In function 'procfs_readdir':
Error: procfs/fs_procfs.c:719:9: error: unused variable 'pid' [-Werror=unused-variable]
  719 |   pid_t pid;
      |         ^~~
Error: procfs/fs_procfs.c:716:21: error: unused variable 'tcb' [-Werror=unused-variable]
  716 |   FAR struct tcb_s *tcb;
      |                     ^~~
procfs/fs_procfs.c: At top level:
Error: procfs/fs_procfs.c:206:16: error: 'procfs_enum' declared 'static' but never defined [-Werror=unused-function]
  206 | static void    procfs_enum(FAR struct tcb_s *tcb, FAR void *arg);
      |                ^~~~~~~~~~~
procfs/fs_procfs.c: In function 'procfs_readdir':
Error: procfs/fs_procfs.c:878:35: error: array subscript <unknown> is outside array bounds of 'const struct procfs_entry_s[0]' [-Werror=array-bounds]
  878 |       if (strncmp(g_procfs_entries[level1->base.index].pathpattern,
      |                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
procfs/fs_procfs.c:98:36: note: while referencing 'g_procfs_entries'
   98 | static const struct procfs_entry_s g_procfs_entries[] =
      |                                    ^~~~~~~~~~~~~~~~
Error: procfs/fs_procfs.c:879:35: error: array subscript <unknown> is outside array bounds of 'const struct procfs_entry_s[0]' [-Werror=array-bounds]
  879 |                   g_procfs_entries[level1->firstindex].pathpattern,
      |                   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
procfs/fs_procfs.c:98:36: note: while referencing 'g_procfs_entries'
   98 | static const struct procfs_entry_s g_procfs_entries[] =
      |                                    ^~~~~~~~~~~~~~~~
Error: procfs/fs_procfs.c:745:24: error: array subscript <unknown> is outside array bounds of 'const struct procfs_entry_s[0]' [-Werror=array-bounds]
  745 |               pentry = &g_procfs_entries[index - priv->nentries];
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
procfs/fs_procfs.c:98:36: note: while referencing 'g_procfs_entries'
   98 | static const struct procfs_entry_s g_procfs_entries[] =
      |                                    ^~~~~~~~~~~~~~~~
Error: procfs/fs_procfs.c:745:41: error: array subscript <unknown> is outside array bounds of 'const struct procfs_entry_s[0]' [-Werror=array-bounds]
  745 |               pentry = &g_procfs_entries[index - priv->nentries];
      |                         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-18 15:10:26 +09:00
..
aio libc: Move queue.h from include to include/nuttx 2022-09-26 08:04:58 +02:00
binfs fs/directory: move private directory information to filesystem 2022-08-09 23:30:01 +08:00
cromfs fs/directory: move private directory information to filesystem 2022-08-09 23:30:01 +08:00
driver Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fat Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
hostfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
inode Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
littlefs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mmap Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
mount arch: Replace critical section with nxmutex in i2c/spi/1wire initialization 2022-10-17 15:59:46 +09:00
mqueue Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
nfs drivers: Destroy mutex and sem in the error path 2022-10-17 15:59:46 +09:00
nxffs drivers: Destroy mutex and sem in the error path 2022-10-17 15:59:46 +09:00
partition Fixes for GPT partition parsing 2022-09-27 09:42:39 +08:00
procfs fs/procfs: Fix warning when all CONFIG_FS_PROCFS_EXCLUDE_xxx are enabled 2022-10-18 15:10:26 +09:00
romfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
rpmsgfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
semaphore Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
shm Kconfig: Remove EXPERIMENTAL for features which is been around a long time 2022-09-19 11:39:22 -03:00
smartfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
socket fs:oflag need consistent with psock 2022-04-19 13:58:56 +03:00
spiffs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
tmpfs Fixed NULL pointer use in tmpfs. 2022-10-14 21:29:37 +08:00
unionfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
userfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
vfs Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
fs_initialize.c fs/rpmsg: Move the server initialization to fs_initialize 2022-08-11 02:08:42 +03:00
Kconfig FS Disable FS_LARGEFILE by default 2022-08-04 22:31:57 +08:00
Makefile fs/directory: use file mode to manage directory 2022-08-09 23:30:01 +08:00