CVS commit: src/doc
Module Name:src Committed By: martin Date: Fri Mar 7 08:28:14 UTC 2014 Modified Files: src/doc: CHANGES Log Message: Note alpha switched to gcc 4.8 (fix date for previous) To generate a diff of this commit: cvs rdiff -u -r1.1899 -r1.1900 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.1899 src/doc/CHANGES:1.1900 --- src/doc/CHANGES:1.1899 Thu Mar 6 11:31:45 2014 +++ src/doc/CHANGES Fri Mar 7 08:28:13 2014 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1899 $ +# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1900 $ # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -365,6 +365,7 @@ Changes from NetBSD 6.0 to NetBSD 7.0: [tsutsui 20140301] macppc: add support for ppc601-based machines from scole_mail via PR48600 [macallan 20140303] - hppa: Switched to GCC 4.8. [skrll 20140305] - sparc: Switched to GCC 4.8. [mrg 20140305] - sparc64: Switched to GCC 4.8. [mrg 20140305] + hppa: Switched to GCC 4.8. [skrll 20140306] + sparc: Switched to GCC 4.8. [mrg 20140306] + sparc64: Switched to GCC 4.8. [mrg 20140306] + alpha: Switched to GCC 4.8. [martin 20140307]
CVS commit: src/share/mk
Module Name:src Committed By: martin Date: Fri Mar 7 08:31:05 UTC 2014 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch alpha over to gcc 4.8 To generate a diff of this commit: cvs rdiff -u -r1.779 -r1.780 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.779 src/share/mk/bsd.own.mk:1.780 --- src/share/mk/bsd.own.mk:1.779 Fri Mar 7 06:01:34 2014 +++ src/share/mk/bsd.own.mk Fri Mar 7 08:31:05 2014 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.779 2014/03/07 06:01:34 matt Exp $ +# $NetBSD: bsd.own.mk,v 1.780 2014/03/07 08:31:05 martin Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -58,7 +58,8 @@ TOOLCHAIN_MISSING?= no HAVE_GCC?=4 # Platforms switched to GCC 4.8 -.elif ${MACHINE_CPU} == hppa || \ +.elif ${MACHINE_CPU} == alpha || \ + ${MACHINE_CPU} == hppa || \ ${MACHINE_CPU} == sparc || \ ${MACHINE_CPU} == sparc64 HAVE_GCC?=48
CVS commit: src/sys/compat/svr4
Module Name:src Committed By: martin Date: Fri Mar 7 08:40:59 UTC 2014 Modified Files: src/sys/compat/svr4: svr4_mod.c Log Message: Fix typo To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/compat/svr4/svr4_mod.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/compat/svr4/svr4_mod.c diff -u src/sys/compat/svr4/svr4_mod.c:1.3 src/sys/compat/svr4/svr4_mod.c:1.4 --- src/sys/compat/svr4/svr4_mod.c:1.3 Fri Mar 7 01:33:44 2014 +++ src/sys/compat/svr4/svr4_mod.c Fri Mar 7 08:40:59 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: svr4_mod.c,v 1.3 2014/03/07 01:33:44 christos Exp $ */ +/* $NetBSD: svr4_mod.c,v 1.4 2014/03/07 08:40:59 martin Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: svr4_mod.c,v 1.3 2014/03/07 01:33:44 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: svr4_mod.c,v 1.4 2014/03/07 08:40:59 martin Exp $); #ifndef ELFSIZE #define ELFSIZE ARCH_ELFSIZE @@ -72,7 +72,7 @@ static struct execsw svr4_execsw[] = { }, .es_emul = emul_svr4, .es_prio = EXECSW_PRIO_LAST, - .es_argslen = ELF32_AUXSIZE, + .es_arglen = ELF32_AUXSIZE, .es_copyargs = elf32_copyargs, .es_setregs = NULL, .es_coredump = coredump_elf32,
CVS commit: src/common/lib/libc/atomic
Module Name:src Committed By: martin Date: Fri Mar 7 08:42:58 UTC 2014 Modified Files: src/common/lib/libc/atomic: atomic_cas_by_cas32.c Log Message: Fix return value (typo, noticed by Nick Hudson) To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/common/lib/libc/atomic/atomic_cas_by_cas32.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/common/lib/libc/atomic/atomic_cas_by_cas32.c diff -u src/common/lib/libc/atomic/atomic_cas_by_cas32.c:1.1 src/common/lib/libc/atomic/atomic_cas_by_cas32.c:1.2 --- src/common/lib/libc/atomic/atomic_cas_by_cas32.c:1.1 Mon Feb 24 16:15:43 2014 +++ src/common/lib/libc/atomic/atomic_cas_by_cas32.c Fri Mar 7 08:42:58 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: atomic_cas_by_cas32.c,v 1.1 2014/02/24 16:15:43 martin Exp $ */ +/* $NetBSD: atomic_cas_by_cas32.c,v 1.2 2014/03/07 08:42:58 martin Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. @@ -55,7 +55,7 @@ _atomic_cas_16(volatile uint16_t *addr, new32 = (old32 ~mask) | (uint32_t)new shift; old32 = (old32 ~mask) | (uint32_t)old shift; } while (_atomic_cas_32(ptr, old32, new32) != old32); - return (old shift) mask; + return (old mask) shift; } uint8_t @@ -73,5 +73,5 @@ _atomic_cas_8(volatile uint8_t *addr, ui new32 = (old32 ~mask) | (uint32_t)new shift; old32 = (old32 ~mask) | (uint32_t)old shift; } while (_atomic_cas_32(ptr, old32, new32) != old32); - return (old shift) mask; + return (old mask) shift; }
CVS commit: src
Module Name:src Committed By: hkenken Date: Fri Mar 7 12:35:14 UTC 2014 Modified Files: src/etc/etc.evbarm: Makefile.inc src/sys/arch/evbarm/conf: NETWALKER mk.netwalker std.netwalker Log Message: modified NetWalker kernel config * add ARM_HAS_VBAR, FPU_VFP etc. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.61 src/etc/etc.evbarm/Makefile.inc cvs rdiff -u -r1.22 -r1.23 src/sys/arch/evbarm/conf/NETWALKER cvs rdiff -u -r1.2 -r1.3 src/sys/arch/evbarm/conf/mk.netwalker cvs rdiff -u -r1.7 -r1.8 src/sys/arch/evbarm/conf/std.netwalker Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/etc/etc.evbarm/Makefile.inc diff -u src/etc/etc.evbarm/Makefile.inc:1.60 src/etc/etc.evbarm/Makefile.inc:1.61 --- src/etc/etc.evbarm/Makefile.inc:1.60 Sat Mar 1 01:51:01 2014 +++ src/etc/etc.evbarm/Makefile.inc Fri Mar 7 12:35:14 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.60 2014/03/01 01:51:01 matt Exp $ +# $NetBSD: Makefile.inc,v 1.61 2014/03/07 12:35:14 hkenken Exp $ # # etc.evbarm/Makefile.inc -- evbarm-specific etc Makefile targets # @@ -77,7 +77,8 @@ EVBARM_BOARDS.armv7+= CUBIEBOARD EVBARM_BOARDS.armv7hf+= CUBIEBOARD #EVBARM_BOARDS.armv7+= IGEPV2 #EVBARM_BOARDS.armv7+= N900 -#EVBARM_BOARDS.armv7+= NETWALKER +EVBARM_BOARDS.armv7+= NETWALKER +EVBARM_BOARDS.armv7hf+= NETWALKER #EVBARM_BOARDS.armv7+= OVERO #EVBARM_BOARDS.armv7+= PANDABOARD #EVBARM_BOARDS.armv7hf+= PANDABOARD Index: src/sys/arch/evbarm/conf/NETWALKER diff -u src/sys/arch/evbarm/conf/NETWALKER:1.22 src/sys/arch/evbarm/conf/NETWALKER:1.23 --- src/sys/arch/evbarm/conf/NETWALKER:1.22 Thu Jan 23 12:23:20 2014 +++ src/sys/arch/evbarm/conf/NETWALKER Fri Mar 7 12:35:14 2014 @@ -1,4 +1,4 @@ -# $NetBSD: NETWALKER,v 1.22 2014/01/23 12:23:20 hkenken Exp $ +# $NetBSD: NETWALKER,v 1.23 2014/03/07 12:35:14 hkenken Exp $ # # NETWALKER -- http://www.sharp.co.jp/netwalker/ # @@ -23,8 +23,6 @@ options PMAPCOUNTERS # Architecture options -optionsIMX51_IPGCLK_FREQ=5000 # XXX This value is not correct. - # File systems file-system FFS # UFS @@ -77,8 +75,8 @@ options INET6 # IPV6 #options COMPAT_43 # 4.3BSD compatibility. options COMPAT_60 # NetBSD 6.0 compatibility. -options COMPAT_50 # NetBSD 5.0 compatibility. -options COMPAT_40 # NetBSD 4.0 compatibility. +#options COMPAT_50 # NetBSD 5.0 compatibility. +#options COMPAT_40 # NetBSD 4.0 compatibility. #options COMPAT_30 # NetBSD 3.0 compatibility. #options COMPAT_20 # NetBSD 2.0 compatibility. #options COMPAT_16 # NetBSD 1.6 compatibility. @@ -140,7 +138,7 @@ options DDB_VERBOSE_HELP #options LOCKDEBUG #options PMAP_DEBUG # Enable pmap_debug_level code #options IPKDB # remote kernel debugging -options VERBOSE_INIT_ARM # verbose bootstraping messages +#options VERBOSE_INIT_ARM # verbose bootstraping messages makeoptions DEBUG=-g # compile full symbol table #makeoptions COPTS=-O2 #options SYSCALL_STATS # per syscall counts @@ -207,50 +205,11 @@ ehci1 at imxusbc0 unit 1 irq 14 # Host #ehci3 at imxusbc0 unit 3 irq 17 # Host3 usb* at ehci? -uhub* at usb? -uhub* at uhub? port ? -ugen* at uhub? port ? - -# USB HID device -uhidev* at uhub? port ? configuration ? interface ? - -# USB Mice -ums* at uhidev? reportid ? -wsmouse* at ums? mux 0 - -# USB Keyboards -ukbd* at uhidev? reportid ? -wskbd* at ukbd? console ? mux 1 - -# USB Mass Storage -umass* at uhub? port ? configuration ? interface ? -wd* at umass? - -# Serial adapters -ubsa* at uhub? port ? # Belkin serial adapter -ucom* at ubsa? portno ? - -uchcom* at uhub? port ? # WinChipHead CH341/CH340 serial adapter -ucom* at uchcom? portno ? -uftdi* at uhub? port ? # FTDI FT8U100AX serial adapter -ucom* at uftdi? portno ? +# USB device drivers +include dev/usb/usbdevices.config -umct* at uhub? port ? # MCT USB-RS232 serial adapter -ucom* at umct? portno ? - -uplcom* at uhub? port ? # I/O DATA USB-RSAQ2 serial adapter -ucom* at uplcom? portno ? - -uslsa* at uhub? port ? # Silicon Labs USB-RS232 serial adapter -ucom* at uslsa? portno ? - -uvscom* at uhub? port ? # SUNTAC Slipper U VS-10U serial adapter -ucom* at uvscom? portno ? - -# USB generic serial port (e.g., data over cellular) -ugensa* at uhub? port ? -ucom* at ugensa? +ukphy* at mii? phy ? # IPUv3 LCD Controller ipu0 at axi? @@ -272,12 +231,6 @@ options WSDISPLAY_COMPAT_USL # wsconsc options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes options WSDISPLAY_DEFAULTSCREENS=4 -# SCSI bus support -scsibus* at scsi? - -# SCSI devices -sd* at scsibus? target ? lun ? # SCSI disk drives - # Pseudo-Devices pseudo-device crypto # /dev/crypto device @@ -290,10 +243,10 @@ pseudo-device swcrypto # software crypt #pseudo-device putter # for puffs and pud # network pseudo-devices -#pseudo-device bpfilter # Berkeley packet filter +pseudo-device bpfilter # Berkeley packet filter
CVS commit: src/tests/lib/libm
Module Name:src Committed By: martin Date: Fri Mar 7 12:46:48 UTC 2014 Modified Files: src/tests/lib/libm: t_atan.c t_libm.h Log Message: Vax does not do +/- INF. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/tests/lib/libm/t_atan.c cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libm/t_libm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/t_atan.c diff -u src/tests/lib/libm/t_atan.c:1.12 src/tests/lib/libm/t_atan.c:1.13 --- src/tests/lib/libm/t_atan.c:1.12 Wed Mar 5 20:15:41 2014 +++ src/tests/lib/libm/t_atan.c Fri Mar 7 12:46:47 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: t_atan.c,v 1.12 2014/03/05 20:15:41 dsl Exp $ */ +/* $NetBSD: t_atan.c,v 1.13 2014/03/07 12:46:47 martin Exp $ */ /*- * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -37,8 +37,11 @@ static const struct { double x; double y; } values[] = { +#ifndef __vax__ + /* vax has no +/- INF */ { T_LIBM_MINUS_INF, -M_PI / 2 }, { T_LIBM_PLUS_INF, M_PI / 2 }, +#endif { -100, -1.560796660108231, }, { -10, -1.471127674303735, }, { -1, -M_PI / 4, }, Index: src/tests/lib/libm/t_libm.h diff -u src/tests/lib/libm/t_libm.h:1.2 src/tests/lib/libm/t_libm.h:1.3 --- src/tests/lib/libm/t_libm.h:1.2 Wed Mar 5 20:14:46 2014 +++ src/tests/lib/libm/t_libm.h Fri Mar 7 12:46:47 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: t_libm.h,v 1.2 2014/03/05 20:14:46 dsl Exp $ */ +/* $NetBSD: t_libm.h,v 1.3 2014/03/07 12:46:47 martin Exp $ */ /* * Check result of fn(arg) is correct within the bounds. @@ -43,9 +43,11 @@ } while (0) /* Some useful constants (for test vectors) */ +#ifndef __vax__ /* no NAN nor +/- INF on vax */ #define T_LIBM_NAN (0.0 / 0.0) #define T_LIBM_PLUS_INF (+1.0 / 0.0) #define T_LIBM_MINUS_INF (-1.0 / 0.0) +#endif /* One line definition of a simple test */ #define ATF_LIBM_TEST(name, description) \
CVS commit: src/sys/dev/ic
Module Name:src Committed By: skrll Date: Fri Mar 7 13:19:26 UTC 2014 Modified Files: src/sys/dev/ic: icpsp.c Log Message: Fix non-DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ic/icpsp.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/dev/ic/icpsp.c diff -u src/sys/dev/ic/icpsp.c:1.25 src/sys/dev/ic/icpsp.c:1.26 --- src/sys/dev/ic/icpsp.c:1.25 Sat Oct 27 17:18:20 2012 +++ src/sys/dev/ic/icpsp.c Fri Mar 7 13:19:26 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: icpsp.c,v 1.25 2012/10/27 17:18:20 chs Exp $ */ +/* $NetBSD: icpsp.c,v 1.26 2014/03/07 13:19:26 skrll Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: icpsp.c,v 1.25 2012/10/27 17:18:20 chs Exp $); +__KERNEL_RCSID(0, $NetBSD: icpsp.c,v 1.26 2014/03/07 13:19:26 skrll Exp $); #include sys/param.h #include sys/systm.h @@ -271,11 +271,12 @@ void icpsp_intr(struct icp_ccb *ic) { struct scsipi_xfer *xs; - struct icpsp_softc *sc; struct icp_softc *icp; int soff; - sc = device_private(ic-ic_dv); +#ifdef DIAGNOSTIC + struct icpsp_softc *sc = device_private(ic-ic_dv); +#endif xs = ic-ic_context; icp = device_private(device_parent(ic-ic_dv)); soff = ICP_SCRATCH_SENSE + ic-ic_ident *
CVS commit: [riastradh-drm2] src/sys/external/bsd/drm2/include/linux
Module Name:src Committed By: riastradh Date: Fri Mar 7 15:39:18 UTC 2014 Modified Files: src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: completion.h Log Message: Fix return value of wait_for_completion_interruptible_timeout. To generate a diff of this commit: cvs rdiff -u -r1.1.2.5 -r1.1.2.6 \ src/sys/external/bsd/drm2/include/linux/completion.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/drm2/include/linux/completion.h diff -u src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.5 src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.6 --- src/sys/external/bsd/drm2/include/linux/completion.h:1.1.2.5 Sun Sep 8 16:01:49 2013 +++ src/sys/external/bsd/drm2/include/linux/completion.h Fri Mar 7 15:39:18 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: completion.h,v 1.1.2.5 2013/09/08 16:01:49 riastradh Exp $ */ +/* $NetBSD: completion.h,v 1.1.2.6 2014/03/07 15:39:18 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -38,6 +38,8 @@ #include machine/limits.h +#include linux/errno.h + struct completion { kmutex_t c_lock; kcondvar_t c_cv; @@ -152,17 +154,25 @@ static inline int wait_for_completion_interruptible_timeout(struct completion *completion, unsigned long ticks) { + /* XXX Arithmetic overflow...? */ + unsigned int start = hardclock_ticks, now; int error; mutex_enter(completion-c_lock); /* Wait until c_done is nonzero. */ while (completion-c_done == 0) { - /* XXX errno NetBSD-Linux */ - error = -cv_timedwait_sig(completion-c_cv, + error = cv_timedwait_sig(completion-c_cv, completion-c_lock, ticks); if (error) goto out; + now = hardclock_ticks; + if (ticks (now - start)) { + error = EWOULDBLOCK; + goto out; + } + ticks -= (now - start); + start = now; } /* Claim a completion if it's not open season. */ @@ -175,7 +185,14 @@ wait_for_completion_interruptible_timeou error = 0; out: mutex_exit(completion-c_lock); - return error; + if (error == EWOULDBLOCK) { + return 0; + } else if ((error == EINTR) || (error == ERESTART)) { + return -ERESTARTSYS; + } else { + KASSERTMSG((error == 0), error = %d, error); + return ticks; + } } #endif /* _LINUX_COMPLETION_H_ */
CVS commit: [riastradh-drm2] src/sys/external/bsd/drm2/drm
Module Name:src Committed By: riastradh Date: Fri Mar 7 15:39:08 UTC 2014 Modified Files: src/sys/external/bsd/drm2/drm [riastradh-drm2]: drm_drv.c Log Message: Make gem mmappings shared, not copy-on-write, like Linux. To generate a diff of this commit: cvs rdiff -u -r1.1.2.37 -r1.1.2.38 src/sys/external/bsd/drm2/drm/drm_drv.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/external/bsd/drm2/drm/drm_drv.c diff -u src/sys/external/bsd/drm2/drm/drm_drv.c:1.1.2.37 src/sys/external/bsd/drm2/drm/drm_drv.c:1.1.2.38 --- src/sys/external/bsd/drm2/drm/drm_drv.c:1.1.2.37 Wed Mar 5 14:42:27 2014 +++ src/sys/external/bsd/drm2/drm/drm_drv.c Fri Mar 7 15:39:08 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: drm_drv.c,v 1.1.2.37 2014/03/05 14:42:27 riastradh Exp $ */ +/* $NetBSD: drm_drv.c,v 1.1.2.38 2014/03/07 15:39:08 riastradh Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: drm_drv.c,v 1.1.2.37 2014/03/05 14:42:27 riastradh Exp $); +__KERNEL_RCSID(0, $NetBSD: drm_drv.c,v 1.1.2.38 2014/03/07 15:39:08 riastradh Exp $); #include sys/param.h #include sys/types.h @@ -1008,7 +1008,7 @@ map: vm_prot = ((ISSET(prot, PROT_READ)? (ISSET(prot, PROT_WRITE)? VM_PROT_WRITE : 0)); KASSERT(vm_prot == (vm_prot vm_maxprot)); uvmflag = UVM_MAPFLAG(vm_prot, vm_maxprot, UVM_INH_COPY, - UVM_ADV_RANDOM, UVM_FLAG_COPYONW); + UVM_ADV_RANDOM, 0); align = 0; /* XXX */ vaddr = (*curproc-p_emul-e_vm_default_addr)(curproc,
CVS commit: src/share/mk
Module Name:src Committed By: skrll Date: Fri Mar 7 16:22:24 UTC 2014 Modified Files: src/share/mk: bsd.own.mk Log Message: Switch arm to gcc 4.8 OK matt@ To generate a diff of this commit: cvs rdiff -u -r1.780 -r1.781 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.780 src/share/mk/bsd.own.mk:1.781 --- src/share/mk/bsd.own.mk:1.780 Fri Mar 7 08:31:05 2014 +++ src/share/mk/bsd.own.mk Fri Mar 7 16:22:24 2014 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.own.mk,v 1.780 2014/03/07 08:31:05 martin Exp $ +# $NetBSD: bsd.own.mk,v 1.781 2014/03/07 16:22:24 skrll Exp $ # This needs to be before bsd.init.mk .if defined(BSD_MK_COMPAT_FILE) @@ -58,7 +58,9 @@ TOOLCHAIN_MISSING?= no HAVE_GCC?=4 # Platforms switched to GCC 4.8 -.elif ${MACHINE_CPU} == alpha || \ +.elif \ + ${MACHINE_CPU} == alpha || \ + ${MACHINE_CPU} == arm || \ ${MACHINE_CPU} == hppa || \ ${MACHINE_CPU} == sparc || \ ${MACHINE_CPU} == sparc64
CVS commit: src/doc
Module Name:src Committed By: skrll Date: Fri Mar 7 16:23:42 UTC 2014 Modified Files: src/doc: CHANGES Log Message: Note arm switch to gcc 4.8 To generate a diff of this commit: cvs rdiff -u -r1.1900 -r1.1901 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.1900 src/doc/CHANGES:1.1901 --- src/doc/CHANGES:1.1900 Fri Mar 7 08:28:13 2014 +++ src/doc/CHANGES Fri Mar 7 16:23:42 2014 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1900 $ +# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1901 $ # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -369,3 +369,4 @@ Changes from NetBSD 6.0 to NetBSD 7.0: sparc: Switched to GCC 4.8. [mrg 20140306] sparc64: Switched to GCC 4.8. [mrg 20140306] alpha: Switched to GCC 4.8. [martin 20140307] + arm: Switched to GCC 4.8. [skrll 20140307]
CVS commit: src/sys/kern
Module Name:src Committed By: matt Date: Fri Mar 7 16:36:32 UTC 2014 Modified Files: src/sys/kern: subr_lockdebug.c Log Message: Tell where the corrruption was encountered in the panic message. To generate a diff of this commit: cvs rdiff -u -r1.50 -r1.51 src/sys/kern/subr_lockdebug.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_lockdebug.c diff -u src/sys/kern/subr_lockdebug.c:1.50 src/sys/kern/subr_lockdebug.c:1.51 --- src/sys/kern/subr_lockdebug.c:1.50 Sat Oct 12 16:42:27 2013 +++ src/sys/kern/subr_lockdebug.c Fri Mar 7 16:36:32 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_lockdebug.c,v 1.50 2013/10/12 16:42:27 christos Exp $ */ +/* $NetBSD: subr_lockdebug.c,v 1.51 2014/03/07 16:36:32 matt Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: subr_lockdebug.c,v 1.50 2013/10/12 16:42:27 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: subr_lockdebug.c,v 1.51 2014/03/07 16:36:32 matt Exp $); #include opt_ddb.h @@ -284,7 +284,7 @@ lockdebug_alloc(volatile void *lock, loc ci-ci_lkdebug_recurse--; if (ld-ld_lock != NULL) { - panic(lockdebug_alloc: corrupt table); + panic(lockdebug_alloc: corrupt table ld %p, ld); } /* Initialise the structure. */
CVS commit: src/sys/arch/arm/allwinner
Module Name:src Committed By: matt Date: Fri Mar 7 16:38:28 UTC 2014 Modified Files: src/sys/arch/arm/allwinner: awin_board.c Log Message: Adjust the VERBOSE_ARM_INIT printfs to always the status of both cpus and the number of cpus, regardless of MULTIPROCESSOR. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/allwinner/awin_board.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/arm/allwinner/awin_board.c diff -u src/sys/arch/arm/allwinner/awin_board.c:1.10 src/sys/arch/arm/allwinner/awin_board.c:1.11 --- src/sys/arch/arm/allwinner/awin_board.c:1.10 Wed Feb 26 00:30:56 2014 +++ src/sys/arch/arm/allwinner/awin_board.c Fri Mar 7 16:38:28 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: awin_board.c,v 1.10 2014/02/26 00:30:56 matt Exp $ */ +/* $NetBSD: awin_board.c,v 1.11 2014/03/07 16:38:28 matt Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. * All rights reserved. @@ -34,7 +34,7 @@ #include sys/cdefs.h -__KERNEL_RCSID(1, $NetBSD: awin_board.c,v 1.10 2014/02/26 00:30:56 matt Exp $); +__KERNEL_RCSID(1, $NetBSD: awin_board.c,v 1.11 2014/03/07 16:38:28 matt Exp $); #include sys/param.h #include sys/bus.h @@ -183,7 +183,6 @@ awin_bootstrap(vaddr_t iobase, vaddr_t u printf(\n); #endif -#ifdef MULTIPROCESSOR #ifdef VERBOSE_INIT_ARM uint32_t s0 = bus_space_read_4(awin_bs_tag, awin_core_bsh, AWIN_CPUCFG_OFFSET + AWIN_CPUCFG_CPU0_STATUS_REG); @@ -191,11 +190,16 @@ awin_bootstrap(vaddr_t iobase, vaddr_t u AWIN_CPUCFG_OFFSET + AWIN_CPUCFG_CPU1_STATUS_REG); printf(%s: cpu status: 0=%#x 1=%#x\n, __func__, s0, s1); #endif + +#if !defined(MULTIPROCESSOR) defined(VERBOSE_ARM_INIT) + u_int arm_cpu_max; +#endif +#if defined(MULTIPROCESSOR) || defined(VERBOSE_ARM_INIT) arm_cpu_max = 1 + __SHIFTOUT(armreg_l2ctrl_read(), L2CTRL_NUMCPU); +#endif #ifdef VERBOSE_INIT_ARM printf(%s: %d cpus present\n, __func__, arm_cpu_max); #endif -#endif } void
CVS commit: src/external/public-domain/sqlite/lib
Module Name:src Committed By: christos Date: Fri Mar 7 18:37:48 UTC 2014 Modified Files: src/external/public-domain/sqlite/lib: Makefile Log Message: change CC to HOST_CC to avoid trying to find stdarg.h in an unpopulated DSTDIR. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/external/public-domain/sqlite/lib/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/public-domain/sqlite/lib/Makefile diff -u src/external/public-domain/sqlite/lib/Makefile:1.5 src/external/public-domain/sqlite/lib/Makefile:1.6 --- src/external/public-domain/sqlite/lib/Makefile:1.5 Wed Feb 19 14:29:33 2014 +++ src/external/public-domain/sqlite/lib/Makefile Fri Mar 7 13:37:48 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2014/02/19 19:29:33 dsl Exp $ +# $NetBSD: Makefile,v 1.6 2014/03/07 18:37:48 christos Exp $ LIB= sqlite3 INCS= sqlite3.h sqlite3ext.h @@ -23,6 +23,6 @@ dependall: all sqlite3.pc: ${SRCDIR}/sqlite3.h sqlite3.pc.in @(V=$$( (echo '#include sqlite3.h'; echo SQLITE_VERSION) | \ - ${CC} -E -I${SRCDIR} - | tail -1 | tr -d '') \ + ${HOST_CC} -E -I${SRCDIR} - | tail -1 | tr -d '') \ ${TOOL_SED} -e s/@VERSION@/$$V/ ${.CURDIR}/sqlite3.pc.in \ ${.TARGET})
CVS commit: src/sys/lib/libkern/arch
Module Name:src Committed By: nakayama Date: Fri Mar 7 20:23:09 UTC 2014 Modified Files: src/sys/lib/libkern/arch/sparc: random.S src/sys/lib/libkern/arch/sparc64: random.S Log Message: Align explicitly to make kernels compiled by clang generate properly aligned code. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/lib/libkern/arch/sparc/random.S cvs rdiff -u -r1.4 -r1.5 src/sys/lib/libkern/arch/sparc64/random.S Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/lib/libkern/arch/sparc/random.S diff -u src/sys/lib/libkern/arch/sparc/random.S:1.4 src/sys/lib/libkern/arch/sparc/random.S:1.5 --- src/sys/lib/libkern/arch/sparc/random.S:1.4 Thu Sep 12 15:36:17 2013 +++ src/sys/lib/libkern/arch/sparc/random.S Fri Mar 7 20:23:09 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: random.S,v 1.4 2013/09/12 15:36:17 joerg Exp $ */ +/* $NetBSD: random.S,v 1.5 2014/03/07 20:23:09 nakayama Exp $ */ /* * Copyright (c) 1990,1993 The Regents of the University of California. @@ -43,6 +43,7 @@ #include machine/asm.h .data + .align 4 randseed: .long 1 Index: src/sys/lib/libkern/arch/sparc64/random.S diff -u src/sys/lib/libkern/arch/sparc64/random.S:1.4 src/sys/lib/libkern/arch/sparc64/random.S:1.5 --- src/sys/lib/libkern/arch/sparc64/random.S:1.4 Thu Sep 12 15:36:17 2013 +++ src/sys/lib/libkern/arch/sparc64/random.S Fri Mar 7 20:23:09 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: random.S,v 1.4 2013/09/12 15:36:17 joerg Exp $ */ +/* $NetBSD: random.S,v 1.5 2014/03/07 20:23:09 nakayama Exp $ */ /* * Copyright (c) 1990,1993 The Regents of the University of California. @@ -43,6 +43,7 @@ #include machine/asm.h .data + .align 4 randseed: .long 1
CVS commit: src/external/gpl3/gcc/dist/gcc/config/alpha
Module Name:src Committed By: skrll Date: Fri Mar 7 21:15:49 UTC 2014 Modified Files: src/external/gpl3/gcc/dist/gcc/config/alpha: netbsd.h Log Message: No need to provide a Scrt0.o for PIE as crt0.o is PIC To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h diff -u src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h:1.2 src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h:1.3 --- src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h:1.2 Sat Mar 1 09:44:50 2014 +++ src/external/gpl3/gcc/dist/gcc/config/alpha/netbsd.h Fri Mar 7 21:15:49 2014 @@ -63,15 +63,9 @@ along with GCC; see the file COPYING3. before entering `main'. */ #undef STARTFILE_SPEC -#ifdef HAVE_LD_PIE -#define STARTFILE_SPEC \ - %{!shared: %{pg|p:gcrt0.o%s;pie:Scrt0.o%s;:crt0.o%s}}\ - crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} -#else #define STARTFILE_SPEC \ %{!shared: %{pg|p:gcrt0.o%s;:crt0.o%s}}\ crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s} -#endif /* Provide an ENDFILE_SPEC appropriate for NetBSD/alpha ELF. Here we add crtend.o, which provides part of the support for getting
CVS commit: src/sys/arch/sparc64/sparc64
Module Name:src Committed By: nakayama Date: Fri Mar 7 22:51:27 UTC 2014 Modified Files: src/sys/arch/sparc64/sparc64: netbsd32_machdep.c syscall.c Log Message: Mark as __diagused to variables used only in KASSERT. To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103 src/sys/arch/sparc64/sparc64/netbsd32_machdep.c cvs rdiff -u -r1.42 -r1.43 src/sys/arch/sparc64/sparc64/syscall.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/sparc64/sparc64/netbsd32_machdep.c diff -u src/sys/arch/sparc64/sparc64/netbsd32_machdep.c:1.102 src/sys/arch/sparc64/sparc64/netbsd32_machdep.c:1.103 --- src/sys/arch/sparc64/sparc64/netbsd32_machdep.c:1.102 Sat Jan 4 00:10:03 2014 +++ src/sys/arch/sparc64/sparc64/netbsd32_machdep.c Fri Mar 7 22:51:27 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_machdep.c,v 1.102 2014/01/04 00:10:03 dsl Exp $ */ +/* $NetBSD: netbsd32_machdep.c,v 1.103 2014/03/07 22:51:27 nakayama Exp $ */ /* * Copyright (c) 1998, 2001 Matthew R. Green @@ -27,7 +27,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: netbsd32_machdep.c,v 1.102 2014/01/04 00:10:03 dsl Exp $); +__KERNEL_RCSID(0, $NetBSD: netbsd32_machdep.c,v 1.103 2014/03/07 22:51:27 nakayama Exp $); #ifdef _KERNEL_OPT #include opt_compat_netbsd.h @@ -1322,7 +1322,7 @@ startlwp32(void *arg) { ucontext32_t *uc = arg; lwp_t *l = curlwp; - int error; + int error __diagused; error = cpu_setmcontext32(l, uc-uc_mcontext, uc-uc_flags); KASSERT(error == 0); Index: src/sys/arch/sparc64/sparc64/syscall.c diff -u src/sys/arch/sparc64/sparc64/syscall.c:1.42 src/sys/arch/sparc64/sparc64/syscall.c:1.43 --- src/sys/arch/sparc64/sparc64/syscall.c:1.42 Thu Jun 27 15:27:46 2013 +++ src/sys/arch/sparc64/sparc64/syscall.c Fri Mar 7 22:51:27 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.c,v 1.42 2013/06/27 15:27:46 martin Exp $ */ +/* $NetBSD: syscall.c,v 1.43 2014/03/07 22:51:27 nakayama Exp $ */ /*- * Copyright (c) 2005 The NetBSD Foundation, Inc. @@ -79,7 +79,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: syscall.c,v 1.42 2013/06/27 15:27:46 martin Exp $); +__KERNEL_RCSID(0, $NetBSD: syscall.c,v 1.43 2014/03/07 22:51:27 nakayama Exp $); #include sys/param.h #include sys/systm.h @@ -380,7 +380,7 @@ startlwp(void *arg) { ucontext_t *uc = arg; lwp_t *l = curlwp; - int error; + int error __diagused; error = cpu_setmcontext(l, uc-uc_mcontext, uc-uc_flags); KASSERT(error == 0);
CVS commit: src/external/bsd/bind
Module Name:src Committed By: christos Date: Fri Mar 7 23:22:26 UTC 2014 Modified Files: src/external/bsd/bind: Makefile.inc Log Message: allow filtering (from John Baker) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/external/bsd/bind/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/bind/Makefile.inc diff -u src/external/bsd/bind/Makefile.inc:1.19 src/external/bsd/bind/Makefile.inc:1.20 --- src/external/bsd/bind/Makefile.inc:1.19 Wed Dec 25 17:19:15 2013 +++ src/external/bsd/bind/Makefile.inc Fri Mar 7 18:22:26 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.19 2013/12/25 22:19:15 joerg Exp $ +# $NetBSD: Makefile.inc,v 1.20 2014/03/07 23:22:26 christos Exp $ .if !defined(BIND9_MAKEFILE_INC) BIND9_MAKEFILE_INC=yes @@ -50,6 +50,7 @@ CPPFLAGS+=-I${BIND_SRCDIR}/include \ .if (${USE_INET6} != no) CPPFLAGS+= -DWANT_IPV6 +CPPFLAGS+= -DALLOW_FILTER__ON_V4 .endif .if defined(HAVE_GCC)
CVS commit: src/sys/compat/ibcs2
Module Name:src Committed By: nakayama Date: Sat Mar 8 01:51:58 UTC 2014 Modified Files: src/sys/compat/ibcs2: ibcs2_mod.c Log Message: Redo previous. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/compat/ibcs2/ibcs2_mod.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/compat/ibcs2/ibcs2_mod.c diff -u src/sys/compat/ibcs2/ibcs2_mod.c:1.4 src/sys/compat/ibcs2/ibcs2_mod.c:1.5 --- src/sys/compat/ibcs2/ibcs2_mod.c:1.4 Fri Mar 7 02:03:32 2014 +++ src/sys/compat/ibcs2/ibcs2_mod.c Sat Mar 8 01:51:58 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: ibcs2_mod.c,v 1.4 2014/03/07 02:03:32 christos Exp $ */ +/* $NetBSD: ibcs2_mod.c,v 1.5 2014/03/08 01:51:58 nakayama Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: ibcs2_mod.c,v 1.4 2014/03/07 02:03:32 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: ibcs2_mod.c,v 1.5 2014/03/08 01:51:58 nakayama Exp $); #ifdef _KERNEL_OPT #include opt_execfmt.h @@ -67,7 +67,7 @@ static struct execsw ibcs2_execsw[] = { .es_hdrsz = sizeof (Elf32_Ehdr), .es_makecmds = exec_elf32_makecmds, .u = { - .ecoff_probe_func = ibcs2_elf32_probe, + .elf_probe_func = ibcs2_elf32_probe, }, .es_emul = emul_ibcs2, .es_prio = EXECSW_PRIO_ANY,
CVS commit: src/external/gpl3/gcc/lib/crtstuff
Module Name:src Committed By: mrg Date: Sat Mar 8 01:58:11 UTC 2014 Modified Files: src/external/gpl3/gcc/lib/crtstuff: Makefile Log Message: crtstuff.c moved into libgcc. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/crtstuff/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/lib/crtstuff/Makefile diff -u src/external/gpl3/gcc/lib/crtstuff/Makefile:1.9 src/external/gpl3/gcc/lib/crtstuff/Makefile:1.10 --- src/external/gpl3/gcc/lib/crtstuff/Makefile:1.9 Sat Mar 1 10:00:31 2014 +++ src/external/gpl3/gcc/lib/crtstuff/Makefile Sat Mar 8 01:58:11 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2014/03/01 10:00:31 mrg Exp $ +# $NetBSD: Makefile,v 1.10 2014/03/08 01:58:11 mrg Exp $ REQUIRETOOLS= yes NOLINT= # defined @@ -17,7 +17,7 @@ GCCARCH= ${NETBSDSRCDIR}/external/gpl3/g GALLCFLAGS= ${G_CRTSTUFF_CFLAGS} ${G_CRTSTUFF_T_CFLAGS} CPPFLAGS+= -I${GCCARCH} ${GALLCFLAGS:M-D*} ${GALLCFLAGS:M-I*:N-I.*} -CPPFLAGS+= -I. +CPPFLAGS+= -I. -I${DIST}/libgcc COPTS+= -finhibit-size-directive \ -fno-inline \ -fno-exceptions \
CVS commit: src/external/gpl3/gcc/lib/crtstuff
Module Name:src Committed By: mrg Date: Sat Mar 8 02:02:22 UTC 2014 Modified Files: src/external/gpl3/gcc/lib/crtstuff: Makefile Log Message: create a fake libgcc_tm.h. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/lib/crtstuff/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/lib/crtstuff/Makefile diff -u src/external/gpl3/gcc/lib/crtstuff/Makefile:1.10 src/external/gpl3/gcc/lib/crtstuff/Makefile:1.11 --- src/external/gpl3/gcc/lib/crtstuff/Makefile:1.10 Sat Mar 8 01:58:11 2014 +++ src/external/gpl3/gcc/lib/crtstuff/Makefile Sat Mar 8 02:02:22 2014 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2014/03/08 01:58:11 mrg Exp $ +# $NetBSD: Makefile,v 1.11 2014/03/08 02:02:22 mrg Exp $ REQUIRETOOLS= yes NOLINT= # defined @@ -52,7 +52,7 @@ FILESDIR=${LIBDIR} .PATH: ${DIST}/gcc ${DIST}/gcc/config ${G_CONFIGDIR} .include ../Makefile.tconfigh -EXTRA_FAKEHEADERS= options.h +EXTRA_FAKEHEADERS= options.h libgcc_tm.h .include ../Makefile.hacks ${OBJS}: ${DPSRCS}
CVS commit: src/sys/arch/x68k/stand/libsa
Module Name:src Committed By: isaki Date: Sat Mar 8 03:20:24 UTC 2014 Modified Files: src/sys/arch/x68k/stand/libsa: fd.c Log Message: Unused variable, for GCC4.8. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x68k/stand/libsa/fd.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/x68k/stand/libsa/fd.c diff -u src/sys/arch/x68k/stand/libsa/fd.c:1.7 src/sys/arch/x68k/stand/libsa/fd.c:1.8 --- src/sys/arch/x68k/stand/libsa/fd.c:1.7 Sun Jul 17 20:54:49 2011 +++ src/sys/arch/x68k/stand/libsa/fd.c Sat Mar 8 03:20:24 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: fd.c,v 1.7 2011/07/17 20:54:49 joerg Exp $ */ +/* $NetBSD: fd.c,v 1.8 2014/03/08 03:20:24 isaki Exp $ */ /* * Copyright (c) 2001 MINOURA Makoto. @@ -40,7 +40,8 @@ fdopen(struct open_file *f, ...) int error; struct fd_softc *sc; struct fdfmt fdfmt; - int id, part; + int id; + int part __unused; va_list ap; va_start(ap, f);