svn commit: r235822 - in head: sys/dev/esp sys/gnu/fs/xfs/FreeBSD usr.sbin/ppp usr.sbin/rpc.lockd

2012-05-22 Thread Xin LI
Author: delphij Date: Wed May 23 06:49:50 2012 New Revision: 235822 URL: http://svn.freebsd.org/changeset/base/235822 Log: Fix build: - Use %ll instead of %q for explicit long long casts; - Use %j instead of %q in XFS and cast to intmax_t. Tested with: make universe Modified: h

Re: svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread Dimitry Andric
On 2012-05-22 23:07, m...@freebsd.org wrote: ... > We run with the following at Isilon, which is somewhat bogus because > it allows a bit of sloppiness in types, but is also terribly > convenient since it means no casting on printf arguments is needed: Please don't. If you want to write portable

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

2012-05-22 Thread Pyun YongHyeon
Author: yongari Date: Wed May 23 03:35:08 2012 New Revision: 235821 URL: http://svn.freebsd.org/changeset/base/235821 Log: Don't force max payload size to 128. Root complex and Endpoint will negotiate with each other on the TLP payload size so blindly forcing the size to 128 can cause a comp

Re: svn commit: r235601 - head/include/protocols

2012-05-22 Thread Benjamin Kaduk
On Mon, 21 May 2012, John Baldwin wrote: On Friday, May 18, 2012 11:24:36 am Gleb Kurtsou wrote: On (18/05/2012 09:41), John Baldwin wrote: On Friday, May 18, 2012 6:01:31 am Gleb Kurtsou wrote: Author: gleb Date: Fri May 18 10:01:31 2012 New Revision: 235601 URL: http://svn.freebsd.org/chang

svn commit: r235816 - head/sys/dev/bce

2012-05-22 Thread Pyun YongHyeon
Author: yongari Date: Wed May 23 01:20:25 2012 New Revision: 235816 URL: http://svn.freebsd.org/changeset/base/235816 Log: Make IPMI work in the bce driver even when the interface is configured down. Formerly, IPMI communication was lost whenever the interface was not up. The reason was th

Re: svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread Marcel Moolenaar
On May 22, 2012, at 2:07 PM, m...@freebsd.org wrote: > On Tue, May 22, 2012 at 1:05 PM, Bruce Evans wrote: >> On Tue, 22 May 2012, David E. O'Brien wrote: >> >>> Log: >>> Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit >>> platforms. >> >> >> I think I like this, since i

Re: svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread mdf
On Tue, May 22, 2012 at 1:05 PM, Bruce Evans wrote: > On Tue, 22 May 2012, David E. O'Brien wrote: > >> Log: >>  Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit >> platforms. > > > I think I like this, since it is technically correct, and will find a > different set of type mi

Re: svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread gnn
At Wed, 23 May 2012 06:05:06 +1000 (EST), Bruce Evans wrote: > > On Tue, 22 May 2012, David E. O'Brien wrote: > > > Log: > > Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit > > platforms. > > I think I like this, since it is technically correct, and will find a > different

Re: svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread Bruce Evans
On Tue, 22 May 2012, David E. O'Brien wrote: Log: Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit platforms. I think I like this, since it is technically correct, and will find a different set of type mismatches. Modified: head/contrib/gcc/c-format.c ===

Re: svn commit: r234482 - in head/sys: fs/msdosfs fs/nfsserver kern sys

2012-05-22 Thread Attilio Rao
2012/4/22 Pawel Jakub Dawidek : > On Fri, Apr 20, 2012 at 06:50:44AM +, Kirk McKusick wrote: >> Author: mckusick >> Date: Fri Apr 20 06:50:44 2012 >> New Revision: 234482 >> URL: http://svn.freebsd.org/changeset/base/234482 >> >> Log: >>   This change creates a new list of active vnodes associa

svn commit: r235804 - head/sys/dev/ath

2012-05-22 Thread Adrian Chadd
Author: adrian Date: Tue May 22 19:50:21 2012 New Revision: 235804 URL: http://svn.freebsd.org/changeset/base/235804 Log: Re-up the TX ath_buf limit from 128 to 512. I'll have to leave this high for now, until I've done some significant surgery with how ath_bufs (and descriptors) are hand

svn commit: r235803 - head/sys/kern

2012-05-22 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 22 19:43:20 2012 New Revision: 235803 URL: http://svn.freebsd.org/changeset/base/235803 Log: Fix use-after-free in kern_jail_set() triggered e.g. by attempts to clear "persist" flag from empty persistent jail, like this: jail -c persist=1 jail -n 1 -m persist

svn commit: r235802 - head/usr.bin/minigzip

