Re: svn commit: r299735 - head/lib/libc/sys

2016-05-14 Thread Justin Hibbits
On May 14, 2016 03:36, "Konstantin Belousov" wrote: > > Author: kib > Date: Sat May 14 08:36:37 2016 > New Revision: 299735 > URL: https://svnweb.freebsd.org/changeset/base/299735 > > Log: > Document the non-obsoleted kernel interfaces used by libthr. > > Reviewed by:

svn commit: r299744 - head/sys/netinet

2016-05-14 Thread Michael Tuexen
Author: tuexen Date: Sat May 14 13:44:49 2016 New Revision: 299744 URL: https://svnweb.freebsd.org/changeset/base/299744 Log: Fix a locking bug which only shows up on Mac OS X. MFC after: 1 week Modified: head/sys/netinet/sctp_indata.c Modified: head/sys/netinet/sctp_indata.c

svn commit: r299745 - head/sys/dev/iicbus/twsi

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 18:02:47 2016 New Revision: 299745 URL: https://svnweb.freebsd.org/changeset/base/299745 Log: Add allwinner,sun8i-a83t-i2c to the list of compatible devices. Modified: head/sys/dev/iicbus/twsi/a10_twsi.c Modified: head/sys/dev/iicbus/twsi/a10_twsi.c

Re: svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-14 Thread Hans Petter Selasky
On 05/13/16 20:43, John Baldwin wrote: On Friday, May 13, 2016 10:10:44 AM Hans Petter Selasky wrote: @@ -190,6 +258,7 @@ #definesmp_processor_id() PCPU_GET(cpuid) #definenum_possible_cpus() mp_ncpus #definenum_online_cpus() mp_ncpus +#define

svn commit: r299748 - in head/sys: boot/fdt/dts/arm modules/dtb/allwinner

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 18:47:36 2016 New Revision: 299748 URL: https://svnweb.freebsd.org/changeset/base/299748 Log: Add DTS files for the Allwinner A83T SoC and the Sinovoip BananaPi BPI-M3 development board. Added: head/sys/boot/fdt/dts/arm/a83t.dtsi (contents, props

Re: svn commit: r299653 - head/sys/compat/linuxkpi/common/include/linux

2016-05-14 Thread Konstantin Belousov
On Sat, May 14, 2016 at 04:46:09PM +0200, Hans Petter Selasky wrote: > On 05/13/16 20:43, John Baldwin wrote: > > On Friday, May 13, 2016 10:10:44 AM Hans Petter Selasky wrote: > >> @@ -190,6 +258,7 @@ > >> #define smp_processor_id() PCPU_GET(cpuid) > >> #define num_possible_cpus()

svn commit: r299746 - in head/sys: cddl/dev/dtrace cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 cddl/dev/dtrace/powerpc conf dev/acpica dev/hwpmc dev/hyperv/vmbus dev/xen/control geom/eli kern net sy...

2016-05-14 Thread John Baldwin
Author: jhb Date: Sat May 14 18:22:52 2016 New Revision: 299746 URL: https://svnweb.freebsd.org/changeset/base/299746 Log: Add an EARLY_AP_STARTUP option to start APs earlier during boot. Currently, Application Processors (non-boot CPUs) are started by MD code at SI_SUB_CPU, but they are

svn commit: r299747 - in head/sys/dev: altera/avgen usb/controller

2016-05-14 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat May 14 18:44:30 2016 New Revision: 299747 URL: https://svnweb.freebsd.org/changeset/base/299747 Log: Use OF_prop_free instead of direct call to free(9) Modified: head/sys/dev/altera/avgen/altera_avgen_fdt.c head/sys/dev/usb/controller/ehci_fsl.c Modified:

svn commit: r299824 - head/sys/netinet6

2016-05-14 Thread Mark Johnston
Author: markj Date: Sun May 15 03:01:40 2016 New Revision: 299824 URL: https://svnweb.freebsd.org/changeset/base/299824 Log: Remove an always-false error check in the AIFADDR_IN6 handler. CID: 1250792 MFC after:1 week Modified: head/sys/netinet6/in6.c Modified:

svn commit: r299840 - head/etc/rc.d

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 04:39:36 2016 New Revision: 299840 URL: https://svnweb.freebsd.org/changeset/base/299840 Log: Conditionalize etc/rc.d/{zfs,zvol} install on MK_ZFS != no MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Modified: head/etc/rc.d/Makefile

