diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-08 23:11:35 +0900 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-08 23:11:35 +0900 |
commit | be841794c557bbddea42164dbd3bb54b7506e7c5 (patch) | |
tree | fca6002e5251f9823bbb0f6fd87502fd9e9aa860 | |
parent | 6fbdbc6d7fe591592d32328a0066d3908143d6d4 (diff) |
Fix implicit declaration of function
Thanks Marin Ramesa for the report.
* device/ds_routines.h (device_deallocate): Move declaration to...
* include/device/device_types.h (device_deallocate): ... here.
-rw-r--r-- | device/ds_routines.h | 1 | ||||
-rw-r--r-- | include/device/device_types.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/device/ds_routines.h b/device/ds_routines.h index fad89ac..497b6ac 100644 --- a/device/ds_routines.h +++ b/device/ds_routines.h @@ -49,7 +49,6 @@ kern_return_t device_read_alloc(io_req_t, vm_size_t); kern_return_t device_write_get(io_req_t, boolean_t *); boolean_t device_write_dealloc(io_req_t); void device_reference(device_t); -void device_deallocate(device_t); boolean_t ds_notify(mach_msg_header_t *msg); boolean_t ds_open_done(io_req_t); diff --git a/include/device/device_types.h b/include/device/device_types.h index caf4fc0..a6db051 100644 --- a/include/device/device_types.h +++ b/include/device/device_types.h @@ -135,4 +135,6 @@ typedef int io_return_t; #define D_NO_MEMORY 2508 /* memory allocation failure */ #define D_READ_ONLY 2509 /* device cannot be written to */ +void device_deallocate(device_t); + #endif /* DEVICE_TYPES_H */ |