svn commit: r297443 - in head/sys: dev/nctgpio modules modules/nctgpio

2016-03-30 Thread Adrian Chadd
Author: adrian Date: Thu Mar 31 04:57:38 2016 New Revision: 297443 URL: https://svnweb.freebsd.org/changeset/base/297443 Log: Add support for the Nuvoton NCT5104D. Make it compile only for i386/amd64 for now as it's been tested there. It's quite possible it'll show up elsewhere and we

svn commit: r297442 - head/targets/pseudo/hosttools

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Thu Mar 31 03:04:26 2016 New Revision: 297442 URL: https://svnweb.freebsd.org/changeset/base/297442 Log: hosttools: Trim unneeded directories. These should only be build tools that are in various Makefile.depend as host dependencies. Anything toolchain related is

svn commit: r297441 - head/sbin/restore

2016-03-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Mar 31 02:01:11 2016 New Revision: 297441 URL: https://svnweb.freebsd.org/changeset/base/297441 Log: restore(8): fix use of uninitialized value. Prevent uninitialized use of scalar newvol when jumping to gethdr. CID: 1006491 Modified: head/sbin/restore/tape.c

svn commit: r297440 - stable/10/lib/libc/locale

2016-03-30 Thread Pedro F. Giffuni
Author: pfg Date: Thu Mar 31 01:36:50 2016 New Revision: 297440 URL: https://svnweb.freebsd.org/changeset/base/297440 Log: MFC r296278: mbtowc(3): set errno to EILSEQ if an incomplete character is passed. According to POSIX, The mbtowc() function shall fail if: [EILSEQ] An invalid

svn commit: r297439 - in head/sys: netinet netinet6

2016-03-30 Thread George V. Neville-Neil
Author: gnn Date: Thu Mar 31 00:53:23 2016 New Revision: 297439 URL: https://svnweb.freebsd.org/changeset/base/297439 Log: Unbreak the RSS/PCBGROUp build. Modified: head/sys/netinet/in_pcbgroup.c head/sys/netinet6/in6_pcbgroup.c Modified: head/sys/netinet/in_pcbgroup.c

svn commit: r297438 - head/share/mk

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Thu Mar 31 00:26:40 2016 New Revision: 297438 URL: https://svnweb.freebsd.org/changeset/base/297438 Log: DIRDEPS_BUILD: Don't reset OBJROOT in sub-makes. MAKEOBJDIRPREFIX is set to blank and exported from MAKELEVEL0 along with OBJROOT exported. In sub-makes

svn commit: r297437 - head/share/man/man5

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 23:56:43 2016 New Revision: 297437 URL: https://svnweb.freebsd.org/changeset/base/297437 Log: Regenerate Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5

svn commit: r297436 - head/tools/build/options

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 23:53:12 2016 New Revision: 297436 URL: https://svnweb.freebsd.org/changeset/base/297436 Log: Remove FAST_DEPEND reference missed in r297434. Modified: head/tools/build/options/WITH_CCACHE_BUILD Modified: head/tools/build/options/WITH_CCACHE_BUILD

svn commit: r297434 - in head: . gnu/lib/csu kerberos5 release/picobsd/build secure share/man/man5 share/man/man7 share/mk sys/conf sys/modules/pflog sys/modules/pfsync sys/modules/wtap tools tools...

2016-03-30 Thread Bryan Drewery
r297433) +++ head/Makefile.libcompat Wed Mar 30 23:50:23 2016(r297434) @@ -148,7 +148,7 @@ build${libcompat}: .PHONY ${_+_}cd ${.CURDIR}; \ ${LIBCOMPATWMAKE} -f Makefile.inc1 -DNO_FSCHG libraries .if ${libcompat} == "32" -.for _t in obj depend all +.for _t in ob

svn commit: r297435 - head

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 23:50:29 2016 New Revision: 297435 URL: https://svnweb.freebsd.org/changeset/base/297435 Log: Fix the external GCC build after r297271 by setting -L /usr/lib. GCC does add /usr/lib to the library search path but it comes after /usr/local/lib which can

svn commit: r297433 - head/targets

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 22:26:14 2016 New Revision: 297433 URL: https://svnweb.freebsd.org/changeset/base/297433 Log: show-valid-targets: Indent each target 2 spaces. Sponsored by: EMC / Isilon Storage Division Modified: head/targets/Makefile.xtras Modified:

svn commit: r297432 - in stable: 10/include 9/include

2016-03-30 Thread Dimitry Andric
Author: dim Date: Wed Mar 30 22:12:07 2016 New Revision: 297432 URL: https://svnweb.freebsd.org/changeset/base/297432 Log: MFC r297212: For C++, expose long long types and functions (lldiv_t, llabs, lldiv, etc) in stdlib.h. These will be needed for newer versions of libc++, which uses

svn commit: r297432 - in stable: 10/include 9/include

2016-03-30 Thread Dimitry Andric
Author: dim Date: Wed Mar 30 22:12:07 2016 New Revision: 297432 URL: https://svnweb.freebsd.org/changeset/base/297432 Log: MFC r297212: For C++, expose long long types and functions (lldiv_t, llabs, lldiv, etc) in stdlib.h. These will be needed for newer versions of libc++, which uses