svn commit: r299815 - head/usr.sbin/bsnmpd/modules/snmp_mibII

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:42:18 2016 New Revision: 299815 URL: https://svnweb.freebsd.org/changeset/base/299815 Log: Remove NO_WERROR.clang from this Makefile This compiles with clang without warnings MFC after: 1 month Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299817 - head/contrib/bsnmp/snmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:54:21 2016 New Revision: 299817 URL: https://svnweb.freebsd.org/changeset/base/299817 Log: Use SNMPD_INPUT_FAILED instead of SNMP_CODE_FAILED SNMPD_INPUT_FAILED is `enum snmpd_input_err` type (which matches the return code from the function).

Re: svn commit: r299751 - head/sys/dev/bwn

2016-05-14 Thread Conrad Meyer
On Sat, May 14, 2016 at 12:52 PM, Adrian Chadd wrote: > Author: adrian > Date: Sat May 14 19:52:04 2016 > New Revision: 299751 > URL: https://svnweb.freebsd.org/changeset/base/299751 > > Log: > [bwn] migrate sqrt and add another couple of util routines. > > ... > > +unsigned

svn commit: r299821 - head/sbin/routed

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 15 02:30:34 2016 New Revision: 299821 URL: https://svnweb.freebsd.org/changeset/base/299821 Log: routed(8): Avoid NULL de-reference and two possible memory leaks. The reports and fixes are straightforward but it's nice to be able to confirm against NetBSD.

svn commit: r299825 - head/sbin/routed

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 15 03:04:21 2016 New Revision: 299825 URL: https://svnweb.freebsd.org/changeset/base/299825 Log: routed(8): Misc. cleanups to squelch Coverity. table.c: Copy into fixed size buffer. trace.c: Argument got dup2() cannot be negative. Copy into fixed size

svn commit: r299832 - head/contrib/bsnmp/snmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 03:41:01 2016 New Revision: 299832 URL: https://svnweb.freebsd.org/changeset/base/299832 Log: Remove trailing whitespace in license tort MFC after: 1 week Reported by: igor Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299831 - head/usr.sbin/bsnmpd/bsnmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 03:38:40 2016 New Revision: 299831 URL: https://svnweb.freebsd.org/changeset/base/299831 Log: Remove NO_WERROR and add WARNS?= 6 This now compiles cleanly on all architectures MFC after: 1 month Tested with: clang 3.8, gcc 4.2.1, gcc 4.5, make tinderbox

svn commit: r299838 - head/etc/rc.d

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 04:19:50 2016 New Revision: 299838 URL: https://svnweb.freebsd.org/changeset/base/299838 Log: Reduce redundancy after release-pkg merge to head in r298107 - Use BINDIR instead of FILESDIR - Default all MODEs to BINMODE with a single for-loop at the

Re: svn commit: r299831 - head/usr.sbin/bsnmpd/bsnmpd

2016-05-14 Thread Benjamin Kaduk
On Sat, May 14, 2016 at 10:38 PM, Garrett Cooper wrote: > Author: ngie > Date: Sun May 15 03:38:40 2016 > New Revision: 299831 > URL: https://svnweb.freebsd.org/changeset/base/299831 > > Log: > Remove NO_WERROR and add WARNS?= 6 > I thought WARNS=6 was already the default.

svn commit: r299816 - head/sys/fs/fuse

2016-05-14 Thread Rick Macklem
Author: rmacklem Date: Sun May 15 00:45:17 2016 New Revision: 299816 URL: https://svnweb.freebsd.org/changeset/base/299816 Log: Fix fuse so that stale buffer cache data isn't read. When I/O on a file under fuse is switched from buffered to DIRECT_IO, it was possible to read stale (before

svn commit: r299822 - head/sbin/routed

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sun May 15 02:41:20 2016 New Revision: 299822 URL: https://svnweb.freebsd.org/changeset/base/299822 Log: routed(8): Dereference before null check. CID: 272432 Obtained from:NetBSD (CVS ref. 1.16) MFC after:2 weeks. Modified:

svn commit: r299829 - head/sys/netinet6

