svn commit: r211167 - head/sys/mips/mips

2010-08-10 Thread Jayachandran C.
Author: jchandra Date: Wed Aug 11 06:43:14 2010 New Revision: 211167 URL: http://svn.freebsd.org/changeset/base/211167 Log: Fix compilation when DDB disabled. Adds 'ifdef DDB' around DB_SHOW_COMMAND definitions. Modified: head/sys/mips/mips/pmap.c Modified: head/sys/mips/mips/pmap.c ==

svn commit: r211165 - stable/8/sys/conf

2010-08-10 Thread Bernhard Schmidt
Author: bschmidt Date: Wed Aug 11 06:29:40 2010 New Revision: 211165 URL: http://svn.freebsd.org/changeset/base/211165 Log: MFC r211063: License ACK is not required for the wpifw module nor when building it into the kernel. PR: conf/148758 Submitted by: Joe Talbott http://li

svn commit: r211160 - in stable/8/sys/fs: nfs nfsclient

2010-08-10 Thread Rick Macklem
Author: rmacklem Date: Wed Aug 11 03:08:03 2010 New Revision: 211160 URL: http://svn.freebsd.org/changeset/base/211160 Log: MFC: r210786 Modify the return value for nfscl_mustflush() from boolean_t, which I mistakenly thought was correct w.r.t. style(9), back to int and add the checks for

svn commit: r211159 - in head: libexec/rtld-elf/mips sys/mips/include

2010-08-10 Thread Neel Natu
Author: neel Date: Wed Aug 11 02:28:39 2010 New Revision: 211159 URL: http://svn.freebsd.org/changeset/base/211159 Log: Add parentheses around the argument 'x' used in the __bswapXX(x) macros. Revert r211130 in favor of this more general fix. This fixes a compilation error for mips 64-bi

svn commit: r211158 - head/sys/dev/cfe

2010-08-10 Thread Neel Natu
Author: neel Date: Wed Aug 11 02:13:50 2010 New Revision: 211158 URL: http://svn.freebsd.org/changeset/base/211158 Log: Start using the 'init_static_kenv()' API provided by r198561 to initialize CFE environment variables. Modified: head/sys/dev/cfe/cfe_env.c Modified: head/sys/dev/cfe/cfe_

svn commit: r211157 - in head/sys: modules modules/if_carp net netinet netinet6

2010-08-10 Thread Will Andrews
Author: will Date: Wed Aug 11 00:51:50 2010 New Revision: 211157 URL: http://svn.freebsd.org/changeset/base/211157 Log: Allow carp(4) to be loaded as a kernel module. Follow precedent set by bridge(4), lagg(4) etc. and make use of function pointers and pf_proto_register() to hook carp into

svn commit: r211156 - in head/tools/regression/fstest/tests: mkdir open rename unlink

2010-08-10 Thread Pawel Jakub Dawidek
Author: pjd Date: Tue Aug 10 22:57:43 2010 New Revision: 211156 URL: http://svn.freebsd.org/changeset/base/211156 Log: More tests, mostly related to devices and sockets. Modified: head/tools/regression/fstest/tests/mkdir/10.t head/tools/regression/fstest/tests/open/22.t head/tools/regress

svn commit: r211155 - in head: bin/sh tools/regression/bin/sh/expansion

