[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/6] libmachdev: add, fix and use declaration for create_devi
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 6/6] libmachdev: add, fix and use declaration for create_device_port |
Date: |
Mon, 14 Apr 2014 01:40:34 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Sun 13 Apr 2014 13:43:14 +0200, a écrit :
> * libmachdev/ds_routines.c (create_device_port): Fix the type of the
> size parameter. Make it return error_t.
> * libmachdev/ds_routines.h (create_device_port): Add declaration.
> * libmachdev/net.c: Include ds_routines.h.
> * libmachdev/block.c: Include ds_routines.h.
Ack.
> ---
> libmachdev/block.c | 1 +
> libmachdev/ds_routines.c | 3 ++-
> libmachdev/ds_routines.h | 2 ++
> libmachdev/net.c | 1 +
> 4 files changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/libmachdev/block.c b/libmachdev/block.c
> index 756a07b..cd868d2 100644
> --- a/libmachdev/block.c
> +++ b/libmachdev/block.c
> @@ -35,6 +35,7 @@
>
> #include <ddekit/printf.h>
>
> +#include "ds_routines.h"
> #include "vm_param.h"
> #include "device_reply_U.h"
> #include "dev_hdr.h"
> diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c
> index 1da1393..6bd5a12 100644
> --- a/libmachdev/ds_routines.c
> +++ b/libmachdev/ds_routines.c
> @@ -331,7 +331,8 @@ ds_device_map (struct mach_device *device, vm_prot_t
> prot, vm_offset_t offset,
> return D_INVALID_OPERATION;
> }
>
> -int create_device_port (int size, void *result)
> +error_t
> +create_device_port (size_t size, void *result)
> {
> return ports_create_port (dev_class, device_bucket,
> size, result);
> diff --git a/libmachdev/ds_routines.h b/libmachdev/ds_routines.h
> index e314e80..3706aa5 100644
> --- a/libmachdev/ds_routines.h
> +++ b/libmachdev/ds_routines.h
> @@ -52,4 +52,6 @@ boolean_t ds_write_done(io_req_t);
>
> void iowait (io_req_t ior);
>
> +error_t create_device_port (size_t size, void *result);
> +
> #endif /* DS_ROUTINES_H */
> diff --git a/libmachdev/net.c b/libmachdev/net.c
> index 6037e2f..07bb74a 100644
> --- a/libmachdev/net.c
> +++ b/libmachdev/net.c
> @@ -70,6 +70,7 @@
>
> #define MACH_INCLUDE
>
> +#include "ds_routines.h"
> #include "vm_param.h"
> #include "device_reply_U.h"
> #include "dev_hdr.h"
> --
> 1.9.1
>
--
Samuel
Cliquez sur le lien qui suit dans ce mail...vous n'avez plus qu'a vous
inscrire pour gagner de l'argent en restant connecte....et puis faites
passer le message et vous gagnerez encore plus d'argent ...
-+- AC in NPC : Neuneu a rencontré le Pere Noël -+-
- more dde fixes, Justus Winter, 2014/04/13
- [PATCH 1/6] libmachdev: fix device_open, Justus Winter, 2014/04/13
- [PATCH 2/6] libmachdev: remove mach_device_deallocate, Justus Winter, 2014/04/13
- [PATCH 3/6] libmachdev: make the two port buckets clearly distinct, Justus Winter, 2014/04/13
- [PATCH 4/6] libmachdev: drop unused declarations, Justus Winter, 2014/04/13
- [PATCH 6/6] libmachdev: add, fix and use declaration for create_device_port, Justus Winter, 2014/04/13
- Re: [PATCH 6/6] libmachdev: add, fix and use declaration for create_device_port,
Samuel Thibault <=
- [PATCH 5/6] libmachdev: add missing includes, Justus Winter, 2014/04/13