Module Name: src Committed By: tnn Date: Sun Feb 28 21:34:34 UTC 2021
Modified Files: src/sys/arch/alpha/alpha: sys_machdep.c Log Message: support building alpha kernel without PCI bus To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/alpha/alpha/sys_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/alpha/alpha/sys_machdep.c diff -u src/sys/arch/alpha/alpha/sys_machdep.c:1.21 src/sys/arch/alpha/alpha/sys_machdep.c:1.22 --- src/sys/arch/alpha/alpha/sys_machdep.c:1.21 Mon Feb 6 02:14:12 2012 +++ src/sys/arch/alpha/alpha/sys_machdep.c Sun Feb 28 21:34:34 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_machdep.c,v 1.21 2012/02/06 02:14:12 matt Exp $ */ +/* $NetBSD: sys_machdep.c,v 1.22 2021/02/28 21:34:34 tnn Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -58,7 +58,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.21 2012/02/06 02:14:12 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.22 2021/02/28 21:34:34 tnn Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -188,6 +188,7 @@ sys_sysarch(struct lwp *l, const struct break; } +#if NPCI > 0 case ALPHA_PCI_CONF_READWRITE: { struct alpha_pci_conf_readwrite_args args; @@ -222,6 +223,7 @@ sys_sysarch(struct lwp *l, const struct } break; } +#endif default: error = EINVAL;