2012-05-22 Thread Xin LI
Author: delphij Date: Tue May 22 19:40:54 2012 New Revision: 235802 URL: http://svn.freebsd.org/changeset/base/235802 Log: commandline -> command line MFC after:1 week Modified: head/usr.bin/minigzip/minigzip.1 Modified: head/usr.bin/minigzip/minigzip.1 =

svn commit: r235801 - head/sys/net80211

2012-05-22 Thread Adrian Chadd
Author: adrian Date: Tue May 22 19:37:12 2012 New Revision: 235801 URL: http://svn.freebsd.org/changeset/base/235801 Log: Fix some corner cases in the ieee80211_send_bar() handling. * If the first call succeeded but failed to transmit, a timer would reschedule it via bar_timeout(). Unf

Re: svn commit: r235623 - in head/contrib/gcc: . config/rs6000 config/sparc

2012-05-22 Thread Pedro Giffuni
Hi David; On 05/22/12 13:27, David O'Brien wrote: On Fri, May 18, 2012 at 07:02:40PM +, Pedro F. Giffuni wrote: Log: Bring in a subset of gcc fixes that were back ported to the GCC 4.1 branch and are available under GPLv2. I do not understand this -- We're using GCC 4.2.1 @r127959, b

Re: svn commit: r235623 - in head/contrib/gcc: . config/rs6000 config/sparc

2012-05-22 Thread David O'Brien
On Fri, May 18, 2012 at 07:02:40PM +, Pedro F. Giffuni wrote: > Log: > Bring in a subset of gcc fixes that were back ported to > the GCC 4.1 branch and are available under GPLv2. I do not understand this -- We're using GCC 4.2.1 @r127959, but you are bringing in patches that are against 4.

svn commit: r235799 - head/lib/libjail

2012-05-22 Thread Jamie Gritton
Author: jamie Date: Tue May 22 18:30:32 2012 New Revision: 235799 URL: http://svn.freebsd.org/changeset/base/235799 Log: The fix in r235291 re-broke the "allow.nomount" case. Re-fix it by testing for the right parameter name. Modified: head/lib/libjail/jail.c Modified: head/lib/libjail/ja

svn commit: r235797 - head/contrib/gcc

2012-05-22 Thread David E. O'Brien
Author: obrien Date: Tue May 22 18:18:06 2012 New Revision: 235797 URL: http://svn.freebsd.org/changeset/base/235797 Log: Do not incorrectly warn when printing a quad_t using "%qd" on 64-bit platforms. Modified: head/contrib/gcc/c-format.c Modified: head/contrib/gcc/c-format.c =

Re: svn commit: r235777 - head/sys/kern

2012-05-22 Thread Bruce Evans
On Tue, 22 May 2012, Hartmut Brandt wrote: On Tue, 22 May 2012, Bruce Evans wrote: BE>On Tue, 22 May 2012, Hartmut Brandt wrote: BE> BE>> Log: BE>> Make dumptid non-static. It is used by libkvm to detect whether BE>> this is a VNET-kernel or not. gcc used to put the static symbol into BE>> t

svn commit: r235795 - head/sys/kern

2012-05-22 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 22 17:30:02 2012 New Revision: 235795 URL: http://svn.freebsd.org/changeset/base/235795 Log: Don't leak locks in prison_racct_modify(). Submitted by: Mateusz Guzik MFC after:2 weeks Modified: head/sys/kern/kern_jail.c Modified: head/sys/kern/kern_jail.

svn commit: r235794 - head/contrib/gcc

2012-05-22 Thread David E. O'Brien
Author: obrien Date: Tue May 22 17:11:18 2012 New Revision: 235794 URL: http://svn.freebsd.org/changeset/base/235794 Log: Record that r235793 (-objc) has been merged from vendor/gcc into HEAD. Modified: Directory Properties: head/contrib/gcc/ (props changed)

Re: svn commit: r235777 - head/sys/kern

2012-05-22 Thread Bjoern A. Zeeb
On 22. May 2012, at 07:23 , Hartmut Brandt wrote: > Author: harti > Date: Tue May 22 07:23:41 2012 > New Revision: 235777 > URL: http://svn.freebsd.org/changeset/base/235777 > > Log: > Make dumptid non-static. It is used by libkvm to detect whether > this is a VNET-kernel or not. Just for cla

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Baptiste Daroussin
On Tue, May 22, 2012 at 06:01:31PM +0200, Dag-Erling Smørgrav wrote: > Gabor Kovesdan writes: > > Maybe I'm missing some point but what if we always use yacc and lex > > from the source tree instead of from the base system? That would be > > the most logical way of doing this and whether they are

