svn commit: r230372 - head/sbin/mount

2012-01-19 Thread Jaakko Heinonen
Author: jh Date: Fri Jan 20 07:29:29 2012 New Revision: 230372 URL: http://svn.freebsd.org/changeset/base/230372 Log: - Clean up checkpath(). - Remove unneeded sysexits.h include. No functional change. Submitted by: bde Modified: head/sbin/mount/getmntopts.c Modified: head/sbin/m

svn commit: r230371 - head/lib/msun/src

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 07:02:42 2012 New Revision: 230371 URL: http://svn.freebsd.org/changeset/base/230371 Log: Fix a small nit noted by bde: exp_x should be of type float, not double. Modified: head/lib/msun/src/k_expf.c Modified: head/lib/msun/src/k_expf.c ==

svn commit: r230370 - head/lib/msun/arm

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 07:01:58 2012 New Revision: 230370 URL: http://svn.freebsd.org/changeset/base/230370 Log: Add a change I missed in r230367 (don't inline arm's fenv.h functions). Modified: head/lib/msun/arm/Makefile.inc Modified: head/lib/msun/arm/Makefile.inc ===

svn commit: r230369 - head/lib/libdisk

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:59:29 2012 New Revision: 230369 URL: http://svn.freebsd.org/changeset/base/230369 Log: Remove an errant `#define dprintf printf'. It seems to be leftover debugging code that nothing depends on. (I've had this in my tree for years without issue.) Modified:

svn commit: r230368 - head/tools/regression/usr.bin/cc

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:57:21 2012 New Revision: 230368 URL: http://svn.freebsd.org/changeset/base/230368 Log: These tests check whether the compiler evaluates floating-point expressions properly. Some of the tests depend on the compiler implementing C99's FENV_ACCESS pragma, and on

svn commit: r230367 - in head/lib: libc/arm/gen msun/arm

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:54:30 2012 New Revision: 230367 URL: http://svn.freebsd.org/changeset/base/230367 Log: Don't inline fenv.h functions on arm for now. Inlining makes sense: the function bodies require only 2 to 10 instructions. However, it leads to application binaries that r

svn commit: r230366 - in head/sys: arm/include ia64/include mips/include powerpc/include

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:51:41 2012 New Revision: 230366 URL: http://svn.freebsd.org/changeset/base/230366 Log: Add parentheses where required. Without them, `sizeof LDBL_MAX' is a syntax error and shouldn't be, while `1 FLT_ROUNDS' isn't a syntax error and should be. Thanks to bde

Re: svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-19 Thread David Schultz
On Fri, Jan 20, 2012, David Schultz wrote: > Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the > original vendor, but we're using their heavily modified version.) > This brings in functions for long double emulation (both extended and > quad formats), which may be useful

svn commit: r230363 - in head/lib/libc/softfloat: . bits32 bits64

2012-01-19 Thread David Schultz
Author: das Date: Fri Jan 20 06:16:14 2012 New Revision: 230363 URL: http://svn.freebsd.org/changeset/base/230363 Log: Merge in the latest SoftFloat changes from NetBSD. (NetBSD isn't the original vendor, but we're using their heavily modified version.) This brings in functions for long dou

Re: svn commit: r230230 - head/sys/dev/random

2012-01-19 Thread Andrey Chernov
On Thu, Jan 19, 2012 at 07:52:30PM +, Mark Murray wrote: > Andrey Chernov writes: > > On Mon, Jan 16, 2012 at 08:18:10PM +, David Schultz wrote: > > > Author: das > > > Date: Mon Jan 16 20:18:10 2012 > > > New Revision: 230230 > > > URL: http://svn.freebsd.org/changeset/base/230230 > > > >

Re: svn commit: r230354 - head/usr.sbin/makefs

2012-01-19 Thread Hiroki Sato
Eitan Adler wrote in <201201200138.q0k1csou016...@svn.freebsd.org>: ea> Author: eadler ea> Date: Fri Jan 20 01:38:28 2012 ea> New Revision: 230354 ea> URL: http://svn.freebsd.org/changeset/base/230354 ea> ea> Log: ea> Fix a variety of warnings when compiling with gcc46 ea> ea> Approved by:

