Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev



On Thu, Mar 01, 2018 at 05:04:01AM +0000, maya%netbsd.org@localhost wrote:
> Index: dev/acpi/acpi.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/acpi/acpi.c,v
> retrieving revision 1.265
> diff -u -r1.265 acpi.c
> --- dev/acpi/acpi.c	23 Nov 2017 15:48:24 -0000	1.265
> +++ dev/acpi/acpi.c	1 Mar 2018 04:57:44 -0000
> @@ -103,6 +103,7 @@
>  __KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.265 2017/11/23 15:48:24 jmcneill Exp $");
>  
>  #include "opt_acpi.h"
> +#include "opt_pci.h"
>  #include "opt_pcifixup.h"
>  
>  #include <sys/param.h>
> @@ -487,10 +488,12 @@
>  	 */
>  	acpi_build_tree(sc);
>  
> +#ifdef NPCI
>  	/*
>  	 * Probe MCFG table
>  	 */
>  	acpimcfg_probe(sc);
> +#endif
>  

You could also use a weak stub here and avoid the #ifdef/#endif.

Dave

-- 
David Young
dyoung%pobox.com@localhost    Urbana, IL    (217) 721-9981


Home | Main Index | Thread Index | Old Index