svn commit: r227874 - head/sys/kern

2011-11-23 Thread Mikolaj Golub
Author: trociny Date: Wed Nov 23 08:11:04 2011 New Revision: 227874 URL: http://svn.freebsd.org/changeset/base/227874 Log: Fix build without INVARIANTS. Discussed with: kib Modified: head/sys/kern/kern_proc.c Modified: head/sys/kern/kern_proc.c

svn commit: r227875 - head/sys/dev/netmap

2011-11-23 Thread Luigi Rizzo
Author: luigi Date: Wed Nov 23 09:45:48 2011 New Revision: 227875 URL: http://svn.freebsd.org/changeset/base/227875 Log: fix formatting warning using casts. The numbers involved are small and these are debug statements, so there is no reason to obfuscate the format string with PRIsomeKINDofI

svn commit: r227876 - in head/usr.sbin: acpi/acpidb bluetooth/bt3cfw boot0cfg

2011-11-23 Thread Kevin Lo
Author: kevlo Date: Wed Nov 23 10:27:18 2011 New Revision: 227876 URL: http://svn.freebsd.org/changeset/base/227876 Log: Plug fd leaks Modified: head/usr.sbin/acpi/acpidb/acpidb.c head/usr.sbin/bluetooth/bt3cfw/bt3cfw.c head/usr.sbin/boot0cfg/boot0cfg.c Modified: head/usr.sbin/acpi/acpid

Re: svn commit: r227812 - head/lib/libc/string

2011-11-23 Thread David Chisnall
On 22 Nov 2011, at 20:27, David Schultz wrote: > Benchmark or not, I think you'll have a very hard time finding a > single real program that routinely calls strcasecmp() with > identical pointers! I've seen this pattern very often. Often the linker is able to combine constant strings defined in

svn commit: r227878 - head/release/picobsd/build

2011-11-23 Thread Luigi Rizzo
Author: luigi Date: Wed Nov 23 12:05:39 2011 New Revision: 227878 URL: http://svn.freebsd.org/changeset/base/227878 Log: some tweaks to build picobsd for different architectures. Modified: head/release/picobsd/build/Makefile.conf head/release/picobsd/build/picobsd Modified: head/release/pi

Re: svn commit: r227797 - head/share/mk

2011-11-23 Thread Dag-Erling Smørgrav
Rui Paulo writes: > Dag-Erling Smørgrav writes: > > Sorry, my mind reader is broken at the moment, so you'll have to provide > > more information than that. > If I had more information, I would have provided it. I'm still > diagnosing the problem someone else created. I assume that you have, at

Re: svn commit: r227797 - head/share/mk

2011-11-23 Thread Dag-Erling Smørgrav
Peter Wemm writes: > However.. the first thing I noticed was this commit *adds* a .c.o: > rule in bsd.lib.mk, which replaces the default in sys.mk. > > The one in sys.mk has ctfconvert rules and the new one does not. At > face value, this alone looks suspicious. Ah, that's a mismerge. The patc

Re: svn commit: r227798 - in head: . lib/libpam lib/libpam/modules

2011-11-23 Thread Dag-Erling Smørgrav
Kostik Belousov writes: > Does plugin depend on the library which loaded it ? In other words, does > it reference the symbols from the library ? If yes, then plugin _must_ > have a dependency on the library recorded as DT_NEEDED. Yes. I would really, really prefer to find a solution that does no

Re: svn commit: r227791 - head/sys/netinet

2011-11-23 Thread Qing Li
> >  first I'd like to notice that we are speaking about obsoleted interfaces. > Yup, that's why you don't see me commenting on your other commits around ia_netmask stuff, do you ? > > Back to your comments: > > I have made a test case that proves, that usage of deleted address isn't > prevente

Re: svn commit: r227791 - head/sys/netinet

2011-11-23 Thread Gleb Smirnoff
On Wed, Nov 23, 2011 at 06:53:05AM -0800, Qing Li wrote: Q> >  first I'd like to notice that we are speaking about obsoleted interfaces. Q> Q> Yup, that's why you don't see me commenting on your other commits around Q> ia_netmask stuff, do you ? Oops, I didn't notice that one. Sorry! Can you plea

svn commit: r227893 - head/usr.sbin/mfiutil

2011-11-23 Thread Ed Maste
Author: emaste Date: Wed Nov 23 17:02:27 2011 New Revision: 227893 URL: http://svn.freebsd.org/changeset/base/227893 Log: Avoid double free creating a new RAID with invalid command line arguments. Submitted by: Xin Huang Reviewed by: rstone@ MFC after:1 week Modified: head/usr.

svn commit: r227901 - head/sbin/ipfw

