Module Name: src Committed By: martin Date: Sat Feb 3 11:30:01 UTC 2018
Modified Files: src/sys/kern: subr_xcall.c Log Message: Try to fix the build: avoid duplicate case labels when IPL_SOFT* are all the same. To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/kern/subr_xcall.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/kern/subr_xcall.c diff -u src/sys/kern/subr_xcall.c:1.21 src/sys/kern/subr_xcall.c:1.22 --- src/sys/kern/subr_xcall.c:1.21 Thu Feb 1 03:15:29 2018 +++ src/sys/kern/subr_xcall.c Sat Feb 3 11:30:01 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_xcall.c,v 1.21 2018/02/01 03:15:29 ozaki-r Exp $ */ +/* $NetBSD: subr_xcall.c,v 1.22 2018/02/03 11:30:01 martin Exp $ */ /*- * Copyright (c) 2007-2010 The NetBSD Foundation, Inc. @@ -74,7 +74,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.21 2018/02/01 03:15:29 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_xcall.c,v 1.22 2018/02/03 11:30:01 martin Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -186,10 +186,14 @@ xc_encode_ipl(int ipl) return __SHIFTIN(XC_IPL_SOFTSERIAL, XC_IPL_MASK); case IPL_SOFTBIO: return __SHIFTIN(XC_IPL_SOFTBIO, XC_IPL_MASK); +#if IPL_SOFTCLOCK != IPL_SOFTBIO case IPL_SOFTCLOCK: return __SHIFTIN(XC_IPL_SOFTCLOCK, XC_IPL_MASK); +#endif +#if IPL_SOFTNET != IPL_SOFTBIO case IPL_SOFTNET: return __SHIFTIN(XC_IPL_SOFTNET, XC_IPL_MASK); +#endif } panic("Invalid IPL: %d", ipl);