[PATCH] rfs: Fix for 64-bit targets

Gedare Bloom gedare at rtems.org
Tue Jan 23 15:08:59 UTC 2018


Please also open tickets for 4.11, 4.10 and apply there.

On Mon, Jan 22, 2018 at 6:34 AM, Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
> The RTEMS_BLKIO_SETBLKSIZE IO control expects an uint32_t parameter and
> not a size_t which is 64-bits on 64-bit targets.
>
> Update #3082.
> ---
>  cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 2 +-
>  cpukit/libfs/src/rfs/rtems-rfs-buffer.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
> index d99a351a7f..c1c780bc48 100644
> --- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
> +++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
> @@ -411,7 +411,7 @@ rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
>  }
>
>  int
> -rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
> +rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, uint32_t size)
>  {
>    int rc;
>
> diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.h b/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
> index f5fe9d48e2..1c603e1827 100644
> --- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
> +++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
> @@ -268,7 +268,7 @@ int rtems_rfs_buffer_sync (rtems_rfs_file_system* fs);
>   * @retval 0 Successful operation.
>   * @retval error_code An error occurred.
>   */
> -int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size);
> +int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, uint32_t size);
>
>  /**
>   * Release any chained buffers.
> --
> 2.12.3
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel



More information about the devel mailing list