[PATCH] rfs: Fix for 64-bit targets
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Jan 22 11:34:08 UTC 2018
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
More information about the devel
mailing list