svn commit: r316125 - head/contrib/libpcap

2017-03-28 Thread Xin LI
Author: delphij Date: Wed Mar 29 03:36:26 2017 New Revision: 316125 URL: https://svnweb.freebsd.org/changeset/base/316125 Log: MFV r316124: Fix build when WITHOUT_INET6. Reported by: Randy Westlund MFC after:3 days Modified: head/contrib/libpcap/gencode.c Directory Properties:

svn commit: r316119 - in head/sys/boot: arm/uboot efi/boot1 efi/loader

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 23:56:02 2017 New Revision: 316119 URL: https://svnweb.freebsd.org/changeset/base/316119 Log: self_reloc.c: Pass -Wno-error=maybe-uninitialized to gcc versions greater than 4.2.1 self_reloc.c doesn't initialize `rel` in all cases in the C code, however, the v

svn commit: r316118 - head/sys/dev/cxgbe/iw_cxgbe

2017-03-28 Thread Navdeep Parhar
Author: np Date: Tue Mar 28 23:39:11 2017 New Revision: 316118 URL: https://svnweb.freebsd.org/changeset/base/316118 Log: cxgbe/iw_cxgbe: T6 has no limit on the amount of memory that can be registered in one ib_reg_phys_mr. Modified: head/sys/dev/cxgbe/iw_cxgbe/mem.c Modified: head/sys/dev

svn commit: r316117 - head/sys/cam/ata

2017-03-28 Thread Michael Gmelin
Author: grembo (ports committer) Date: Tue Mar 28 23:02:41 2017 New Revision: 316117 URL: https://svnweb.freebsd.org/changeset/base/316117 Log: In r289137 the legacy_aliases compatibility shims for ata were removed, also remove a leftover define used for implementing them. Reviewed by: m

svn commit: r316116 - head/sys/dev/iwn

2017-03-28 Thread Andriy Voskoboinyk
Author: avos Date: Tue Mar 28 22:40:51 2017 New Revision: 316116 URL: https://svnweb.freebsd.org/changeset/base/316116 Log: iwn: remove unneeded cast. Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c =

svn commit: r316115 - head/lib/libcam

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 22:32:11 2017 New Revision: 316115 URL: https://svnweb.freebsd.org/changeset/base/316115 Log: libcam: use __func__ instead of hardcoding the function name as `func_name` MFC after:3 days Tested with: `cam_device_copy(NULL, NULL)` // ;).. Sponsored by:

svn commit: r316114 - head/sys/dev/iwn

2017-03-28 Thread Andriy Voskoboinyk
Author: avos Date: Tue Mar 28 22:31:48 2017 New Revision: 316114 URL: https://svnweb.freebsd.org/changeset/base/316114 Log: iwn: drop duplicate synchronization requests. Rx descriptor / payload is already synchronized in iwn_notif_intr() (before accessing desc->type / desc->qid fields).

svn commit: r316113 - head/sys/dev/ichsmb

2017-03-28 Thread Gavin Atkinson
Author: gavin Date: Tue Mar 28 21:54:36 2017 New Revision: 316113 URL: https://svnweb.freebsd.org/changeset/base/316113 Log: Remove #define PCIS_SERIALBUS_SMBUS_PROGIF, unused since r200091 Modified: head/sys/dev/ichsmb/ichsmb_pci.c Modified: head/sys/dev/ichsmb/ichsmb_pci.c

svn commit: r316112 - head/sys/boot/common

2017-03-28 Thread Toomas Soome
Author: tsoome Date: Tue Mar 28 21:50:11 2017 New Revision: 316112 URL: https://svnweb.freebsd.org/changeset/base/316112 Log: loader: ls command should display file types properly With some file system the ls is unable to display file types. Reviewed by: allanjude Approved by: alla

svn commit: r316111 - head/sys/boot/i386/libi386

2017-03-28 Thread Toomas Soome
Author: tsoome Date: Tue Mar 28 21:47:12 2017 New Revision: 316111 URL: https://svnweb.freebsd.org/changeset/base/316111 Log: loader: move bios getsecs into time.c Move the time related function into time.c, keep the same logic as libefi. Reviewed by: allanjude Approved by: allanju

svn commit: r316110 - head/sys/boot/efi/boot1

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 21:39:24 2017 New Revision: 316110 URL: https://svnweb.freebsd.org/changeset/base/316110 Log: Use `-Wno-missing-declarations` with CWARNFLAGS for skein.c `-Wno-missing-variable-declarations` is a clang-specific flag, so gcc (not 4.2.1, in particular 6.3.0 in