svn commit: r230359 - head/usr.sbin/faithd

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:39:08 2012 New Revision: 230359 URL: http://svn.freebsd.org/changeset/base/230359 Log: Fix warning when compiling with gcc46: error: variable 'a' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved com

svn commit: r230358 - head/usr.sbin/sade

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:39:01 2012 New Revision: 230358 URL: http://svn.freebsd.org/changeset/base/230358 Log: Fix warning when compiling with gcc46: error: variable 'fd' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved co

svn commit: r230355 - head/usr.sbin/makefs

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:35 2012 New Revision: 230355 URL: http://svn.freebsd.org/changeset/base/230355 Log: Fix warning when compiling with gcc46: error: variable 'parentrecnum' set but not used Approved by:dim, cperciva (mentor, blanket for pre-mentorship alrea

svn commit: r230354 - head/usr.sbin/makefs

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:28 2012 New Revision: 230354 URL: http://svn.freebsd.org/changeset/base/230354 Log: Fix a variety of warnings when compiling with gcc46 Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after:3 days Mo

svn commit: r230352 - head/usr.sbin/mountd

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:12 2012 New Revision: 230352 URL: http://svn.freebsd.org/changeset/base/230352 Log: Fix warning when compiling with gcc46: error: variable 'dirp' set but not used error: variable 'dirplen' set but not used Approved by: dim, cperciva (me

svn commit: r230351 - head/usr.sbin/moused

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:05 2012 New Revision: 230351 URL: http://svn.freebsd.org/changeset/base/230351 Log: Fix warning when compiling with gcc46: error: variable 'now' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved c

svn commit: r230348 - head/usr.sbin/ppp

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:37:39 2012 New Revision: 230348 URL: http://svn.freebsd.org/changeset/base/230348 Log: Fix warning when compiling with gcc46: error: variable 'extra_async_bytes' set but not used Approved by:dim, cperciva (mentor, blanket for pre-mentorship al

svn commit: r230347 - head/usr.sbin/ppp

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:37:31 2012 New Revision: 230347 URL: http://svn.freebsd.org/changeset/base/230347 Log: Fix warning when compiling with gcc46: error: variable 'addrs' set but not used Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship al

svn commit: r230346 - head/usr.sbin/rarpd

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:37:23 2012 New Revision: 230346 URL: http://svn.freebsd.org/changeset/base/230346 Log: Fix warning when compiling with gcc46: error: variable 'hostname' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-appro

svn commit: r230361 - head/usr.sbin/bootparamd/callbootd

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:39:26 2012 New Revision: 230361 URL: http://svn.freebsd.org/changeset/base/230361 Log: Fix warning when compiling with gcc46: error: variable 'clnt_stat' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-appr

svn commit: r230360 - head/usr.sbin/cpucontrol

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:39:16 2012 New Revision: 230360 URL: http://svn.freebsd.org/changeset/base/230360 Log: Fix warning when compiling with gcc46: error: variable 'flags' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved

svn commit: r230357 - head/usr.sbin/rtsold

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:52 2012 New Revision: 230357 URL: http://svn.freebsd.org/changeset/base/230357 Log: Fix warning when compiling with gcc46: error: variable 'target' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approve

svn commit: r230356 - head/usr.sbin/i2c

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:44 2012 New Revision: 230356 URL: http://svn.freebsd.org/changeset/base/230356 Log: Fix warning when compiling with gcc46: error: variable 'i2c' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved c

svn commit: r230353 - head/usr.sbin/makefs

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:38:21 2012 New Revision: 230353 URL: http://svn.freebsd.org/changeset/base/230353 Log: Fix warning when compiling with gcc46: error: variable 'temp' set but not used Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship a

svn commit: r230350 - head/usr.sbin/pmcstat

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:37:56 2012 New Revision: 230350 URL: http://svn.freebsd.org/changeset/base/230350 Log: Fix warning when compiling with gcc46: error: variable 'current_cpu' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-ap

svn commit: r230349 - head/usr.sbin/ppp

