diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-30 12:43:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-31 11:05:48 +0200 |
commit | 40284de8443df5e8f60420c11d2dcac09b6befb1 (patch) | |
tree | 0df3c57102c41b5dcf3b71144c73f4ef0b750e5f /testsuites | |
parent | libblock: Add task stack size bdbuf configuration (diff) | |
download | rtems-40284de8443df5e8f60420c11d2dcac09b6befb1.tar.bz2 |
libblock: Remove const qualifier from bdbuf API
This allows addtion of per disk statistics for example.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/fstests/fsbdpart01/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block01/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block02/init.c | 4 | ||||
-rw-r--r-- | testsuites/libtests/block03/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block04/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block05/init.c | 6 | ||||
-rw-r--r-- | testsuites/libtests/block06/init.c | 10 | ||||
-rw-r--r-- | testsuites/libtests/block08/bdbuf_tests.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block08/bdbuf_tests.h | 2 | ||||
-rw-r--r-- | testsuites/libtests/block09/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block10/init.c | 2 | ||||
-rw-r--r-- | testsuites/libtests/block11/init.c | 2 |
12 files changed, 19 insertions, 19 deletions
diff --git a/testsuites/fstests/fsbdpart01/init.c b/testsuites/fstests/fsbdpart01/init.c index 69fe071ef6..3539a05359 100644 --- a/testsuites/fstests/fsbdpart01/init.c +++ b/testsuites/fstests/fsbdpart01/init.c @@ -80,7 +80,7 @@ static void test_logical_disks(const char *const *rdax, bool exists) int fd = open(rdax [i], O_RDONLY); if (exists) { - const rtems_disk_device *dd = NULL; + rtems_disk_device *dd = NULL; int rv = 0; rtems_test_assert(fd >= 0); diff --git a/testsuites/libtests/block01/init.c b/testsuites/libtests/block01/init.c index 43d612e99d..03ff097b62 100644 --- a/testsuites/libtests/block01/init.c +++ b/testsuites/libtests/block01/init.c @@ -48,7 +48,7 @@ static void test_block_io_control_api(dev_t dev, ramdisk *rd) { rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_disk_device *dd = NULL; - const rtems_disk_device *fd_dd = NULL; + rtems_disk_device *fd_dd = NULL; int fd = -1; int rv = -1; uint32_t value = 0; diff --git a/testsuites/libtests/block02/init.c b/testsuites/libtests/block02/init.c index 7c6c5d6d39..ed68830602 100644 --- a/testsuites/libtests/block02/init.c +++ b/testsuites/libtests/block02/init.c @@ -52,9 +52,9 @@ static rtems_task Init(rtems_task_argument argument); #define BLOCK_COUNT_B 1 -static const rtems_disk_device *dd_a; +static rtems_disk_device *dd_a; -static const rtems_disk_device *dd_b; +static rtems_disk_device *dd_b; static volatile bool sync_done = false; diff --git a/testsuites/libtests/block03/init.c b/testsuites/libtests/block03/init.c index 1c4c993b10..2ad2b4909d 100644 --- a/testsuites/libtests/block03/init.c +++ b/testsuites/libtests/block03/init.c @@ -48,7 +48,7 @@ static rtems_task Init(rtems_task_argument argument); #define BLOCK_COUNT 2 -static const rtems_disk_device *dd; +static rtems_disk_device *dd; static volatile bool sync_done = false; diff --git a/testsuites/libtests/block04/init.c b/testsuites/libtests/block04/init.c index eed81fac17..1a93a3027b 100644 --- a/testsuites/libtests/block04/init.c +++ b/testsuites/libtests/block04/init.c @@ -48,7 +48,7 @@ static rtems_task Init(rtems_task_argument argument); #define BLOCK_COUNT 1 -static const rtems_disk_device *dd; +static rtems_disk_device *dd; static rtems_id task_id_low; diff --git a/testsuites/libtests/block05/init.c b/testsuites/libtests/block05/init.c index e68e53dcd9..3d221a98ab 100644 --- a/testsuites/libtests/block05/init.c +++ b/testsuites/libtests/block05/init.c @@ -60,9 +60,9 @@ static rtems_task Init(rtems_task_argument argument); /* In case of trouble change this to 1 or 2 for more output */ static unsigned output_level = 0; -static const rtems_disk_device *dd_a; +static rtems_disk_device *dd_a; -static const rtems_disk_device *dd_b; +static rtems_disk_device *dd_b; static rtems_id task_id_init; @@ -393,7 +393,7 @@ static int disk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) static void disk_register( uint32_t block_size, rtems_blkdev_bnum block_count, - const rtems_disk_device **dd_ptr + rtems_disk_device **dd_ptr ) { rtems_status_code sc = RTEMS_SUCCESSFUL; diff --git a/testsuites/libtests/block06/init.c b/testsuites/libtests/block06/init.c index 838f37119a..90097ead47 100644 --- a/testsuites/libtests/block06/init.c +++ b/testsuites/libtests/block06/init.c @@ -108,7 +108,7 @@ typedef struct bdbuf_task_control rtems_device_major_number major; rtems_device_minor_number minor; bool passed; - const rtems_disk_device *dd; + rtems_disk_device *dd; } bdbuf_task_control; #define BDBUF_TEST_TASKS (3) @@ -345,7 +345,7 @@ bdbuf_task_control_init (int task, bdbuf_task_control* tc, rtems_id master, rtems_device_major_number major, - const rtems_disk_device *dd) + rtems_disk_device *dd) { char name[6]; sprintf (name, "bdt%d", task); @@ -614,8 +614,8 @@ static rtems_driver_address_table bdbuf_disk_io_ops = { */ static bool -bdbuf_tests_setup_disk (rtems_device_major_number* major, - const rtems_disk_device **dd_ptr) +bdbuf_tests_setup_disk (rtems_device_major_number *major, + rtems_disk_device **dd_ptr) { rtems_status_code sc; bool ok; @@ -1765,7 +1765,7 @@ bdbuf_tester (void) rtems_task_priority old_priority; int t; bool passed = true; - const rtems_disk_device *dd; + rtems_disk_device *dd; /* * Change priority to a lower one. diff --git a/testsuites/libtests/block08/bdbuf_tests.c b/testsuites/libtests/block08/bdbuf_tests.c index ae4d73d524..e764d9b57d 100644 --- a/testsuites/libtests/block08/bdbuf_tests.c +++ b/testsuites/libtests/block08/bdbuf_tests.c @@ -47,7 +47,7 @@ struct bdbuf_test_descr { #define TEST_SEM_ATTRIBS RTEMS_DEFAULT_ATTRIBUTES /** Device ID used for testing */ -const rtems_disk_device *test_dd = NULL; +rtems_disk_device *test_dd = NULL; /** Test result variable */ bool good_test_result = true; diff --git a/testsuites/libtests/block08/bdbuf_tests.h b/testsuites/libtests/block08/bdbuf_tests.h index acc90999ab..21ee2a3fe3 100644 --- a/testsuites/libtests/block08/bdbuf_tests.h +++ b/testsuites/libtests/block08/bdbuf_tests.h @@ -150,7 +150,7 @@ typedef struct test_ctx { extern test_ctx g_test_ctx; /** Device ID used for testing */ -extern const rtems_disk_device *test_dd; +extern rtems_disk_device *test_dd; /** * Create a message queue for test driver that is used for diff --git a/testsuites/libtests/block09/init.c b/testsuites/libtests/block09/init.c index 36479fe32b..d29d6ac595 100644 --- a/testsuites/libtests/block09/init.c +++ b/testsuites/libtests/block09/init.c @@ -143,7 +143,7 @@ static rtems_status_code disk_register( } static void check_read( - const rtems_disk_device *dd, + rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_status_code expected_sc ) diff --git a/testsuites/libtests/block10/init.c b/testsuites/libtests/block10/init.c index 186d745283..37b757a4e6 100644 --- a/testsuites/libtests/block10/init.c +++ b/testsuites/libtests/block10/init.c @@ -55,7 +55,7 @@ typedef rtems_bdbuf_buffer *(*access_func)(char task); typedef void (*release_func)(char task, rtems_bdbuf_buffer *bd); -static const rtems_disk_device *dd; +static rtems_disk_device *dd; static rtems_id task_id_init; diff --git a/testsuites/libtests/block11/init.c b/testsuites/libtests/block11/init.c index 2458edc8de..095d8bdf2d 100644 --- a/testsuites/libtests/block11/init.c +++ b/testsuites/libtests/block11/init.c @@ -157,7 +157,7 @@ static void test_blkdev_imfs_parameters(void) int rv; ramdisk *rd; int fd; - const rtems_disk_device *dd; + rtems_disk_device *dd; struct stat st; rd = ramdisk_allocate(NULL, BLOCK_SIZE, BLOCK_COUNT, false); |