[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 20/29] device/ds_routines.c: remove forward declaration
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 20/29] device/ds_routines.c: remove forward declaration |
Date: |
Tue, 10 Dec 2013 00:50:50 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Mon 09 Dec 2013 23:57:35 +0100, a écrit :
> * device/ds_routines.c (free_skbuffs): Remove forward declaration.
> * device/ds_routines.h [LINUX_DEV] [CONFIG_INET] (free_skbuffs): Add
> prototype.
Mmm, I'd rather keep this hack along the other linux_*_emulation_ops
hacks.
> ---
> device/ds_routines.c | 1 -
> device/ds_routines.h | 5 +++++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/device/ds_routines.c b/device/ds_routines.c
> index ee575e5..03c680f 100644
> --- a/device/ds_routines.c
> +++ b/device/ds_routines.c
> @@ -99,7 +99,6 @@
> extern struct device_emulation_ops linux_block_emulation_ops;
> #ifdef CONFIG_INET
> extern struct device_emulation_ops linux_net_emulation_ops;
> -extern void free_skbuffs ();
> #ifdef CONFIG_PCMCIA
> extern struct device_emulation_ops linux_pcmcia_emulation_ops;
> #endif /* CONFIG_PCMCIA */
> diff --git a/device/ds_routines.h b/device/ds_routines.h
> index 497b6ac..e815c5f 100644
> --- a/device/ds_routines.h
> +++ b/device/ds_routines.h
> @@ -83,4 +83,9 @@ io_return_t ds_device_writev_trap(
> io_buf_vec_t *iovec,
> vm_size_t count);
>
> +#ifdef LINUX_DEV
> +#ifdef CONFIG_INET
> +extern void free_skbuffs(void);
> +#endif /* CONFIG_INET */
> +#endif /* LINUX_DEV */
> #endif /* DS_ROUTINES_H */
> --
> 1.8.1.4
>
>
--
Samuel
Yep. Moi j'ai un clavier à une touche.
Par contre, ma souris a 102 boutons, c'est pas toujours pratique.
-+- OG in: Guide du Cabaliste Usenet - Le mulot contre attaque -+-
- [PATCH 12/29] device/cons.c: fix argument list, (continued)
- [PATCH 12/29] device/cons.c: fix argument list, Marin Ramesa, 2013/12/09
- [PATCH 13/29] device/dev_pager.c (device_pager_data_request): remove forward declaration, Marin Ramesa, 2013/12/09
- [PATCH 14/29] device/dev_pager.c (device_pager_data_request): cast to (void *) instead to (char *), Marin Ramesa, 2013/12/09
- [PATCH 15/29] device/dev_pager.c (device_pager_data_request_done): check if io_count is larger or equal to zero and cast it to vm_size_t, Marin Ramesa, 2013/12/09
- [PATCH 16/29] device/dev_pager.c (device_pager_data_request_done): check if io_residual is larger or equal to zero and cast it to size_t, Marin Ramesa, 2013/12/09
- [PATCH 17/29] device/dev_pager.c (device_pager_data_request_done): remove unnecessary cast, Marin Ramesa, 2013/12/09
- [PATCH 18/29] device/dev_pager.c: remove forward declaration, Marin Ramesa, 2013/12/09
- [PATCH 19/29] device/dev_pager.c: remove forward declarations, Marin Ramesa, 2013/12/09
- [PATCH 20/29] device/ds_routines.c: remove forward declaration, Marin Ramesa, 2013/12/09
- Re: [PATCH 20/29] device/ds_routines.c: remove forward declaration,
Samuel Thibault <=
- [PATCH 21/29] device/ds_routines.c (device_write_get): check if io_count is larger or equal to zero and cast it to size_t, Marin Ramesa, 2013/12/09
- [PATCH 22/29] device/kmsg.c (kmsgread): check if io_count is larger or equal to zero and cast it to vm_size_t, Marin Ramesa, 2013/12/09
- [PATCH 23/29] device/kmsg.c (kmsgread, kmsg_read_done): cast arguments to memcpy(), Marin Ramesa, 2013/12/09
- [PATCH 24/29] device/kmsg.c (kmsg_read_done): check if amt is negative, Marin Ramesa, 2013/12/09
- [PATCH 25/29] device/net_io.c: remove forward declarations, Marin Ramesa, 2013/12/09
- [PATCH 26/29] device/net_io.c (net_getstat): check if addr_byte_count is negative, Marin Ramesa, 2013/12/09
- [PATCH 27/29] device/net_io.c (net_getstat): cast arguments to memcpy(), Marin Ramesa, 2013/12/09