2011-11-23 Thread Gleb Smirnoff
Author: glebius Date: Wed Nov 23 18:38:08 2011 New Revision: 227901 URL: http://svn.freebsd.org/changeset/base/227901 Log: Fix parsing of redirect_addr argument. PR: kern/162739 MFC after:3 days Modified: head/sbin/ipfw/nat.c Modified: head/sbin/ipfw/nat.c ==

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

2011-11-23 Thread Max Khon
Author: fjoe Date: Wed Nov 23 19:06:30 2011 New Revision: 227902 URL: http://svn.freebsd.org/changeset/base/227902 Log: - Remove unused old libdialog includes - Remove unused functions Modified: head/usr.sbin/sade/misc.c head/usr.sbin/sade/sade.h Modified: head/usr.sbin/sade/misc.c =

Re: svn commit: r227873 - head/usr.bin/procstat

2011-11-23 Thread mdf
On Tue, Nov 22, 2011 at 11:34 PM, Mikolaj Golub wrote: > Author: trociny > Date: Wed Nov 23 07:34:09 2011 > New Revision: 227873 > URL: http://svn.freebsd.org/changeset/base/227873 > > Log: >  Fix build, hopefully. > >  Reviewed by:  kib > > Modified: >  head/usr.bin/procstat/procstat_auxv.c > > M

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

2011-11-23 Thread Max Khon
Author: fjoe Date: Wed Nov 23 19:11:03 2011 New Revision: 227903 URL: http://svn.freebsd.org/changeset/base/227903 Log: Remove unused functions. Modified: head/usr.sbin/sade/misc.c head/usr.sbin/sade/sade.h Modified: head/usr.sbin/sade/misc.c ===

svn commit: r227906 - head/sys/dev/mii

2011-11-23 Thread Marius Strobl
Author: marius Date: Wed Nov 23 20:08:56 2011 New Revision: 227906 URL: http://svn.freebsd.org/changeset/base/227906 Log: Sync with NetBSD rev. 1.104 Obtained from:NetBSD Modified: head/sys/dev/mii/miidevs Modified: head/sys/dev/mii/miidevs ==

svn commit: r227907 - head/sys/dev/mii

2011-11-23 Thread Marius Strobl
Author: marius Date: Wed Nov 23 20:09:34 2011 New Revision: 227907 URL: http://svn.freebsd.org/changeset/base/227907 Log: Probe the BCM5785. Obtained from:NetBSD Modified: head/sys/dev/mii/brgphy.c Modified: head/sys/dev/mii/brgphy.c =

svn commit: r227908 - in head/sys/dev: dc mii usb/net xl

2011-11-23 Thread Marius Strobl
Author: marius Date: Wed Nov 23 20:27:26 2011 New Revision: 227908 URL: http://svn.freebsd.org/changeset/base/227908 Log: Use DEVMETHOD_END. Modified: head/sys/dev/dc/dcphy.c head/sys/dev/dc/pnphy.c head/sys/dev/mii/acphy.c head/sys/dev/mii/amphy.c head/sys/dev/mii/atphy.c head/sys/

svn commit: r227912 - in head/sys/dev: arcmsr hptiop hptmv hptrr

2011-11-23 Thread Marius Strobl
Author: marius Date: Wed Nov 23 21:43:51 2011 New Revision: 227912 URL: http://svn.freebsd.org/changeset/base/227912 Log: - Just use cam_calc_geometry(9) on newer version of FreeBSD rather than duplicating it. - In hptmv(4) and hptrr(4) use __FBSDID and DEVMETHOD_END. Modified: head/sys

svn commit: r227913 - head/sys/dev/mii

2011-11-23 Thread Marius Strobl
Author: marius Date: Wed Nov 23 22:05:44 2011 New Revision: 227913 URL: http://svn.freebsd.org/changeset/base/227913 Log: Wrap BCM5785 in #ifdef notyet for now. According to yongari@ there are issues probably needing workarounds in bge(4) when brgphy(4) handles this PHY. Letting ukphy(4) han

svn commit: r227914 - in head/sys: dev/re pci

2011-11-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 23 22:07:13 2011 New Revision: 227914 URL: http://svn.freebsd.org/changeset/base/227914 Log: Make sure to stop TX MAC before freeing queued TX frames. For RTL8111DP, check if the TX MAC is active by reading RL_GTXSTART register. For RTL8402/8168E-VL/8168F/8411,

svn commit: r227916 - in head/sys: dev/re pci

