Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#1454 closed defect (fixed)

RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES declaration is incompatible with C++

Reported by: Nickolay Semyonov-Kolchin Owned by: Sebastian Huber
Priority: normal Milestone: 4.10
Component: score Version: 4.10
Severity: normal Keywords:
Cc: sebastian.huber@… Blocked By:
Blocking:

Description

In current CVS sources RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES is defined as:

#define RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES \

.open_entry = rtems_blkdev_generic_open, \
.close_entry = rtems_blkdev_generic_close, \
.read_entry = rtems_blkdev_generic_read, \
.write_entry = rtems_blkdev_generic_write, \
.control_entry = rtems_blkdev_generic_ioctl

This syntax is not supported in C++. So we can't make C++ only program with disk support in RTEMS. Like, for example, 'testsuites/samples/iostream/init.cc'.

Attachments (1)

blkdev.patch (934 bytes) - added by Sebastian Huber on 11/20/09 at 12:28:07.
Fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed on 11/20/09 at 08:52:53 by Sebastian Huber

Cc: Sebastian Huber added

Changed on 11/20/09 at 12:28:07 by Sebastian Huber

Attachment: blkdev.patch added

Fix

comment:2 Changed on 11/20/09 at 12:28:07 by Sebastian Huber

Owner: changed from Joel Sherrill to Sebastian Huber
Status: newassigned

comment:3 Changed on 12/02/09 at 09:23:21 by Sebastian Huber

Resolution: fixed
Status: assignedclosed

Fixed on CVS head.

Note: See TracTickets for help on using tickets.