2012-01-19 Thread Eitan Adler
Author: eadler Date: Fri Jan 20 01:37:49 2012 New Revision: 230349 URL: http://svn.freebsd.org/changeset/base/230349 Log: Fix warning when compiling with gcc46: error: variable 'len' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved

svn commit: r230345 - head/sys/fs/nfs

2012-01-19 Thread Rick Macklem
Author: rmacklem Date: Fri Jan 20 00:58:51 2012 New Revision: 230345 URL: http://svn.freebsd.org/changeset/base/230345 Log: Martin Cracauer reported a problem to freebsd-current@ under the subject "Data corruption over NFS in -current". During investigation of this, I came across an ugly bog

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread David Xu
On 2012/1/20 0:55, Bruce Evans wrote: On Thu, 19 Jan 2012, John Baldwin wrote: On Thursday, January 19, 2012 12:57:50 am David Xu wrote: rdtsc() may not work on SMP, so I have updated it to use clock_gettime to get total time. http://people.freebsd.org/~davidxu/bench/semaphore2/

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread David Xu
On 2012/1/19 23:23, John Baldwin wrote: On Thursday, January 19, 2012 12:57:50 am David Xu wrote: rdtsc() may not work on SMP, so I have updated it to use clock_gettime to get total time. http://people.freebsd.org/~davidxu/bench/semaphore2/

svn commit: r230341 - head/sys/kern

2012-01-19 Thread Konstantin Belousov
Author: kib Date: Thu Jan 19 23:03:31 2012 New Revision: 230341 URL: http://svn.freebsd.org/changeset/base/230341 Log: Use shared lock for the executable vnode in the exec path after the VV_TEXT changes are handled. Assert that vnode is exclusively locked at the places that modify VV_TEXT.

svn commit: r230340 - head/sys/dev/pci

2012-01-19 Thread John Baldwin
Author: jhb Date: Thu Jan 19 21:38:19 2012 New Revision: 230340 URL: http://svn.freebsd.org/changeset/base/230340 Log: Properly return success once a matching VPD entry is found in pci_get_vpd_readonly_method(). Previously the loop was always running to completion and falling through to fai

svn commit: r230339 - head/share/man/man4

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:31:29 2012 New Revision: 230339 URL: http://svn.freebsd.org/changeset/base/230339 Log: Reflect tunable name change made in r230337. Modified: head/share/man/man4/bge.4 Modified: head/share/man/man4/bge.4

Re: svn commit: r230230 - head/sys/dev/random

2012-01-19 Thread Mark Murray
Andrey Chernov writes: > On Mon, Jan 16, 2012 at 08:18:10PM +, David Schultz wrote: > > Author: das > > Date: Mon Jan 16 20:18:10 2012 > > New Revision: 230230 > > URL: http://svn.freebsd.org/changeset/base/230230 > > > > Log: > > Generate a warning if the kernel's arc4random() is seeded wit

svn commit: r230338 - head/sys/dev/bge

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:28:58 2012 New Revision: 230338 URL: http://svn.freebsd.org/changeset/base/230338 Log: Oops, fix logic error introduced in r230337. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Smirnoff
Ben, On Thu, Jan 19, 2012 at 03:12:27PM -0500, Ben Kaduk wrote: B> > G> It's not a big deal for me, I have no problem with replacing them on B> > G> FreeBSD. FreeBSD is not even officially supported platform for the B> > G> product and I build/test on FreeBSD solely for the purpose of avoiding B

svn commit: r230337 - head/sys/dev/bge

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:21:59 2012 New Revision: 230337 URL: http://svn.freebsd.org/changeset/base/230337 Log: Rename dev.bge.%d.msi_disable to dev.bge.%d.msi which matches enable/disable and default it to on. Suggested by: jhb Modified: head/sys/dev/bge/if_bge.c head/sys

svn commit: r230336 - head/sys/dev/re

