libblock: Add RTEMS_DEPRECATED

Close #3358.
This commit is contained in:
Sebastian Huber
2018-08-04 10:38:48 +02:00
parent b152d33ba5
commit 0b038bd48b
8 changed files with 62 additions and 156 deletions

View File

@@ -181,14 +181,19 @@ static int rtems_blkdev_imfs_fstat(
struct stat *buf
)
{
rtems_blkdev_imfs_context *ctx =
IMFS_generic_get_context_by_location(loc);
rtems_disk_device *dd = &ctx->dd;
rtems_blkdev_imfs_context *ctx;
rtems_disk_device *dd;
IMFS_jnode_t *node;
ctx = IMFS_generic_get_context_by_location(loc);
dd = &ctx->dd;
buf->st_rdev = rtems_disk_get_device_identifier(dd);
buf->st_blksize = rtems_disk_get_block_size(dd);
buf->st_blocks = rtems_disk_get_block_count(dd);
node = loc->node_access;
buf->st_rdev = IMFS_generic_get_device_identifier_by_node(node);
return IMFS_stat(loc, buf);
}

View File

@@ -22,6 +22,8 @@
#include <rtems/blkdev.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
const rtems_driver_address_table rtems_blkdev_generic_ops = {
.initialization_entry = NULL,
.open_entry = rtems_blkdev_generic_open,

View File

@@ -24,6 +24,8 @@
#include "rtems/diskdevs.h"
#include "rtems/bdbuf.h"
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
/* rtems_blkdev_generic_read --
* Generic block device read primitive. Implemented using block device
* buffer management primitives.

View File

@@ -28,6 +28,8 @@
#include <rtems/bdbuf.h>
#include <rtems/thread.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#define DISKTAB_INITIAL_SIZE 8
/* Table of disk devices having the same major number */