2016-05-14 Thread Mark Johnston
Author: markj Date: Sun May 15 03:22:13 2016 New Revision: 299829 URL: https://svnweb.freebsd.org/changeset/base/299829 Log: Use Node Information flag names instead of hard-coding their values. MFC after:1 week Modified: head/sys/netinet6/icmp6.c Modified: head/sys/netinet6/icmp6.c

svn commit: r299810 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:24:21 2016 New Revision: 299810 URL: https://svnweb.freebsd.org/changeset/base/299810 Log: Correct function names that failed in error messages It should be calloc/strdup, not malloc MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division

svn commit: r299811 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:25:36 2016 New Revision: 299811 URL: https://svnweb.freebsd.org/changeset/base/299811 Log: Use strdup instead of malloc + strlcpy Fix error messages on failure for calloc/strdup MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division

svn commit: r299814 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:40:05 2016 New Revision: 299814 URL: https://svnweb.freebsd.org/changeset/base/299814 Log: Replace malloc + memset(.., 0, ..) with calloc calls MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299828 - head/sys/netinet

2016-05-14 Thread Mark Johnston
Author: markj Date: Sun May 15 03:19:53 2016 New Revision: 299828 URL: https://svnweb.freebsd.org/changeset/base/299828 Log: Fix a few style issues in the ICMP sysctl descriptions. MFC after:1 week Modified: head/sys/netinet/ip_icmp.c Modified: head/sys/netinet/ip_icmp.c

svn commit: r299827 - head/sys/netinet6

2016-05-14 Thread Mark Johnston
Author: markj Date: Sun May 15 03:18:03 2016 New Revision: 299827 URL: https://svnweb.freebsd.org/changeset/base/299827 Log: Add sysctl descriptions for net.inet6.ip6 and net.inet6.icmp6. icmp6.redirtimeout, icmp6.nd6_maxnudhint and ip6.rr_prune are left undocumented as they appear to

svn commit: r299830 - head/contrib/bsnmp/snmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 03:36:19 2016 New Revision: 299830 URL: https://svnweb.freebsd.org/changeset/base/299830 Log: Fix -Wcast-align warnings Use memcpy instead of using direct assignment of void* pointers with CMSG_DATA(..), which changes alignment MFC after: 3 weeks

svn commit: r299834 - head/contrib/bsnmp/snmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 03:44:32 2016 New Revision: 299834 URL: https://svnweb.freebsd.org/changeset/base/299834 Log: Fix .Dd Today is the 14th, not the 10th of May Reported by: igor (derp) Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299833 - head/contrib/bsnmp/snmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 03:43:36 2016 New Revision: 299833 URL: https://svnweb.freebsd.org/changeset/base/299833 Log: Fix fully canonicalized example for `myvariable.27...` `6` doesn't occur in the OID; it was spurious Bump .Dd for the change MFC after: 2 weeks Sponsored

svn commit: r299839 - head/etc/rc.d

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 04:38:50 2016 New Revision: 299839 URL: https://svnweb.freebsd.org/changeset/base/299839 Log: Make FILESYSTEMS, dumpon, and var not depend on zfs and zvol Make zfs and zvol come before all of the items that depended on them previously MFC after: 2 weeks

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 20:03:24 2016 New Revision: 299754 URL: https://svnweb.freebsd.org/changeset/base/299754 Log: [bwn] add BCMA chip identifiers. This will eventually live in sys/dev/bhnd/, but I won't use that until we migrate the whole driver over. So, this'll live

svn commit: r299753 - head/sys/fs/fuse

2016-05-14 Thread Rick Macklem
Author: rmacklem Date: Sat May 14 20:03:22 2016 New Revision: 299753 URL: https://svnweb.freebsd.org/changeset/base/299753 Log: Fix fuse to use DIRECT_IO when required. When a file is opened write-only and a partial block was written, buffered I/O would try and read the whole block in.

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 20:02:02 2016 New Revision: 299752 URL: https://svnweb.freebsd.org/changeset/base/299752 Log: [bwn] add more debugging bits. I'm hoping to migrate the device_printf() bits out into macros so we can control it later. Also, add some new debug sections

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 20:11:48 2016 New Revision: 299758 URL: https://svnweb.freebsd.org/changeset/base/299758 Log: [bwn] begin migrating PHY common routines into if_bwn_phy_common.[ch]. This isn't compiled in yet; so some code here duplicates what is in the existing code.