2012-01-19 Thread Pyun YongHyeon
Author: yongari Date: Thu Jan 19 20:13:16 2012 New Revision: 230336 URL: http://svn.freebsd.org/changeset/base/230336 Log: Fix a logic error which resulted in putting PHY into sleep when WOL is active. If WOL is active driver should not put PHY into sleep. This change makes WOL work on RTL8

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Ben Kaduk
On 1/19/12, Gleb Smirnoff wrote: > On Thu, Jan 19, 2012 at 06:46:27PM +0200, Gleb Kurtsou wrote: > > G> It's not a big deal for me, I have no problem with replacing them on > G> FreeBSD. FreeBSD is not even officially supported platform for the > G> product and I build/test on FreeBSD solely for t

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Smirnoff
On Thu, Jan 19, 2012 at 11:07:55AM -0600, Mark Linimon wrote: M> I had kind of hoped that before support was dropped, we had generated M> a strategy for dealing with the port breakages that my -exp run detected. M> This is disappointing. These three ports were false positives. They do not utilize

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Smirnoff
On Thu, Jan 19, 2012 at 06:46:27PM +0200, Gleb Kurtsou wrote: G> > I wouldn't claim compatibility for the commands that didn't work very well. G> > I won't also name Linux, since these commands predate the Linux itself. G> G> I meant that SIOCSIFADDR is default (if not the only) way to set G> inte

svn commit: r230334 - head/sys/cam/ctl

2012-01-19 Thread Kenneth D. Merry
Author: ken Date: Thu Jan 19 18:42:03 2012 New Revision: 230334 URL: http://svn.freebsd.org/changeset/base/230334 Log: Quiet some clang warnings when compiling CTL. ctl_error.c, ctl_error.h: Take out the ctl_sense_format enumeration, and use scsi_sense_data_type instead.

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread David Chisnall
On 19 Jan 2012, at 18:09, Ed Schouten wrote: > In the very nearby future (after I switch SPARC64 and MIPS to > libcompiler_rt), it should be possible to safely use C11's > on all supported architectures. The C11 interface allows any operation > to be combined with any type of barrier. > > Maybe

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread Ed Schouten
Hi David, * David Xu , 20120116 08:53: > but since atomic.h does not have a full barrier atomic operation > interface, I intend to add a rmb() here. In the very nearby future (after I switch SPARC64 and MIPS to libcompiler_rt), it should be possible to safely use C11's on all supported architect

svn commit: r230333 - in head/sys/dev/usb: . wlan