svn commit: r316109 - in head/sys/boot: efi/boot1 i386/boot2 i386/zfsboot sparc64/boot1

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 21:35:18 2017 New Revision: 316109 URL: https://svnweb.freebsd.org/changeset/base/316109 Log: Don't hardcode input files for stage 1/2 bootloaders; use .ALLSRC instead This is a better pattern to follow when creating the bootloaders and doing the relevant spa

svn commit: r316108 - head/sys/boot/common

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 21:16:11 2017 New Revision: 316108 URL: https://svnweb.freebsd.org/changeset/base/316108 Log: Remove -Wunused-but-set variable, `tail` in `ls_getdir(..)` This variable has been unused since its inception in r40106. MFC after:3 days Reported by: amd6

Re: svn commit: r315974 - in head: lib/libthread_db/arch/arm sys/arm/arm sys/arm/include

2017-03-28 Thread John Baldwin
On Tuesday, March 28, 2017 12:20:04 PM Michal Meloun wrote: > > On 27.03.2017 19:40, Warner Losh wrote: > > On Mon, Mar 27, 2017 at 11:07 AM, John Baldwin wrote: > >> On Sunday, March 26, 2017 08:36:56 AM Michal Meloun wrote: > >>> Author: mmel > >>> Date: Sun Mar 26 08:36:56 2017 > >>> New Revis

svn commit: r316107 - head/sys/boot/zfs

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:52:59 2017 New Revision: 316107 URL: https://svnweb.freebsd.org/changeset/base/316107 Log: Remove redundant declaration for `zfs_crc64_table` zfssubr.c already defines this statically. Besides, zfsimpl.c defined it, but didn't use it. This fixes a -Wr

svn commit: r316106 - head/sys/boot/zfs

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:39:24 2017 New Revision: 316106 URL: https://svnweb.freebsd.org/changeset/base/316106 Log: Don't shadow read(2) definition with `read` argument in vdev_{create,probe} This fixes several -Wshadow warnings introduced in r192194, but now errors with gcc 6.3.0

svn commit: r316105 - head/sbin/nvmecontrol

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:34:02 2017 New Revision: 316105 URL: https://svnweb.freebsd.org/changeset/base/316105 Log: Don't use K&R style prototypes; ANSIfy them This fixes several -Wold-style-definition warnings. X-MFC with: 313191 Reported by: amd64-gcc-6.3.0 (devel/amd64-

svn commit: r316104 - head/sys/boot/i386/gptzfsboot

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:30:33 2017 New Revision: 316104 URL: https://svnweb.freebsd.org/changeset/base/316104 Log: Use `NO_WCAST_ALIGN` instead of spelling it out as -Wno-cast-align in CFLAGS MFC after:3 days Sponsored by: Dell EMC Isilon Modified: head/sys/boot/i386/gptzf

svn commit: r316103 - head/sys/boot/efi/boot1

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:26:04 2017 New Revision: 316103 URL: https://svnweb.freebsd.org/changeset/base/316103 Log: Remove redundant declarations They're already defined in libstand.h MFC after:1 week Reported by: amd64-gcc-6.3.0 (devel/amd64-xtoolchain-gcc) Sponsored

svn commit: r316102 - head/sys/boot/common

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 20:22:44 2017 New Revision: 316102 URL: https://svnweb.freebsd.org/changeset/base/316102 Log: Wrap bootcamp DEBUG statement with curly braces This fixes a -Wempty-body warning with gcc 6.3.0 when PART_DEBUG is undefined. MFC after:3 days Reported by:

Re: svn commit: r315689 - head/lib/libcompiler_rt

2017-03-28 Thread Dimitry Andric
On 28 Mar 2017, at 21:02, Ngie Cooper (yaneurabeya) wrote: > >> On Mar 28, 2017, at 10:49, Ngie Cooper (yaneurabeya) >> wrote: > … >> Oh wait… I forgot that libgcc_s also references these sources *facepalm*. Aha! That explains why Li-Wen still saw -Werror warnings on the Jenkins bot. They ju

Re: svn commit: r315689 - head/lib/libcompiler_rt

2017-03-28 Thread Ngie Cooper (yaneurabeya)
> On Mar 28, 2017, at 10:49, Ngie Cooper (yaneurabeya) > wrote: … > Oh wait… I forgot that libgcc_s also references these sources *facepalm*. Addressed in r316101 (inspired by your change). Thanks! -Ngie signature.asc Description: Message signed with OpenPGP using GPGMail

