diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-30 06:39:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-07 07:17:16 +0200 |
commit | 24b94c47713bbaadd8b8a876a2e7c7f3a9def5d8 (patch) | |
tree | efcbf3a2cd173820310dea2b7b7677329bc1a4e4 /testsuites/libtests/block01 | |
parent | rfs: Remove erroneous call of rtems_disk_release() (diff) | |
download | rtems-24b94c47713bbaadd8b8a876a2e7c7f3a9def5d8.tar.bz2 |
ramdisk: Use rtems_blkdev_create()
Update #3358.
Diffstat (limited to 'testsuites/libtests/block01')
-rw-r--r-- | testsuites/libtests/block01/init.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/testsuites/libtests/block01/init.c b/testsuites/libtests/block01/init.c index 92dbfc9aba..04b2ef4986 100644 --- a/testsuites/libtests/block01/init.c +++ b/testsuites/libtests/block01/init.c @@ -7,10 +7,10 @@ */ /* - * Copyright (c) 2009-2012 embedded brains GmbH. All rights reserved. + * Copyright (c) 2009, 2018 embedded brains GmbH. All rights reserved. * * embedded brains GmbH - * Obere Lagerstr. 30 + * Dornierstr. 4 * 82178 Puchheim * Germany * <rtems@embedded-brains.de> @@ -35,9 +35,6 @@ const char rtems_test_name[] = "BLOCK 1"; -/* forward declarations to avoid warnings */ -static rtems_task Init(rtems_task_argument argument); - #define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL) #define ASSERT_SC_EQ(sc, sc_expected) rtems_test_assert((sc) == (sc_expected)) @@ -46,6 +43,11 @@ static rtems_task Init(rtems_task_argument argument); #define BLOCK_COUNT 16U +static const rtems_driver_address_table ramdisk_ops = { + .initialization_entry = NULL, + RTEMS_GENERIC_BLOCK_DEVICE_DRIVER_ENTRIES +}; + static void test_block_io_control_api(dev_t dev, ramdisk *rd) { rtems_status_code sc = RTEMS_SUCCESSFUL; |