[PATCH] rfs: Fix for 64-bit targets

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jan 23 15:41:33 UTC 2018


There were a lot of other 64-bit target problems. Backporting this patch alone doesn’t help.

----- Gedare Bloom <gedare at rtems.org> schrieb:
> 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

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list