From 8ab33477c2009b998c781111ba53d38f3c90e427 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 2 May 2015 14:05:52 +0200 Subject: Fix block_io_mmap prototype * device/blkio.c (block_io_mmap): Fix prototype of dummy function. * device/blkio.h (block_io_mmap): Likewise. --- device/blkio.c | 2 +- device/blkio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'device') diff --git a/device/blkio.c b/device/blkio.c index ee86634..e5b4d09 100644 --- a/device/blkio.c +++ b/device/blkio.c @@ -101,7 +101,7 @@ void minphys(io_req_t ior) * Dummy routine placed in device switch entries to indicate that * block device may be mapped. */ -vm_offset_t block_io_mmap(void) +int block_io_mmap(dev_t dev, vm_offset_t off, int prot) { return (0); } diff --git a/device/blkio.h b/device/blkio.h index 13a1669..77eb105 100644 --- a/device/blkio.h +++ b/device/blkio.h @@ -19,6 +19,6 @@ #ifndef _DEVICE_BLKIO_H_ #define _DEVICE_BLKIO_H_ -extern vm_offset_t block_io_mmap(void); +extern int block_io_mmap(dev_t dev, vm_offset_t off, int prot); #endif /* _DEVICE_BLKIO_H_ */ -- cgit v1.2.3