2011-11-23 Thread Pyun YongHyeon
Author: yongari Date: Wed Nov 23 23:29:18 2011 New Revision: 227916 URL: http://svn.freebsd.org/changeset/base/227916 Log: To save more power, switch to 10/100Mbps link when controller is put into suspend/shutdown. Old PCI controllers performed that operation in firmware but for RTL8111C or

svn commit: r227917 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:19:02 2011 New Revision: 227917 URL: http://svn.freebsd.org/changeset/base/227917 Log: Slim the default build down a little: * Disable the NFS client, it's not needed for booting off of flash. * Don't compile in softdep, snapshots, ufs acls and directory

svn commit: r227918 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:21:19 2011 New Revision: 227918 URL: http://svn.freebsd.org/changeset/base/227918 Log: Flip on these debugging options by default. This is -HEAD after all. Modified: head/sys/mips/conf/PB92 Modified: head/sys/mips/conf/PB92 =

svn commit: r227919 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:23:42 2011 New Revision: 227919 URL: http://svn.freebsd.org/changeset/base/227919 Log: Add a comment documenting where the WMAC hangs off of. At some point it would be nice to correctly update the bus glue to make this "correct", including having the DDR

Re: svn commit: r227369 - head/bin/sh

2011-11-23 Thread Bruce Evans
On Tue, 22 Nov 2011, Jilles Tjoelker wrote: On Mon, Nov 21, 2011 at 06:29:06PM +1100, Bruce Evans wrote: On Wed, 9 Nov 2011, Jilles Tjoelker wrote: On Wed, Nov 09, 2011 at 09:35:51AM +0100, Stefan Farfeleder wrote: Isn't the behaviour undefined too when you convert an out-of-range uintmax_t v

svn commit: r227920 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:34:04 2011 New Revision: 227920 URL: http://svn.freebsd.org/changeset/base/227920 Log: Compile in the right bits so the AR9130 WMAC support functions correctly. A previous commit disabled compiling the AR9130 support in the default HAL build in the kerne

svn commit: r227921 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:39:01 2011 New Revision: 227921 URL: http://svn.freebsd.org/changeset/base/227921 Log: Flesh out a geom_map setup, so the kernel can be squeezed _onto_ the device. The default flash layout gives only 1 megabyte for the kernel, gzipped. The uboot firmware

Re: svn commit: r227812 - head/lib/libc/string

2011-11-23 Thread Bruce Evans
On Tue, 22 Nov 2011, Eitan Adler wrote: Meta comment: I should have sent this patch to -hackers prior to seeking approval to commit. I learned my lesson and will seek wider review before making such changes in the future. On Tue, Nov 22, 2011 at 6:21 AM, Bruce Evans wrote: I saw your email abou

Re: svn commit: r227812 - head/lib/libc/string

2011-11-23 Thread Eitan Adler
On Thu, Nov 24, 2011 at 12:17 AM, Bruce Evans wrote: > Maybe my mail client (unmentionable) is messing up something.  This came > back with the quotes even more mangled than usual, especially for my > reply. Is this better? I use Gmail as my mailer, and I have a feeling it gets confused sometimes

svn commit: r227922 - head/sys/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 06:27:47 2011 New Revision: 227922 URL: http://svn.freebsd.org/changeset/base/227922 Log: Don't compile in the AR9130 embedded WMAC code into the HAL by default. This won't work unless AH_SUPPORT_AR9130 which can't be enabled - it breaks the other 11n chips

Re: svn commit: r227873 - head/usr.bin/procstat

2011-11-23 Thread Mikolaj Golub
On Wed, 23 Nov 2011 11:10:47 -0800 m...@freebsd.org wrote: >>                        printf(" AT_IGNORE=0x%lu", >> -                           (unsigned long)aux->a_un.a_val); >> +                           (unsigned long)auxv[i].a_un.a_val); m> I didn't see this before, but this gives very

svn commit: r227924 - in head/sys: conf mips/atheros

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:32:52 2011 New Revision: 227924 URL: http://svn.freebsd.org/changeset/base/227924 Log: Introduce a new (global, sorry!) option which controls whether the ar71xx platform code should assume a uboot or redboot environment. The current code gets very confus

svn commit: r227925 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:33:41 2011 New Revision: 227925 URL: http://svn.freebsd.org/changeset/base/227925 Log: Flip on AR71XX_ENV_UBOOT so the environment variables are properly processed. (Which is to say they're currently ignored.) Modified: head/sys/mips/conf/TP-WN1043ND Modi

svn commit: r227926 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:37:19 2011 New Revision: 227926 URL: http://svn.freebsd.org/changeset/base/227926 Log: Now that I've brought up FreeBSD via flash, I've discovered that the second-last 64k seems to be the default firmware board configuration area. Since I have no idea