2012-01-19 Thread Hans Petter Selasky
Author: hselasky Date: Thu Jan 19 18:03:52 2012 New Revision: 230333 URL: http://svn.freebsd.org/changeset/base/230333 Log: Add support for new USB device. PR: usb/164275 MFC after:3 days Modified: head/sys/dev/usb/usbdevs head/sys/dev/usb/wlan/if_run.c Modified: head/

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread Bruce Evans
On Fri, 20 Jan 2012, Bruce Evans wrote: ... % + v = *p; \ % + __asm __volatile("lfence" ::: "memory");\ Style bug (missing spaces around binary operator `:') which becomes a syntax error for C++. Other places in this file use ` : : : '. lfen

svn commit: r230332 - head/release/doc/share/misc

2012-01-19 Thread John Baldwin
Author: jhb Date: Thu Jan 19 17:29:54 2012 New Revision: 230332 URL: http://svn.freebsd.org/changeset/base/230332 Log: Add support for the Em command. This restores a missing 'not' in the description of snd_emu10kx(4). Reviewed by: simon MFC after:1 week Modified: head/release/

Re: svn commit: r230007 - in head: etc etc/rc.d share/man/man8

2012-01-19 Thread Brooks Davis
On Fri, Jan 13, 2012 at 11:21:48AM +0400, Eygene Ryabinkin wrote: > The related topic: in the process of grepping for dhclient within > /etc, I had found that /etc/netstart still wants to invoke it. But it > will do a lone '/etc/rc.d/dhclient quietstart' and this will never > be useful in the curr

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Mark Linimon
I had kind of hoped that before support was dropped, we had generated a strategy for dealing with the port breakages that my -exp run detected. This is disappointing. mcl ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread Bruce Evans
On Thu, 19 Jan 2012, John Baldwin wrote: On Thursday, January 19, 2012 12:57:50 am David Xu wrote: rdtsc() may not work on SMP, so I have updated it to use clock_gettime to get total time. http://people.freebsd.org/~davidxu/bench/semaphore2/

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Kurtsou
On (19/01/2012 18:51), Gleb Smirnoff wrote: > On Thu, Jan 19, 2012 at 04:38:38PM +0200, Gleb Kurtsou wrote: > G> On (16/01/2012 09:53), Gleb Smirnoff wrote: > G> > Author: glebius > G> > Date: Mon Jan 16 09:53:24 2012 > G> > New Revision: 230207 > G> > URL: http://svn.freebsd.org/changeset/base/230

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Ivan Voras
2012/1/19 Gleb Smirnoff : > Do you use them? Or do you know software that use them? That's easy: Google: SIOCSIFADDR "About 55,400 results" A different question is if any *important* software uses it... ___ svn-src-head@freebsd.org mailing list http:/

Re: svn commit: r230007 - in head: etc etc/rc.d share/man/man8

2012-01-19 Thread John Baldwin
On Wednesday, January 18, 2012 11:19:53 pm Eygene Ryabinkin wrote: > Wed, Jan 18, 2012 at 10:11:04AM -0500, John Baldwin wrote: > > On Wednesday, January 18, 2012 6:29:10 am Eygene Ryabinkin wrote: > > > The attached patch that just changes 'err' to 'echo ...; exit 1' > > > works fine for me. > > >

Re: svn commit: r230201 - head/lib/libc/gen

2012-01-19 Thread John Baldwin
On Thursday, January 19, 2012 12:57:50 am David Xu wrote: > rdtsc() may not work on SMP, so I have updated it to use clock_gettime > to get total time. > http://people.freebsd.org/~davidxu/bench/semaphore2/ > > > Still, lfence is a lot fas

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Kurtsou
On (16/01/2012 09:53), Gleb Smirnoff wrote: > Author: glebius > Date: Mon Jan 16 09:53:24 2012 > New Revision: 230207 > URL: http://svn.freebsd.org/changeset/base/230207 > > Log: > Drop support for SIOCSIFADDR, SIOCSIFNETMASK, SIOCSIFBRDADDR, SIOCSIFDSTADDR > ioctl commands. What was the reas

Re: svn commit: r230207 - in head/sys: netinet sys

2012-01-19 Thread Gleb Smirnoff
On Thu, Jan 19, 2012 at 04:38:38PM +0200, Gleb Kurtsou wrote: G> On (16/01/2012 09:53), Gleb Smirnoff wrote: G> > Author: glebius G> > Date: Mon Jan 16 09:53:24 2012 G> > New Revision: 230207 G> > URL: http://svn.freebsd.org/changeset/base/230207 G> > G> > Log: G> > Drop support for SIOCSIFADDR,

svn commit: r230331 - head/sys/dev/sound/pci/hda

2012-01-19 Thread Alexander Motin
Author: mav Date: Thu Jan 19 11:18:21 2012 New Revision: 230331 URL: http://svn.freebsd.org/changeset/base/230331 Log: Print controller/codec IDs for unknown chips instead of useless and frightening "unknown" word. In most cases we don't need to know chips to properly handle them, but having

svn commit: r230330 - head/share/man/man9

2012-01-19 Thread Ed Schouten
Author: ed Date: Thu Jan 19 09:51:07 2012 New Revision: 230330 URL: http://svn.freebsd.org/changeset/base/230330 Log: Remove remnants of dev_t. These functions take a `struct cdev *' -- not a dev_t. Inside the kernel, dev_t has the same use as in userspace, namely to store a device iden

svn commit: r230329 - head/sys/dev/ixgbe

2012-01-19 Thread Luigi Rizzo
Author: luigi Date: Thu Jan 19 09:36:19 2012 New Revision: 230329 URL: http://svn.freebsd.org/changeset/base/230329 Log: netmap-related changes: 1. correct the initialization of RDT when there is an ixgbe_init() while a netmap client is active. This code was previously in ixgbe_initi