svn commit: r235789 - in head: sbin/devd sbin/hastd usr.bin/ar usr.bin/bc usr.bin/find usr.bin/m4 usr.bin/mkcsmapper usr.bin/mklocale usr.sbin/bluetooth/bthidd usr.sbin/bluetooth/hcsecd usr.sbin/co...

2012-05-22 Thread Baptiste Daroussin
Author: bapt Date: Tue May 22 16:33:10 2012 New Revision: 235789 URL: http://svn.freebsd.org/changeset/base/235789 Log: Fix world after byacc import: - old yacc(1) use to magicially append stdlib.h, while new one don't - new yacc(1) do declare yyparse by itself, fix redundant declaration of

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Dag-Erling Smørgrav
Gabor Kovesdan writes: > Maybe I'm missing some point but what if we always use yacc and lex > from the source tree instead of from the base system? That would be > the most logical way of doing this and whether they are built early or > just in the world phase does not make that much difference,

svn commit: r235788 - in head: . sys/sys

2012-05-22 Thread Dag-Erling Smorgrav
Author: des Date: Tue May 22 15:59:07 2012 New Revision: 235788 URL: http://svn.freebsd.org/changeset/base/235788 Log: Bump __FreeBSD_version for the byacc import, and update _bootstrap_tools. Modified: head/Makefile.inc1 head/sys/sys/param.h Modified: head/Makefile.inc1 ==

svn commit: r235787 - head/sys/kern

