#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 Nov 20, 2009 at 12:28:07 PM.
Fix

Download all attachments as: .zip

Change History (4)

comment:1 Changed on Nov 20, 2009 at 8:52:53 AM by Sebastian Huber

Cc: Sebastian Huber added

Changed on Nov 20, 2009 at 12:28:07 PM by Sebastian Huber

Attachment: blkdev.patch added

Fix

comment:2 Changed on Nov 20, 2009 at 12:28:07 PM by Sebastian Huber

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

comment:3 Changed on Dec 2, 2009 at 9:23:21 AM by Sebastian Huber

Resolution: fixed
Status: assignedclosed

Fixed on CVS head.

Note: See TracTickets for help on using tickets.