Skip to content

Commit

Permalink
fs_automount:fix ci break
Browse files Browse the repository at this point in the history
====================================================================================
Configuration/Tool: spresense/example_camera,CONFIG_ARM_TOOLCHAIN_GNU_EABI
2024-11-12 12:24:37
------------------------------------------------------------------------------------
  Cleaning...
  Configuring...
  Disabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Enabling CONFIG_ARM_TOOLCHAIN_GNU_EABI
  Building NuttX...
mount/fs_automount.c: In function 'automount_initialize':
Error: mount/fs_automount.c:816:7: error: 'return' with no value, in function returning non-void [-Werror=return-type]
  816 |       return;
      |       ^~~~~~
In file included from mount/fs_automount.c:43:
/github/workspace/sources/nuttx/include/nuttx/fs/automount.h:176:11: note: declared here
  176 | FAR void *automount_initialize(FAR const struct automount_lower_s *lower);
      |           ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Signed-off-by: chenrun1 <[email protected]>
  • Loading branch information
crafcat7 committed Nov 13, 2024
1 parent f22685f commit f05a115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/mount/fs_automount.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ FAR void *automount_initialize(FAR const struct automount_lower_s *lower)
FAR char *devpath = lib_get_pathbuffer();
if (devpath == NULL)
{
return;
return NULL;
}
#endif /* CONFIG_FS_AUTOMOUNTER_DRIVER */

Expand All @@ -826,6 +826,7 @@ FAR void *automount_initialize(FAR const struct automount_lower_s *lower)
if (priv == NULL)
{
ferr("ERROR: Failed to allocate state structure\n");
lib_put_pathbuffer(devpath);
return NULL;
}

Expand Down

0 comments on commit f05a115

Please sign in to comment.