2012-05-22 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 22 15:58:27 2012 New Revision: 235787 URL: http://svn.freebsd.org/changeset/base/235787 Log: Fix panic with RACCT that could occur in low memory (or out of swap) situations, due to fork1() calling racct_proc_exit() without calling racct_proc_fork() first. Sub

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Gabor Kovesdan
On 2012.05.22. 17:03, Dimitry Andric wrote: ... > I mentioned it in a private email, but the issue is that the yacc >used during the build seems to be coming from the base system (despite >the fact that it's a bootstrap tool). Once I installed yacc onto my >stable-9 system at work, all of th

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Dimitry Andric
On 2012-05-22 16:44, Garrett Cooper wrote: ... > I mentioned it in a private email, but the issue is that the yacc > used during the build seems to be coming from the base system (despite > the fact that it's a bootstrap tool). Once I installed yacc onto my > stable-9 system at work, all of the

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Garrett Cooper
On Tue, May 22, 2012 at 6:32 AM, Dimitry Andric wrote: > On 2012-05-22 12:22, Dag-Erling Smørgrav wrote: >> Baptiste Daroussin writes: >>> Log: >>>   Import byacc from invisible island, it brings us lots of compatibilities >>> with >>>   bison, keeping full compatibility with our previous yacc >

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

2012-05-22 Thread Guy Helmer
On May 22, 2012, at 1:48 AM, Bruce Evans wrote: > On Mon, 21 May 2012, Guy Helmer wrote: > >> Log: >> Apply style(9) to return and switch/case statements. >> >> Reviewed by: delphij (prior version of the patch) >> >> Modified: >> head/lib/libc/gen/getnetgrent.c >> >> Modified: head/lib/libc/ge

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Dag-Erling Smørgrav
Dimitry Andric writes: > Note that it looks like the expr.c file is still generated with the > system yacc, so I'm not entirely sure what's going on here... Yes, I am currently testing a patch that (among other things) bumps __FreeBSD_version and makes yacc a bootstrap tool. DES -- Dag-Erling S

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Dimitry Andric
On 2012-05-22 12:22, Dag-Erling Smørgrav wrote: > Baptiste Daroussin writes: >> Log: >> Import byacc from invisible island, it brings us lots of compatibilities >> with >> bison, keeping full compatibility with our previous yacc >> implementation. > > This commit broke the build, in large

Re: svn commit: r235777 - head/sys/kern

2012-05-22 Thread Hartmut Brandt
On Tue, 22 May 2012, Bruce Evans wrote: BE>On Tue, 22 May 2012, Hartmut Brandt wrote: BE> BE>> Log: BE>> Make dumptid non-static. It is used by libkvm to detect whether BE>> this is a VNET-kernel or not. gcc used to put the static symbol into BE>> the symbol table, clang does not. This fixes th

Re: svn commit: r235780 - head/include

2012-05-22 Thread Bruce Evans
On Tue, 22 May 2012, Hartmut Brandt wrote: Log: Fix a compilation error with some compilers: __attribute__ requires two parenthesis for its argument, but instead of using __attribute__ directly, use the appropriate __nonnull macro from cdefs.h. This also fixes: - the style bug of hard-codi

Re: svn commit: r235777 - head/sys/kern

2012-05-22 Thread Bruce Evans
On Tue, 22 May 2012, Hartmut Brandt wrote: Log: Make dumptid non-static. It is used by libkvm to detect whether this is a VNET-kernel or not. gcc used to put the static symbol into the symbol table, clang does not. This fixes the 'netstat: no namelist' error seen on clang+VNET systems. Modi

svn commit: r235783 - in head/sys/dev/drm2: . i915

2012-05-22 Thread Konstantin Belousov
Author: kib Date: Tue May 22 11:07:44 2012 New Revision: 235783 URL: http://svn.freebsd.org/changeset/base/235783 Log: Add the code for new Intel GPU driver, which supports GEM, KMS and works with new generations of GPUs (IronLake, SandyBridge and supposedly IvyBridge). The driver is no

svn commit: r235782 - in head/sys: dev/agp modules/agp sys

2012-05-22 Thread Konstantin Belousov
Author: kib Date: Tue May 22 10:59:26 2012 New Revision: 235782 URL: http://svn.freebsd.org/changeset/base/235782 Log: A rewrite of the i810 bits of the agp(4) driver. New driver supports operations required by GEMified i915.ko. It also attaches to SandyBridge and IvyBridge CPU northbridges

svn commit: r235781 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2012-05-22 Thread Edward Tomasz Napierala
Author: trasz Date: Tue May 22 10:54:42 2012 New Revision: 235781 URL: http://svn.freebsd.org/changeset/base/235781 Log: Fix enforcement of file size limit with O_APPEND on ZFS. vn_rlimit_fsize takes uio->uio_offset and uio->uio_resid into account when determining whether given write woul

Re: svn commit: r235767 - head/lib/libc/net

2012-05-22 Thread Bruce Evans
On Mon, 21 May 2012, Garrett Cooper wrote: On Mon, May 21, 2012 at 6:28 PM, Kevin Lo wrote: Author: kevlo Date: Tue May 22 01:28:32 2012 New Revision: 235767 URL: http://svn.freebsd.org/changeset/base/235767 Log: ?Add missing header needed by free() ?Reported by: ?tinderbox Please don't us

Re: svn commit: r235723 - in head: contrib/byacc tools/regression/usr.bin/yacc usr.bin/yacc usr.bin/yacc/test

2012-05-22 Thread Dag-Erling Smørgrav
Baptiste Daroussin writes: > Log: > Import byacc from invisible island, it brings us lots of compatibilities > with > bison, keeping full compatibility with our previous yacc > implementation. This commit broke the build, in large part because Baptiste tested with Clang instead of GCC, and

svn commit: r235780 - head/include

2012-05-22 Thread Hartmut Brandt
Author: harti Date: Tue May 22 09:59:49 2012 New Revision: 235780 URL: http://svn.freebsd.org/changeset/base/235780 Log: Fix a compilation error with some compilers: __attribute__ requires two parenthesis for its argument, but instead of using __attribute__ directly, use the appropriate __no

svn commit: r235779 - head/sys/boot/fdt/dts

2012-05-22 Thread Grzegorz Bernacki
Author: gber Date: Tue May 22 09:27:57 2012 New Revision: 235779 URL: http://svn.freebsd.org/changeset/base/235779 Log: Divide nand flash for DB6281 into two partitions. One for u-boot and second one for general use. Obtained from: Semihalf Supported by: FreeBSD Foundation, Juniper Net

svn commit: r235778 - in head/sys: boot/fdt/dts conf dev/fdt geom sys

2012-05-22 Thread Grzegorz Bernacki
Author: gber Date: Tue May 22 08:33:14 2012 New Revision: 235778 URL: http://svn.freebsd.org/changeset/base/235778 Log: Add a new geom class which allows to divide NAND Flash chip into partitions. Partitions are created based on data in dts file which are extracted and interpreted by sl

svn commit: r235777 - head/sys/kern

2012-05-22 Thread Hartmut Brandt
Author: harti Date: Tue May 22 07:23:41 2012 New Revision: 235777 URL: http://svn.freebsd.org/changeset/base/235777 Log: Make dumptid non-static. It is used by libkvm to detect whether this is a VNET-kernel or not. gcc used to put the static symbol into the symbol table, clang does not. This

svn commit: r235776 - head/sys/vm

2012-05-22 Thread Andrew Turner
Author: andrew Date: Tue May 22 07:04:23 2012 New Revision: 235776 URL: http://svn.freebsd.org/changeset/base/235776 Log: Fix booting on ARM. In PHYS_TO_VM_PAGE() when VM_PHYSSEG_DENSE is set the check if we are past the end of vm_page_array was incorrect causing it to return NULL. This