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 -+-

Reply via email to