svn commit: r316101 - head/lib/libgcc_s

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 19:01:01 2017 New Revision: 316101 URL: https://svnweb.freebsd.org/changeset/base/316101 Log: Apply r315689 to lib/libgcc_s as well to unbreak the gcc xtoolchain build lib/libgcc_s consumes lib/libcompiler_rt/Makefile*. The NO_WERROR.gcc in lib/libcompiler_rt

Re: svn commit: r316100 - head/sys/boot/i386/boot2

2017-03-28 Thread Ngie Cooper (yaneurabeya)
> On Mar 28, 2017, at 11:09, Warner Losh wrote: > > Author: imp > Date: Tue Mar 28 18:09:01 2017 > New Revision: 316100 > URL: https://svnweb.freebsd.org/changeset/base/316100 > > Log: > Remove -fno-guess-branch-probability and -fno-unit-at-a-time. > > bde enabled -fno-guess-branch-probabili

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Poul-Henning Kamp
In message <201703281555.v2sftosu005...@pdx.rh.cn85.dnsmgr.net>, "Rodney W. Gri mes" writes: >I think we still have an 8k size limit on boot1 for ffs/(ufs1 or ufs2) Having a former release-engineer & disk-I/O renovator on the UFS2 team took care of that: We tried to be future compatible

svn commit: r316100 - head/sys/boot/i386/boot2

2017-03-28 Thread Warner Losh
Author: imp Date: Tue Mar 28 18:09:01 2017 New Revision: 316100 URL: https://svnweb.freebsd.org/changeset/base/316100 Log: Remove -fno-guess-branch-probability and -fno-unit-at-a-time. bde enabled -fno-guess-branch-probability in 2003, well before our current compiler was imported. At the

Re: svn commit: r315689 - head/lib/libcompiler_rt

2017-03-28 Thread Ngie Cooper (yaneurabeya)
> On Mar 28, 2017, at 10:48, Ngie Cooper (yaneurabeya) > wrote: > >> >> On Mar 21, 2017, at 14:07, Dimitry Andric wrote: >> >> Author: dim >> Date: Tue Mar 21 21:07:37 2017 >> New Revision: 315689 >> URL: https://svnweb.freebsd.org/changeset/base/315689 >> >> Log: >> Gcc has incompatible in

Re: svn commit: r315689 - head/lib/libcompiler_rt

2017-03-28 Thread Ngie Cooper (yaneurabeya)
> On Mar 21, 2017, at 14:07, Dimitry Andric wrote: > > Author: dim > Date: Tue Mar 21 21:07:37 2017 > New Revision: 315689 > URL: https://svnweb.freebsd.org/changeset/base/315689 > > Log: > Gcc has incompatible internal declarations for __divtc3 and __multc3 as > defined in compiler-rt, but i

svn commit: r316099 - in head: etc/mtree lib/libkvm lib/libkvm/tests

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 17:37:49 2017 New Revision: 316099 URL: https://svnweb.freebsd.org/changeset/base/316099 Log: lib/libkvm: start adding basic tests for kvm(3) - kvm_close: add a testcase to verify support for errno = EINVAL / -1 (see D10065) when kd == NULL is provided to t

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Rodney W. Grimes wrote: On Mon, 27 Mar 2017, Julian Elischer wrote: On Tue, 28 Mar 2017, Bruce Evans wrote: [...] they have to fit below 640K and a few multiples of 64K are already used for buffers). The limit on 8K is mainly a historical mistake. A limit of 7.5K simpl

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Toomas Soome
> On 28. märts 2017, at 18:55, Rodney W. Grimes > wrote: > >> On Mon, 27 Mar 2017, Julian Elischer wrote: >> >>> On Tue, 28 Mar 2017, Bruce Evans wrote: >>> >>> [...] >>> they have to fit below 640K and a few multiples of 64K are already used for buffers). The limit on 8K is mainl

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Rodney W. Grimes
> On Mon, 27 Mar 2017, Julian Elischer wrote: > > > On Tue, 28 Mar 2017, Bruce Evans wrote: > > > > [...] > > > >> they have to fit below 640K and a few multiples of 64K are already > >> used for buffers). The limit on 8K is mainly a historical mistake. > >> A limit of 7.5K simplified booting fro

Re: svn commit: r316081 - head/lib/libcam

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Ngie Cooper wrote: Log: Use `sizeof(cam_errbuf)` instead of `CAM_ERRBUF_SIZE` in snprintf calls Reindent snprintf calls' arguments to match style(9) guidelines with respect to indentation. Unfortunately, cam is is supposed to not match style(9) guidelines for indentati