svn commit: r297431 - head/share/mk

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 21:31:34 2016 New Revision: 297431 URL: https://svnweb.freebsd.org/changeset/base/297431 Log: Remove redundant code imported into dirdeps.mk in r290956. Sponsored by: EMC / Isilon Storage Division Modified: head/share/mk/local.dirdeps.mk Modified:

svn commit: r297430 - head/targets

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 18:55:58 2016 New Revision: 297430 URL: https://svnweb.freebsd.org/changeset/base/297430 Log: show-valid-targets: Organize all targets by the all_machine_list. Sponsored by: EMC / Isilon Storage Division Modified: head/targets/Makefile.xtras Modified:

Re: svn commit: r297426 - in head/sys: arm/conf boot/fdt/dts/arm

2016-03-30 Thread Emmanuel Vadot
Hi Luiz, Why setting the pins to SPI mode here ? This should be done in your own board dts file if you need it (unless there is some spi chip on the BBB that I don't know of). This reduce the number of GPIOs available on the headers. Thanks, On Wed, 30 Mar 2016 17:32:15 + (UTC) Luiz

svn commit: r297429 - stable/10/sys/netpfil/pf

2016-03-30 Thread Kristof Provost
Author: kp Date: Wed Mar 30 18:45:18 2016 New Revision: 297429 URL: https://svnweb.freebsd.org/changeset/base/297429 Log: MFC 296932: pf: Improve forwarding detection When we guess the nature of the outbound packet (output vs. forwarding) we need to take bridges into account. When

svn commit: r297428 - head/targets/pseudo/hosttools

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 18:40:09 2016 New Revision: 297428 URL: https://svnweb.freebsd.org/changeset/base/297428 Log: Move hosttools to Makefile.depend.host so it shows under host targets in show-valid-targets. Sponsored by: EMC / Isilon Storage Division Added:

svn commit: r297427 - head/targets

2016-03-30 Thread Bryan Drewery
Author: bdrewery Date: Wed Mar 30 18:39:41 2016 New Revision: 297427 URL: https://svnweb.freebsd.org/changeset/base/297427 Log: show-valid-targets: Show host targets and also order all of the targets. Sponsored by: EMC / Isilon Storage Division Modified: head/targets/Makefile.xtras

svn commit: r297426 - in head/sys: arm/conf boot/fdt/dts/arm

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:32:14 2016 New Revision: 297426 URL: https://svnweb.freebsd.org/changeset/base/297426 Log: Enable SPI1 on Beaglebone Black. SPI1 was chosen because SPI0 shares the gpio pins with I2C1. Sponsored by: Rubicon Communications (Netgate) Modified:

Re: svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-30 Thread Nathan Whitehorn
I think it should be pci aim | fdt, just like the previous line when the files lived in sys/powerpc. To conf, that evaluates as pci && (aim || fdt). -Nathan On 03/30/16 08:55, Zbigniew Bodek wrote: Thank you Nathan. Please check out new patch in the attachment. Best regards zbb 2016-03-30

svn commit: r297425 - head/sys/boot/fdt/dts/arm

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:18:49 2016 New Revision: 297425 URL: https://svnweb.freebsd.org/changeset/base/297425 Log: Use the AM33XX_IOPAD() MACRO which is easier to read (uses the same offset of TRM). While here remove i2c2_pins, it is already defined in am335x-bone-common.dtsi.

svn commit: r297424 - head/sys/compat/linux

2016-03-30 Thread Jamie Gritton
Author: jamie Date: Wed Mar 30 17:05:04 2016 New Revision: 297424 URL: https://svnweb.freebsd.org/changeset/base/297424 Log: Use osd_reserve / osd_jail_set_reserved, which is known to succeed. Also don't work around nonexistent osd_register failure. Modified:

svn commit: r297423 - head/sys/dev/flash

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 17:00:33 2016 New Revision: 297423 URL: https://svnweb.freebsd.org/changeset/base/297423 Log: Add basic FDT support for the mx25l SPI flash. Sponsored by: Rubicon Communications (Netgate) Modified: head/sys/dev/flash/mx25l.c Modified:

svn commit: r297422 - in head: share/man/man9 sys/kern sys/sys

2016-03-30 Thread Jamie Gritton
Author: jamie Date: Wed Mar 30 16:57:28 2016 New Revision: 297422 URL: https://svnweb.freebsd.org/changeset/base/297422 Log: Add osd_reserve() and osd_set_reserved(), which allow M_WAITOK allocation of an OSD array, Modified: head/share/man/man9/osd.9 head/sys/kern/kern_osd.c

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

2016-03-30 Thread Alexander Motin
Author: mav Date: Wed Mar 30 16:54:18 2016 New Revision: 297421 URL: https://svnweb.freebsd.org/changeset/base/297421 Log: Plug open count leak on zvol rename. MFC after:2 weeks Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Modified:

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

2016-03-30 Thread Alexander Motin
Author: mav Date: Wed Mar 30 16:48:57 2016 New Revision: 297420 URL: https://svnweb.freebsd.org/changeset/base/297420 Log: Switch from using make_dev_p() to make_dev_s() to close races. Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Modified:

svn commit: r297419 - head/sys/arm/ti

2016-03-30 Thread Luiz Otavio O Souza
Author: loos Date: Wed Mar 30 16:26:00 2016 New Revision: 297419 URL: https://svnweb.freebsd.org/changeset/base/297419 Log: Bump up the read and write timeouts. The old value was too small for low speed transfers. Sponsored by: Rubicon Communications (Netgate) Modified:

Re: svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-30 Thread Zbigniew Bodek
Thank you Nathan. Please check out new patch in the attachment. Best regards zbb 2016-03-30 16:33 GMT+02:00 Nathan Whitehorn : > PowerPC (and SPARC) can have real OFW without FDT support. Adding FDT to > LINT is the wrong solution: rather, it should switch on fdt | aim

svn commit: r297418 - in head/lib/libc: arm mips powerpc powerpc64 sparc64

2016-03-30 Thread Ed Maste
Author: emaste Date: Wed Mar 30 14:42:09 2016 New Revision: 297418 URL: https://svnweb.freebsd.org/changeset/base/297418 Log: libc: stop exporting cerror i386 stopped exporting .cerror in r240152, and likewise for amd64 in r240178. It is not used by other libraries on any platform, so

Re: svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-30 Thread Nathan Whitehorn
PowerPC (and SPARC) can have real OFW without FDT support. Adding FDT to LINT is the wrong solution: rather, it should switch on fdt | aim like the rest of the Open Firmware code. -Nathan On 03/30/16 01:54, Zbigniew Bodek wrote: Hello Ed, Please check out the attached patch. For powerpc we

svn commit: r297417 - head/lib/libc/stdio

2016-03-30 Thread Pedro F. Giffuni
Author: pfg Date: Wed Mar 30 13:26:35 2016 New Revision: 297417 URL: https://svnweb.freebsd.org/changeset/base/297417 Log: freopen(3): prevent uninitialized errno. Revert completley r297408 (and r297407): this ends up touching errno, which we are not allowed to do. Pointed out by:

Re: svn commit: r297407 - head/lib/libc/stdio

2016-03-30 Thread Andrey Chernov
On 30.03.2016 4:32, Pedro F. Giffuni wrote: > --- head/lib/libc/stdio/freopen.c Wed Mar 30 01:08:08 2016 > (r297406) > +++ head/lib/libc/stdio/freopen.c Wed Mar 30 01:32:08 2016 > (r297407) > @@ -66,7 +66,8 @@ freopen(const char * __restrict file, co > (void)

Re: svn commit: r297408 - head/lib/libc/stdio

2016-03-30 Thread Andrey Chernov
On 30.03.2016 9:13, Pedro F. Giffuni wrote: >*/ > + sverrno = 0; > if (file == NULL) { It introduces the bug of touching errno. Previous code does it right because 'goto finish;' can't happen with (f < 0) where errno is restored later. The whole errno code is complex here for

svn commit: r297416 - in head: share/man/man4 sys/dev/usb sys/dev/usb/video

2016-03-30 Thread Hans Petter Selasky
Author: hselasky Date: Wed Mar 30 10:05:52 2016 New Revision: 297416 URL: https://svnweb.freebsd.org/changeset/base/297416 Log: Add new USB ID to UDL driver. Submitted by: Matthias Petermann PR: 201084 Modified: head/share/man/man4/udl.4

Re: svn commit: r297392 - in head/sys: conf dev/ofw powerpc/mpc85xx powerpc/powermac powerpc/pseries

2016-03-30 Thread Zbigniew Bodek
Hello Ed, Please check out the attached patch. For powerpc we should compile-in ofwpci.c regardless of FDT option. However, it seems that LINT for powerpc does not have FDT. What do you thing about adding it (as can be seen in the attached patch)?. This would be done in a separate commit. Best

Re: svn commit: r297408 - head/lib/libc/stdio

2016-03-30 Thread Bruce Evans
On Wed, 30 Mar 2016, Pedro F. Giffuni wrote: Log: freopen(3): prevent uninitialized errno. Revert r297407 and redo it cleanly. This might need a few more commits to do it correctly. Modified: head/lib/libc/stdio/freopen.c

svn commit: r297409 - head/sys/dev/bwn

2016-03-30 Thread Adrian Chadd
Author: adrian Date: Wed Mar 30 06:48:09 2016 New Revision: 297409 URL: https://svnweb.freebsd.org/changeset/base/297409 Log: [bwn] fix time_before -> ieee80211_time_before() Noticed by: Jia-Shiun Li Modified: head/sys/dev/bwn/if_bwn.c Modified:

svn commit: r297408 - head/lib/libc/stdio

2016-03-30 Thread Pedro F. Giffuni
Author: pfg Date: Wed Mar 30 06:13:58 2016 New Revision: 297408 URL: https://svnweb.freebsd.org/changeset/base/297408 Log: freopen(3): prevent uninitialized errno. Revert r297407 and redo it cleanly. Pointed out by: Jukka A. Ukkonen CID: 1018720 MFC after:1 week