svn commit: r299760 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 20:28:23 2016 New Revision: 299760 URL: https://svnweb.freebsd.org/changeset/base/299760 Log: Sort variables in parse_ascii(..) per style(9) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299770 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 22:43:07 2016 New Revision: 299770 URL: https://svnweb.freebsd.org/changeset/base/299770 Log: Fix up r299764 I meant to use nitems, not sizeof(..) with the destination buffer. Using sizeof(..) on a pointer will always truncate the output in the destination

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:13:44 2016 New Revision: 299775 URL: https://svnweb.freebsd.org/changeset/base/299775 Log: [bwn] use the shared bwn_sqrt() routine. Modified: head/sys/dev/bwn/if_bwn_phy_lp.c Modified: head/sys/dev/bwn/if_bwn_phy_lp.c

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:23:50 2016 New Revision: 299780 URL: https://svnweb.freebsd.org/changeset/base/299780 Log: [bwn] add in new microcode and phy initval information. This is required for PHY-N and later hardware. Tested: * BCN4321 (11abgn), PHY-N Modified:

svn commit: r299788 - in head/sys/amd64: amd64 include

2016-05-14 Thread Konstantin Belousov
Author: kib Date: Sat May 14 23:35:11 2016 New Revision: 299788 URL: https://svnweb.freebsd.org/changeset/base/299788 Log: Eliminate pvh_global_lock from the amd64 pmap. The only current purpose of the pvh lock was explained there On Wed, Jan 09, 2013 at 11:46:13PM -0600, Alan Cox wrote:

svn commit: r299786 - head/sys/arm/allwinner

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 23:33:57 2016 New Revision: 299786 URL: https://svnweb.freebsd.org/changeset/base/299786 Log: Add a basic driver for X-Powers AXP813 and AXP818 power management ICs. This driver simply installs a shutdown event handler for handling RB_POWEROFF at

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:33:13 2016 New Revision: 299785 URL: https://svnweb.freebsd.org/changeset/base/299785 Log: [bwn] add an implementation of "cordic" and imaginary math. This is used by the PHY-N code. Obtained from:

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

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 23:36:00 2016 New Revision: 299789 URL: https://svnweb.freebsd.org/changeset/base/299789 Log: Add pmic (AXP813) child node to r_rsb for Sinovoip BananaPi BPI-M3. Modified: head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts Modified:

Re: svn commit: r299770 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Bruce Evans
On Sat, 14 May 2016, Garrett Cooper wrote: Log: Fix up r299764 I meant to use nitems, not sizeof(..) with the destination buffer. Using sizeof(..) on a pointer will always truncate the output in the destination buffer incorrectly Pointyhat to: ngie Er, this is pointier than before.

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:41:28 2016 New Revision: 299792 URL: https://svnweb.freebsd.org/changeset/base/299792 Log: [bwn] Explicitly only work for SIBA parts; add some placeholder debugging. Set phy-full-init always to 1 for now; PHY-N supports being able to do partial init for

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 20:09:37 2016 New Revision: 299757 URL: https://svnweb.freebsd.org/changeset/base/299757 Log: [bwn] add Q52 macros. The PHY-N code uses a different format for gain values, so these macros are used for converting to/from and print out values. Modified:

svn commit: r299759 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 20:25:14 2016 New Revision: 299759 URL: https://svnweb.freebsd.org/changeset/base/299759 Log: Use calloc instead of memset(.., 0, ..) + malloc MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299763 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 20:58:34 2016 New Revision: 299763 URL: https://svnweb.freebsd.org/changeset/base/299763 Log: Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer This is a no-op as the malloc above set the size of the buffer to the size used

svn commit: r299766 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 22:04:44 2016 New Revision: 299766 URL: https://svnweb.freebsd.org/changeset/base/299766 Log: Fix logically dead code pointed out by clang/Coverity parse_context, parse_user_security: test for validity of results from parse_ascii(..) with by casting to