svn commit: r316095 - in head: contrib/libarchive contrib/libarchive/libarchive lib/libarchive

2017-03-28 Thread Martin Matuska
Author: mm Date: Tue Mar 28 10:39:17 2017 New Revision: 316095 URL: https://svnweb.freebsd.org/changeset/base/316095 Log: MFV r316083,316094: Sync libarchive with vendor Vendor changes (FreeBSD-related): - constify variables in several places - unify platform ACL code in a single sour

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Tue, 28 Mar 2017, Warner Losh wrote: [[ sorry for the top post but it's quick ]] It's quicker and almost equivalent to delete what you reply to. Summary, in Bruce's own words the whole optimization step was silly. I agree. on my -current system, clang compiled boot2 was 4 bytes smalle

Re: svn commit: r315974 - in head: lib/libthread_db/arch/arm sys/arm/arm sys/arm/include

2017-03-28 Thread Michal Meloun
On 27.03.2017 19:40, Warner Losh wrote: > On Mon, Mar 27, 2017 at 11:07 AM, John Baldwin wrote: >> On Sunday, March 26, 2017 08:36:56 AM Michal Meloun wrote: >>> Author: mmel >>> Date: Sun Mar 26 08:36:56 2017 >>> New Revision: 315974 >>> URL: https://svnweb.freebsd.org/changeset/base/315974 >>>

svn commit: r316082 - head/share/misc

2017-03-28 Thread Maxim Konovalov
Author: maxim Date: Tue Mar 28 09:02:42 2017 New Revision: 316082 URL: https://svnweb.freebsd.org/changeset/base/316082 Log: DragonFly BSD 4.8.0 release added. Modified: head/share/misc/bsd-family-tree Modified: head/share/misc/bsd-family-tree

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Bruce Evans
On Mon, 27 Mar 2017, Julian Elischer wrote: On Tue, 28 Mar 2017, Bruce Evans wrote: [...] they have to fit below 640K and a few multiples of 64K are already used for buffers). The limit on 8K is mainly a historical mistake. A limit of 7.5K simplified booting from 15-sector floppies. 18-sect

svn commit: r316081 - head/lib/libcam

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 08:24:16 2017 New Revision: 316081 URL: https://svnweb.freebsd.org/changeset/base/316081 Log: Use `sizeof(cam_errbuf)` instead of `CAM_ERRBUF_SIZE` in snprintf calls Reindent snprintf calls' arguments to match style(9) guidelines with respect to indentation.

svn commit: r316080 - head/lib/libcam

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 08:19:51 2017 New Revision: 316080 URL: https://svnweb.freebsd.org/changeset/base/316080 Log: Fix some localized style(9) issues and reword CAM_ERRBUF_SIZE description The CAM_ERRBUF_SIZE description rewording fixes a typo by proxy. MFC after:3 days

Re: svn commit: r316064 - head/sys/boot/i386/boot2

2017-03-28 Thread Warner Losh
[[ sorry for the top post but it's quick ]] Summary, in Bruce's own words > the whole optimization step was silly. I agree. on my -current system, clang compiled boot2 was 4 bytes smaller after ripping it out. gcc was a whopping 7 bytes larger. Since gcc has 156 still free, I think it's best to

svn commit: r316079 - head/sys/boot/i386/boot2

2017-03-28 Thread Warner Losh
Author: imp Date: Tue Mar 28 07:58:27 2017 New Revision: 316079 URL: https://svnweb.freebsd.org/changeset/base/316079 Log: Simply retire the sedification of the boot2.s file. It's been obsolete for years. clang before 96 free after 100 (+4) gcc before 163 free after 156 (-7) Sugges

svn commit: r316078 - head/sys/boot/i386/gptboot

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 07:10:35 2017 New Revision: 316078 URL: https://svnweb.freebsd.org/changeset/base/316078 Log: gpt*boot: Save a bit more memory when LOADER_NO_GELI_SUPPORT is specified Don't compile geliargs into the image and don't pass geliargs to the respective bootloader

svn commit: r316077 - head/sys/boot/i386/gptzfsboot

2017-03-28 Thread Ngie Cooper
Author: ngie Date: Tue Mar 28 07:01:40 2017 New Revision: 316077 URL: https://svnweb.freebsd.org/changeset/base/316077 Log: Unbreak compilation with gcc 4.2.1 -Wtentative-definition-incomplete-type isn't implemented for 4.2.1 X-MFC with: r304321 Sponsored by: Dell EMC Isilon Modif