summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-02 14:05:52 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-05-02 14:05:52 +0200
commit8ab33477c2009b998c781111ba53d38f3c90e427 (patch)
tree1d7dd39294c660b34e9392131ed46c31a4092f79
parent7e0774107ef80938fdc9ab6e5d4808bcfdaf8ce9 (diff)
Fix block_io_mmap prototype
* device/blkio.c (block_io_mmap): Fix prototype of dummy function. * device/blkio.h (block_io_mmap): Likewise.
-rw-r--r--device/blkio.c2
-rw-r--r--device/blkio.h2
2 files changed, 2 insertions, 2 deletions
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_ */