svn commit: r299767 - head/usr.sbin/bsnmpd/tools/bsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 22:29:11 2016 New Revision: 299767 URL: https://svnweb.freebsd.org/changeset/base/299767 Log: Mute sign compare warning by casting rc to u_int to match nbindings' type rc cannot be negative -- that was already tested for earlier on in the function MFC

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:20:46 2016 New Revision: 299776 URL: https://svnweb.freebsd.org/changeset/base/299776 Log: [bwn] implement reset improvements in preparation for PHY-N support * Ensure we set 20MHz wide channels (hard-coded) for PHY-N. * Change the core rese tto take a

svn commit: r299781 - head/sys/arm/allwinner

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 23:27:54 2016 New Revision: 299781 URL: https://svnweb.freebsd.org/changeset/base/299781 Log: Add a driver for the Allwinner Reduced Serial Bus (RSB). The RSB controller speaks a simplified two wire protocol at speeds up to 20MHz. It is used on sun8i and

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:27:55 2016 New Revision: 299782 URL: https://svnweb.freebsd.org/changeset/base/299782 Log: [bwn] TX logging / completion fixes * Log the per-completion status out if requested * If we get a PHY failure, the retrycnt is set to 0 and ack=0, so the

svn commit: r299787 - in head/sys/arm: allwinner conf

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 23:34:57 2016 New Revision: 299787 URL: https://svnweb.freebsd.org/changeset/base/299787 Log: Add and enable Allwinner RSB and AXP81x power management IC drivers. Modified: head/sys/arm/allwinner/files.allwinner head/sys/arm/conf/ALLWINNER Modified:

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:44:30 2016 New Revision: 299796 URL: https://svnweb.freebsd.org/changeset/base/299796 Log: [bwn] make rf-kill work for PHY-N. Modified: head/sys/dev/bwn/if_bwn.c Modified: head/sys/dev/bwn/if_bwn.c

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:45:16 2016 New Revision: 299797 URL: https://svnweb.freebsd.org/changeset/base/299797 Log: [bwn] disable writing slottime timing out to improve performance. this is from b43 linux, there's a comment in there which notes one nic family suffers

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:45:47 2016 New Revision: 299798 URL: https://svnweb.freebsd.org/changeset/base/299798 Log: [bwn] set the 5ghz transmit flag for 5ghz transmit. Turns out trying to do 11a transmit without this set works poorly. Modified: head/sys/dev/bwn/if_bwn.c

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:50:15 2016 New Revision: 299800 URL: https://svnweb.freebsd.org/changeset/base/299800 Log: [bwn] disable 11na channel setup for now, since we definitely, positively don't do 11na yet. Modified: head/sys/dev/bwn/if_bwn.c Modified:

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:50:44 2016 New Revision: 299801 URL: https://svnweb.freebsd.org/changeset/base/299801 Log: [bwn] handle core rev 12, we can mostly do that new. Modified: head/sys/dev/bwn/if_bwn.c Modified: head/sys/dev/bwn/if_bwn.c

