[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/66] chips/busses.h: remove ifdef
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 03/66] chips/busses.h: remove ifdef |
Date: |
Sun, 8 Dec 2013 23:46:00 +0900 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Marin Ramesa, le Thu 05 Dec 2013 22:02:57 +0100, a écrit :
> This code is used even if KERNEL is not defined.
Where? KERNEL is always defined for the kernel build. It is not
defined only in userland, which doesn't have access to these arrays and
functions.
> Remove the ifdef.
>
> * chips/busses.h [KERNEL]: Remove ifdef.
>
> ---
> chips/busses.h | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/chips/busses.h b/chips/busses.h
> index 49c0e44..aebf04c 100644
> --- a/chips/busses.h
> +++ b/chips/busses.h
> @@ -140,7 +140,6 @@ struct bus_driver {
> int flags;
> };
>
> -#ifdef KERNEL
> extern struct bus_ctlr bus_master_init[];
> extern struct bus_device bus_device_init[];
>
> @@ -148,7 +147,5 @@ extern boolean_t configure_bus_master(char *,
> vm_offset_t, vm_offset_t,
> int, char * );
> extern boolean_t configure_bus_device(char *, vm_offset_t, vm_offset_t,
> int, char * );
> -#endif /* KERNEL */
> -
>
> #endif /* _CHIPS_BUSSES_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 01/66] kern/machine.c: remove __volatile__, Marin Ramesa, 2013/12/05
- [PATCH 04/66] ddb/db_command.c: remove forward declaration, Marin Ramesa, 2013/12/05
- [PATCH 05/66] ddb/db_command.h: remove duplicate variable declaration, Marin Ramesa, 2013/12/05
- [PATCH 07/66] ddb/db_output.c: remove duplicate function, Marin Ramesa, 2013/12/05
- [PATCH 06/66] ddb/db_output.c: remove call to nonexistent db_printf_enter(), Marin Ramesa, 2013/12/05
- [PATCH 08/66] ddb/db_output.h: add comment, Marin Ramesa, 2013/12/05
- [PATCH 09/66] device/blkio.c: remove function, Marin Ramesa, 2013/12/05
- [PATCH 10/66] device/chario.c: use boolean instead of an int, Marin Ramesa, 2013/12/05