2010-08-10 Thread Jilles Tjoelker
Author: jilles Date: Tue Aug 10 22:45:59 2010 New Revision: 211155 URL: http://svn.freebsd.org/changeset/base/211155 Log: sh: Fix heap-based buffer overflow in pathname generation. The buffer for generated pathnames could be too small in some cases. It happened to be always at least PATH_

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Jilles Tjoelker
On Wed, Aug 11, 2010 at 07:05:53AM +1000, Bruce Evans wrote: > On Tue, 10 Aug 2010, M. Warner Losh wrote: > > > In message: <86sk2m1hsj@ds4.des.no> > >Dag-Erling Sm�rgrav writes: > > : "M. Warner Losh" writes: > > : > /* > > : > * Macros to cast a struct sockaddr, or parts there

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Bruce Evans
On Tue, 10 Aug 2010, M. Warner Losh wrote: In message: <86sk2m1hsj@ds4.des.no> Dag-Erling Sm?rgrav writes: : "M. Warner Losh" writes: : > /* : > * Macros to cast a struct sockaddr, or parts thereof. : > * On architectures with strict alignment requirements, the compiler : > *

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Dag-Erling Smørgrav
"M. Warner Losh" writes: > Dag-Erling Smørgrav writes: > > "M. Warner Losh" writes: > > > /* > > > * Macros to cast a struct sockaddr, or parts thereof. > > > * On architectures with strict alignment requirements, the compiler > > > * can bogusly warn about alignment problems since its static

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <201008101956.o7aju5ms044...@haluter.fromme.com> Oliver Fromme writes: : : M. Warner Losh wrote: : > /* : > * Macros to cast a struct sockaddr, or parts thereof. struct : > * sockaddr's alginment is loose to later be cast to a sockaddr_in or : > * sockaddr_in6. On

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Oliver Fromme
M. Warner Losh wrote: > /* > * Macros to cast a struct sockaddr, or parts thereof. struct > * sockaddr's alginment is loose to later be cast to a sockaddr_in or > * sockaddr_in6. On architectures with strict alignment requirements, > * this leads to compiler warnings because the compile

svn commit: r211154 - stable/8/usr.sbin/sysinstall

2010-08-10 Thread Gabor Kovesdan
Author: gabor Date: Tue Aug 10 19:50:51 2010 New Revision: 211154 URL: http://svn.freebsd.org/changeset/base/211154 Log: MFC r210255: - Add Latinamerican keymaps to sysinstall's Makefile so that it can find them [1] - While here, also add a missing Spanish entry PR:

svn commit: r211153 - in head/sys/dev/usb: . serial

2010-08-10 Thread Gavin Atkinson
Author: gavin Date: Tue Aug 10 19:13:11 2010 New Revision: 211153 URL: http://svn.freebsd.org/changeset/base/211153 Log: Now that the uplcom(4) driver can autodetect the chipset type, sync the list of devices supported by uplcom(4) with the following sources: NetBSD src/sys/dev/usb/uplco

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <11606.1281464...@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <20100810.115457.1126759349893144516@bsdimp.com>, "M. Warner Los : h" writes: : >In message: <20100811.023235.13138059@allbsd.org> : >Hiroki Sato writes: : >: Oliver Fromme

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Poul-Henning Kamp
In message <20100810.115457.1126759349893144516@bsdimp.com>, "M. Warner Los h" writes: >In message: <20100811.023235.13138059@allbsd.org> >Hiroki Sato writes: >: Oliver Fromme wrote >: in <201008101623.o7agns7i042...@haluter.fromme.com>: >: >: ol> -static int validate(

svn commit: r211151 - in head/sys: amd64/amd64 i386/i386

2010-08-10 Thread Attilio Rao
Author: attilio Date: Tue Aug 10 18:29:39 2010 New Revision: 211151 URL: http://svn.freebsd.org/changeset/base/211151 Log: Fix a typo due to a stale version of the patch. Reported by: gianni, rdivacky MFC after:1 month X-MFC:211149 Modified: head/sys/amd64/amd64/

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <86sk2m1hsj@ds4.des.no> Dag-Erling Smørgrav writes: : "M. Warner Losh" writes: : > /* : > * Macros to cast a struct sockaddr, or parts thereof. : > * On architectures with strict alignment requirements, the compiler : > * can bogusly warn about alignment problems si

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <20100811.023235.13138059@allbsd.org> Hiroki Sato writes: : Oliver Fromme wrote : in <201008101623.o7agns7i042...@haluter.fromme.com>: : : ol> -static int validate(struct sockaddr *, const char *); : ol> -static void unmapped(struct sockaddr *); : ol> +st

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Dag-Erling Smørgrav
Hiroki Sato writes: > Why is s/struct sockaddr */struct sockaddr_storage */ needed here? Alignment. That's what this entire thread is about. DES -- Dag-Erling Smørgrav - d...@des.no ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/ma

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Dag-Erling Smørgrav
"M. Warner Losh" writes: > /* > * Macros to cast a struct sockaddr, or parts thereof. > * On architectures with strict alignment requirements, the compiler > * can bogusly warn about alignment problems since its static analysis > * is insufficient for it to know that with the APIs used, there

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <201008101623.o7agns7i042...@haluter.fromme.com> Oliver Fromme writes: : : M. Warner Losh wrote: : > In message: <201008101313.o7addhye040...@haluter.fromme.com> : > Oliver Fromme writes: : > : M. Warner Losh wrote: : > : > The casting that syslogd does w

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Hiroki Sato
Oliver Fromme wrote in <201008101623.o7agns7i042...@haluter.fromme.com>: ol> -static int validate(struct sockaddr *, const char *); ol> -static voidunmapped(struct sockaddr *); ol> +static int validate(struct sockaddr_storage *, const char *); ol> +static voidunmapped(struct soc

Re: svn commit: r211149 - in head/sys: amd64/amd64 i386/i386

2010-08-10 Thread Attilio Rao
2010/8/10 Attilio Rao : > Author: attilio > Date: Tue Aug 10 16:14:10 2010 > New Revision: 211149 > URL: http://svn.freebsd.org/changeset/base/211149 > > Log: >  Fix some places that may use cpumask_t while they still use 'int' types. >  While there, also fix some places assuming cpu type is 'int'

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Oliver Fromme
M. Warner Losh wrote: > In message: <201008101313.o7addhye040...@haluter.fromme.com> > Oliver Fromme writes: > : M. Warner Losh wrote: > : > The casting that syslogd does with struct sockaddrFOO is what triggers > : > it. I'm not sure how to fix it, so there's about 6 or 8 pro

Re: svn commit: r211149 - in head/sys: amd64/amd64 i386/i386

2010-08-10 Thread Attilio Rao
2010/8/10 Attilio Rao : > Author: attilio > Date: Tue Aug 10 16:14:10 2010 > New Revision: 211149 > URL: http://svn.freebsd.org/changeset/base/211149 > > Log: >  Fix some places that may use cpumask_t while they still use 'int' types. >  While there, also fix some places assuming cpu type is 'int'

svn commit: r211149 - in head/sys: amd64/amd64 i386/i386

2010-08-10 Thread Attilio Rao
Author: attilio Date: Tue Aug 10 16:14:10 2010 New Revision: 211149 URL: http://svn.freebsd.org/changeset/base/211149 Log: Fix some places that may use cpumask_t while they still use 'int' types. While there, also fix some places assuming cpu type is 'int' while u_int is really meant. N

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread M. Warner Losh
In message: <201008101313.o7addhye040...@haluter.fromme.com> Oliver Fromme writes: : M. Warner Losh wrote: : > The casting that syslogd does with struct sockaddrFOO is what triggers : > it. I'm not sure how to fix it, so there's about 6 or 8 programs in : > the tree that have WARNS

svn commit: r211148 - head/sys/compat/x86bios

2010-08-10 Thread Jung-uk Kim
Author: jkim Date: Tue Aug 10 15:22:48 2010 New Revision: 211148 URL: http://svn.freebsd.org/changeset/base/211148 Log: Place spinlock_enter() and spinlock_exit() just around X86EMU calls. Modified: head/sys/compat/x86bios/x86bios.c Modified: head/sys/compat/x86bios/x86bios.c ===

Re: svn commit: r211130 - head/libexec/rtld-elf/mips

2010-08-10 Thread Neel Natu
Hi, On Tue, Aug 10, 2010 at 5:00 AM, Bruce Evans wrote: > On Tue, 10 Aug 2010, Stefan Farfeleder wrote: > >> On Tue, Aug 10, 2010 at 12:55:38PM +0530, Jayachandran C. wrote: >>> >>> I think there is a problem in  sys/mips/include/_endian.h >>> -- >>> #define __bswap16(x)    (__uint16_t)(__is_cons

svn commit: r211146 - head

2010-08-10 Thread Adrian Chadd
Author: adrian Date: Tue Aug 10 14:36:20 2010 New Revision: 211146 URL: http://svn.freebsd.org/changeset/base/211146 Log: crunchgen now works for mips - so restore building /rescue for it. Modified: head/Makefile.mips Modified: head/Makefile.mips =

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Oliver Fromme
M. Warner Losh wrote: > The casting that syslogd does with struct sockaddrFOO is what triggers > it. I'm not sure how to fix it, so there's about 6 or 8 programs in > the tree that have WARNS lowered to 3 because of it. I've given it try, please see the patch below. This is not really pretty,

svn commit: r211142 - head/etc/periodic/daily

2010-08-10 Thread Oliver Fromme
Author: olli Date: Tue Aug 10 12:58:44 2010 New Revision: 211142 URL: http://svn.freebsd.org/changeset/base/211142 Log: Connect the new script 490.status-pkg-changes (see r210863) to the build, so it gets actually installed. Approved by: des (mentor) MFC after:17 days Modified:

Re: svn commit: r211130 - head/libexec/rtld-elf/mips

2010-08-10 Thread Bruce Evans
On Tue, 10 Aug 2010, Stefan Farfeleder wrote: On Tue, Aug 10, 2010 at 12:55:38PM +0530, Jayachandran C. wrote: I think there is a problem in sys/mips/include/_endian.h -- #define __bswap16(x)(__uint16_t)(__is_constant(x) ? \ __bswap16_const((__uint16_t)x) : __bswap16_var(

Re: svn commit: r211023 - head/usr.sbin/syslogd

2010-08-10 Thread Bruce Evans
On Mon, 9 Aug 2010, M. Warner Losh wrote: In message: <86tyn4tbuc@ds4.des.no> Dag-Erling Sm?rgrav writes: : Jilles Tjoelker writes: : > In other cases, I propose adding a cast to void * in between, like : > (struct sockaddr_in *)(void *)ai->ai_addr : : Better to cast through u

Re: svn commit: r208165 - in head/sys: kern mips/conf mips/include mips/mips mips/rmi mips/rmi/dev/xlr

2010-08-10 Thread Bruce Evans
On Mon, 9 Aug 2010, M. Warner Losh wrote: In message: "Jayachandran C." writes: : > Actually the 32 bits limit is well aware and acknowledged in cpumask_t. : > While it is true that it should be an 'opaque' type, in reality it is : > not. The maximum limit of 32 CPUs is a reality du

svn commit: r211141 - head/etc/periodic/security

2010-08-10 Thread Gabor Kovesdan
Author: gabor Date: Tue Aug 10 11:15:17 2010 New Revision: 211141 URL: http://svn.freebsd.org/changeset/base/211141 Log: - Fixes to the chkportsum script to handle better some special cases, like spaces in filename Submitted by: Alex Kozlov Approved by: delphij (mentor) Modified:

svn commit: r211140 - stable/8/sys/geom/sched

2010-08-10 Thread Andrey V. Elsukov
Author: ae Date: Tue Aug 10 11:02:55 2010 New Revision: 211140 URL: http://svn.freebsd.org/changeset/base/211140 Log: MFC r210795: Check that gsp is not NULL before access. It can be NULL for some cases. Approved by: kib (mentor) Modified: stable/8/sys/geom/sched/g_sched.c Di

svn commit: r211139 - stable/8/sys/net

2010-08-10 Thread Konstantin Belousov
Author: kib Date: Tue Aug 10 10:17:01 2010 New Revision: 211139 URL: http://svn.freebsd.org/changeset/base/211139 Log: MFC r210805: Properly set ifi_datalen for compat32 struct if_data32. PR: kern/149240 Modified: stable/8/sys/net/rtsock.c Directory Properties: stable/8/sys/ (pro

svn commit: r211138 - stable/8/sys/compat/freebsd32

2010-08-10 Thread Konstantin Belousov
Author: kib Date: Tue Aug 10 10:15:34 2010 New Revision: 211138 URL: http://svn.freebsd.org/changeset/base/211138 Log: MFC r210796: When compat32 recvmsg(2) does not need to copy out control messages, set msg_controllen to 0. PR: kern/149227 Modified: stable/8/sys/compat/freebsd32/

svn commit: r211137 - head/usr.sbin/crunch/crunchide

2010-08-10 Thread Adrian Chadd
Author: adrian Date: Tue Aug 10 09:24:19 2010 New Revision: 211137 URL: http://svn.freebsd.org/changeset/base/211137 Log: Port over changes to the crunch symbol hiding method from NetBSD. The older symbol hiding method breaks for MIPS. This implements symbol hiding through renaming to a s

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

2010-08-10 Thread Adrian Chadd
Author: adrian Date: Tue Aug 10 07:56:56 2010 New Revision: 211136 URL: http://svn.freebsd.org/changeset/base/211136 Log: Don't delay updating the longcal timer - instead, update the longcal flag immediately so it's only set once per longcal interval. Without this, the current AR5416 code

svn commit: r211135 - head/sys/dev/ath/ath_hal/ar5416

2010-08-10 Thread Adrian Chadd
Author: adrian Date: Tue Aug 10 07:48:13 2010 New Revision: 211135 URL: http://svn.freebsd.org/changeset/base/211135 Log: Bring over ar5416 inivals from Linux-2.6.34. Reviewed by: rpaulo@ Obtained from:Linux Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416.ini Modified: head/

svn commit: r211134 - head/sys/dev/ath/ath_hal/ar5416

2010-08-10 Thread Adrian Chadd
Author: adrian Date: Tue Aug 10 07:47:43 2010 New Revision: 211134 URL: http://svn.freebsd.org/changeset/base/211134 Log: Re-format the ar5416 inivals to be consistent with what Linux ath9k uses. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416.ini Modified: head/sys/dev/ath/ath_hal/ar5416

Re: svn commit: r211130 - head/libexec/rtld-elf/mips

2010-08-10 Thread Stefan Farfeleder
On Tue, Aug 10, 2010 at 12:55:38PM +0530, Jayachandran C. wrote: > > I think there is a problem in sys/mips/include/_endian.h > -- > #define __bswap16(x)(__uint16_t)(__is_constant(x) ? \ > __bswap16_const((__uint16_t)x) : __bswap16_var((__uint16_t)x)) > #define __bswap32(x)

Re: svn commit: r211130 - head/libexec/rtld-elf/mips

2010-08-10 Thread Jayachandran C.
On Tue, Aug 10, 2010 at 12:12 PM, Neel Natu wrote: > Hi Stefan, > > On Mon, Aug 9, 2010 at 11:28 PM, Stefan Farfeleder > wrote: >> On Tue, Aug 10, 2010 at 05:15:35AM +, Neel Natu wrote: >>> Author: neel >>> Date: Tue Aug 10 05:15:35 2010 >>> New Revision: 211130 >>> URL: http://svn.freebsd.o

Re: svn commit: r211130 - head/libexec/rtld-elf/mips

2010-08-10 Thread Neel Natu
Hi Stefan, On Mon, Aug 9, 2010 at 11:28 PM, Stefan Farfeleder wrote: > On Tue, Aug 10, 2010 at 05:15:35AM +, Neel Natu wrote: >> Author: neel >> Date: Tue Aug 10 05:15:35 2010 >> New Revision: 211130 >> URL: http://svn.freebsd.org/changeset/base/211130 >> >> Log: >>   Fix compilation error fo