Re: svn commit: r299770 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Ngie Cooper (yaneurabeya)
> On May 14, 2016, at 16:42, Bruce Evans wrote: > > On Sat, 14 May 2016, Garrett Cooper wrote: … > Er, this is pointier than before. nitems() is only valid on arrays. You’re 100% correct. I forgot that it isn’t a magic silver bullet that works with scalar pointers :(…

svn commit: r299805 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:05:28 2016 New Revision: 299805 URL: https://svnweb.freebsd.org/changeset/base/299805 Log: Fix up r299769 Similar to r299802, it was noted that using nitems on scalar pointers is invalid. Use strdup instead of malloc + strlcpy (which is what the old

svn commit: r299806 - head/usr.sbin/bsnmpd/tools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:08:09 2016 New Revision: 299806 URL: https://svnweb.freebsd.org/changeset/base/299806 Log: Bump WARNS to 6 MFC after: 1 month Sponsored by: EMC / Isilon Storage Division Modified: head/usr.sbin/bsnmpd/tools/Makefile.inc Modified:

Re: svn commit: r299804 - head/sys/dev/bwn

2016-05-14 Thread Ngie Cooper (yaneurabeya)
> On May 14, 2016, at 17:13, Adrian Chadd wrote: > > [snip] > > ok, ok. I'm the bwn(4) maintainer. Please MFC changes back to stable/10… thanks! ___ svn-src-head@freebsd.org mailing list

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 19:52:04 2016 New Revision: 299751 URL: https://svnweb.freebsd.org/changeset/base/299751 Log: [bwn] migrate sqrt and add another couple of util routines. bwn_sqrt() is in the PHY-LP code but is also needed by the upcoming PHY-N support. The other two

svn commit: r299761 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 20:31:12 2016 New Revision: 299761 URL: https://svnweb.freebsd.org/changeset/base/299761 Log: parse_ascii: make count size_t to mute a -Wsign-compare issue count is always unsigned. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division

svn commit: r299771 - head/sbin/routed

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 14 23:07:26 2016 New Revision: 299771 URL: https://svnweb.freebsd.org/changeset/base/299771 Log: routed: Fix use after free. For the multihomed case, ifp be used after being freed. NULL the value after freeing it and avoid getting into the branch without

svn commit: r299772 - in head/sys: conf modules/bwn

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:08:34 2016 New Revision: 299772 URL: https://svnweb.freebsd.org/changeset/base/299772 Log: [bwn] add in the new phy common and utils files. They're not yet used by included code; that'll come next. Modified: head/sys/conf/files

svn commit: r299778 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 23:22:38 2016 New Revision: 299778 URL: https://svnweb.freebsd.org/changeset/base/299778 Log: Use a consistent errno save/restore pattern before running strtoul - Save errno - Set errno to 0 - Call strtoul - Test errno (optional, but many calls to

svn commit: r299777 - head/sbin/routed

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 14 23:22:19 2016 New Revision: 299777 URL: https://svnweb.freebsd.org/changeset/base/299777 Log: routed(8): Use arc4random. CID: 1305962 Obtained from:NetBSD (CVS Rev. 1.34, Itojun) Modified: head/sbin/routed/main.c Modified:

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

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 23:22:52 2016 New Revision: 299779 URL: https://svnweb.freebsd.org/changeset/base/299779 Log: Add node for A83T NMI interrupt controller. Modified: head/sys/boot/fdt/dts/arm/a83t.dtsi Modified: head/sys/boot/fdt/dts/arm/a83t.dtsi

svn commit: r299783 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 23:29:41 2016 New Revision: 299783 URL: https://svnweb.freebsd.org/changeset/base/299783 Log: Convert tok from enum tok to int32_t in function calls get_token(..) returns int32_t, not enum tok, and in many cases tests for items not in enum tok (e.g. '(').

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:42:37 2016 New Revision: 299793 URL: https://svnweb.freebsd.org/changeset/base/299793 Log: [bwn] debugging changes. Now that I have 5g working on PHY-N, that "changing band" message happens quite a bit. Make it a debug log, not an explicit printf.

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:48:26 2016 New Revision: 299799 URL: https://svnweb.freebsd.org/changeset/base/299799 Log: [bwn] fill out phyctl_1 fields for N-PHY (and later, eventually.) N-PHY and later require a lot more plcp specific setup for the PHY to know what to transmit.

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sun May 15 00:03:14 2016 New Revision: 299804 URL: https://svnweb.freebsd.org/changeset/base/299804 Log: [bwn] add the full suite of SPROM flags Obtained from:Linux b43 Modified: head/sys/dev/bwn/if_bwnreg.h Modified: head/sys/dev/bwn/if_bwnreg.h

svn commit: r299803 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:02:55 2016 New Revision: 299803 URL: https://svnweb.freebsd.org/changeset/base/299803 Log: Replace malloc + memset(.., 0, ..) with calloc calls MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299808 - head/contrib/bsnmp/snmp_usm

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:13:36 2016 New Revision: 299808 URL: https://svnweb.freebsd.org/changeset/base/299808 Log: Use sizeof(..)s for the destination buffers instead of hardcoded values corresponding to the destination buffer sizes MFC after: 1 week Sponsored by: EMC /

Re: svn commit: r299804 - head/sys/dev/bwn

2016-05-14 Thread Adrian Chadd
[snip] ok, ok. I'm the bwn(4) maintainer. -adrian ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r299756 - in head/sys: dev/iicbus powerpc/mpc85xx powerpc/psim

2016-05-14 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat May 14 20:06:38 2016 New Revision: 299756 URL: https://svnweb.freebsd.org/changeset/base/299756 Log: Use OF_prop_free instead of direct call to free(9) Reviewed by: jhibbits Modified: head/sys/dev/iicbus/adt746x.c head/sys/powerpc/mpc85xx/lbc.c

svn commit: r299764 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 21:27:33 2016 New Revision: 299764 URL: https://svnweb.freebsd.org/changeset/base/299764 Log: Use the size of the destination buffer, not the source buffer. Technically this is a no-op, but mute the clang warning in case the malloc call above for fstring

svn commit: r299765 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 21:32:52 2016 New Revision: 299765 URL: https://svnweb.freebsd.org/changeset/base/299765 Log: Fix theoretical buffer overflow issues in snmp_oid2asn_oid Increase the size of `string` by 1 to account for the '\0' terminator. In the event that `str` doesn't

svn commit: r299768 - in head/sbin/routed: . rtquery

2016-05-14 Thread Pedro F. Giffuni
Author: pfg Date: Sat May 14 22:40:08 2016 New Revision: 299768 URL: https://svnweb.freebsd.org/changeset/base/299768 Log: routed(8): use NULL instead of zero for pointers. Modified: head/sbin/routed/if.c head/sbin/routed/input.c head/sbin/routed/main.c head/sbin/routed/output.c

svn commit: r299769 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sat May 14 22:40:35 2016 New Revision: 299769 URL: https://svnweb.freebsd.org/changeset/base/299769 Log: Use the size of the destination buffer instead of the malloc size, repeated, in order to mute a -Wstrlcpy-strlcat-size warning MFC after: 1 week Reported by:

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:38:21 2016 New Revision: 299790 URL: https://svnweb.freebsd.org/changeset/base/299790 Log: [bwn] add new types, prepare for PHY-N; prepare for rev 5xx firmware. This is a big commit with a whole lot of little changes, all in preparation for PHY-N and

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

2016-05-14 Thread Adrian Chadd
Author: adrian Date: Sat May 14 23:38:51 2016 New Revision: 299791 URL: https://svnweb.freebsd.org/changeset/base/299791 Log: [bwn] missed commit! Modified: head/sys/dev/bwn/if_bwn_phy_g.c Modified: head/sys/dev/bwn/if_bwn_phy_g.c

svn commit: r299802 - head/usr.sbin/bsnmpd/tools/libbsnmptools

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:01:23 2016 New Revision: 299802 URL: https://svnweb.freebsd.org/changeset/base/299802 Log: Fix up both r299764 and r299770 nitems was wrong too, as it was being tested against a pointer instead of a buffer on the stack. Since the old code was just

svn commit: r299807 - in head: contrib/bsnmp/snmpd usr.sbin/bsnmpd/bsnmpd

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 00:10:37 2016 New Revision: 299807 URL: https://svnweb.freebsd.org/changeset/base/299807 Log: Replace QUADFMT with %ju and QUADXFMT with %jx and cast values with uintmax_t This will cure some -Wformat warnings MFC after: 1 week Reported by: clang, gcc

svn commit: r299841 - head/tools/build/mk

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:22:15 2016 New Revision: 299841 URL: https://svnweb.freebsd.org/changeset/base/299841 Log: Remove etc/rc.d/{zfs,zvol} if MK_ZFS != no MFC after: 2 weeks X-MFC with: r299840 Sponsored by: EMC / Isilon Storage Division Modified:

svn commit: r299842 - in head: etc/rc.d tools/build/mk

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:38:47 2016 New Revision: 299842 URL: https://svnweb.freebsd.org/changeset/base/299842 Log: Conditionalize installing etc/rc.d/atm{1,2,3} `BEFORE: netif` was already in etc/rc.d/atm1, so no additional changes are needed in that script MFC after: 2

svn commit: r299843 - head/etc/rc.d

2016-05-14 Thread Garrett Cooper
Author: ngie Date: Sun May 15 05:45:54 2016 New Revision: 299843 URL: https://svnweb.freebsd.org/changeset/base/299843 Log: Fix broken dependency with routed when MK_ROUTED != no Remove routed as a requirement in NETWORKING, and put it in routed as a BEFORE requirement instead MFC

svn commit: r299739 - head/sys/modules/gpio/gpiokeys

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 09:18:50 2016 New Revision: 299739 URL: https://svnweb.freebsd.org/changeset/base/299739 Log: Blind long shot. Add ofw_gpiobus.c to the SRCS list in the hope to make the remaining MIPS kernels compile which set MODULES_OVERRIDE="gpio..." Modified:

svn commit: r299740 - in head/sys/modules/gpio: . gpiokeys

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 09:39:21 2016 New Revision: 299740 URL: https://svnweb.freebsd.org/changeset/base/299740 Log: Revert r299739. That did not make it better. Instead disconnect gpiokeys from the build until it's fixed and buildable; the SUBDIR list was not ordered properly anyway

svn commit: r299741 - head/lib/libc/sys

2016-05-14 Thread Konstantin Belousov
Author: kib Date: Sat May 14 09:43:28 2016 New Revision: 299741 URL: https://svnweb.freebsd.org/changeset/base/299741 Log: Add thr*.2 and _umtx_op.2 manpages to the build. Sponsored by: The FreeBSD Foundation Modified: head/lib/libc/sys/Makefile.inc Modified:

svn commit: r299735 - head/lib/libc/sys

2016-05-14 Thread Konstantin Belousov
Author: kib Date: Sat May 14 08:36:37 2016 New Revision: 299735 URL: https://svnweb.freebsd.org/changeset/base/299735 Log: Document the non-obsoleted kernel interfaces used by libthr. Reviewed by: emaste Sponsored by: The FreeBSD Foundation Differential revision:

Re: svn commit: r299735 - head/lib/libc/sys

2016-05-14 Thread Konstantin Belousov
On Sat, May 14, 2016 at 08:36:37AM +, Konstantin Belousov wrote: > Author: kib > Date: Sat May 14 08:36:37 2016 > New Revision: 299735 > URL: https://svnweb.freebsd.org/changeset/base/299735 > > Log: > Document the non-obsoleted kernel interfaces used by libthr. > The build glue will

svn commit: r299736 - in head: contrib/file contrib/file/magic/Magdir contrib/file/src contrib/file/tests lib/libmagic

2016-05-14 Thread Xin LI
Author: delphij Date: Sat May 14 08:52:37 2016 New Revision: 299736 URL: https://svnweb.freebsd.org/changeset/base/299736 Log: MFV r299716: file 5.27 MFC after:2 weeks Relnotes: yes Modified: head/contrib/file/ChangeLog head/contrib/file/configure

svn commit: r299737 - head/sys/net80211

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 08:54:34 2016 New Revision: 299737 URL: https://svnweb.freebsd.org/changeset/base/299737 Log: Revert parts of r299575 in order to make more MIPS kernels build again hopefully. Rather than blindly removing a supposedly unused variable as reported by the Clang

svn commit: r299738 - head/sys/conf

2016-05-14 Thread Bjoern A. Zeeb
Author: bz Date: Sat May 14 08:55:15 2016 New Revision: 299738 URL: https://svnweb.freebsd.org/changeset/base/299738 Log: Update file list for sfgxe(4) again and hey, my amd64 kernels compile again. Modified: head/sys/conf/files.amd64 Modified: head/sys/conf/files.amd64

svn commit: r299743 - head/sys/arm/conf

2016-05-14 Thread Jared McNeill
Author: jmcneill Date: Sat May 14 10:39:57 2016 New Revision: 299743 URL: https://svnweb.freebsd.org/changeset/base/299743 Log: Update comment at top of file to mention all currently supported Allwinner SoCs. Previously mentioned A20 and A31, added A31S, A83T, and H3. Modified:

svn commit: r299755 - head/sys/mips/mediatek

2016-05-14 Thread Oleksandr Tymoshenko
Author: gonzo Date: Sat May 14 20:05:35 2016 New Revision: 299755 URL: https://svnweb.freebsd.org/changeset/base/299755 Log: Use OF_prop_free instead of direct call to free(9) Reviewed by: sgalabov Modified: head/sys/mips/mediatek/fdt_reset.c head/sys/mips/mediatek/mtk_pinctrl.c

Re: svn commit: r299753 - head/sys/fs/fuse

2016-05-14 Thread Alexey Dokuchaev
On Sat, May 14, 2016 at 08:03:22PM +, Rick Macklem wrote: > New Revision: 299753 > URL: https://svnweb.freebsd.org/changeset/base/299753 > > Log: > Fix fuse to use DIRECT_IO when required. > > When a file is opened write-only and a partial block was written, > buffered I/O would try

  1   2   >