There's no need to guess at the COMPILER_TYPE to pass it down. We
guess wrong for buildkernel when CC=gcc49, say. Eliminate all the
guessing. COMPILER_TYPE propigates properly on its own, if specified,
and we guess it correctly otherwise lower in the build. Also, fix
conditionals for armv6hf when using an external compiler chain. They
were broken before, but unused. Also, prefer checking the compiler
type over CLANG_IS_CC since the latter is only supposed to be used to
determine what symlinks to install (more fixes to follow).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove instances of variables that were set, but never used. gcc 4.9
warns about these by default.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263954 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Increase the number of TX DMA segments from 32 to 35.  It turned
out 32 is not enough to support a full sized TSO packet.
While I'm here fix a long standing bug introduced in r169632 in
bce(4) where it didn't include L2 header length of TSO packet in
the maximum DMA segment size calculation.

In collaboration with:	rmacklem
MFC after:		2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263957 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't copy the MF flag from original IP header to ICMP error message.

PR:		188092
MFC after:	1 week
Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263966 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Document r263140, removal of IPX.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263967 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge r246607 by benno from projects/uefi

  Use EFI types for EFI values (silences warnings).

EFI UINTN is actually a 64-bit type on 64-bit processors.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263968 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't generate an ICMPv6 error message if packet was consumed by filter.

MFC after:	1 week
Sponsored by:	Yandex LLC


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263969 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused label.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263971 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
ddb: Minor style cleanups.

#define should be followed by tab.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263973 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update jemalloc to version 3.6.0.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263974 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Turns out name was used here when ACPI_DEBUG was defined, so refine my
previous patch.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make it possible to have multiple CTL worker threads.  Leave the default
of 1 for now.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263978 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Hide CTL messages about SCSI error responses.  Too many users take
them for actual target errors.  They can be enabled back by setting
kern.cam.ctl.verbose=1, or booting with bootverbose.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263979 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Release i2c bus on detach.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263981 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add Cortex-A15 cpu id revisions.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263982 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Ensure make xdev respect which compiler is CC
and which compilers should be built according to standard build options


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263983 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add new USB ID.

Submitted by:	Tuomo Latto <djv+fbpr@iki.fi>
PR:		usb/188046
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263985 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- In the libiconv module for ISO 2022 restore the original order of the
  fields of a private struct such that variables of this type are
  initialised correctly.  Fixes conversion from ISO 2022.
  Also do this in the BIG5 module to prevent similar errors in the future.
- In the libiconv module for EUC-TW replace 2^cs with 1<<cs.  Fixes
  conversion from EUC-TW.
- Synchronise iconv code with NetBSD.  In most cases this only updates
  the RCS id because the changes are already there or are NetBSD specific.
  + libc/iconv/citrus_csmapper.c: Add a comment.
  + libc/iconv/citrus_db_factory.c: Remove put16().
  + libc/iconv/citrus_iconv.c: Return EINVAL on error.
  + libc/iconv/citrus_mapper.c: Return EINVAL on error.
  + libc/iconv/citrus_memstream.c: Fix type of a variable.
  + libc/iconv/citrus_prop.h: Sync definition of _CITRUS_PROP_HINT_END.
  + libc/iconv/citrus_stdenc.c: Return EINVAL on error.
  + libiconv_modules/mapper_std/citrus_mapper_std.c: Plug memory leak.

Obtained from:	NetBSD
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263986 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add atf m4 files from the vendor branch.

These were originally deleted as "not important" but, actually we need them
in place if we want to be able to use autoconf on software that provides
atf-based tests.  (That includes being able to rebuild autotest from scratch
on the Kyua cluster machines, as the automated setup does.)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263989 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add gpiobus(4) as a link to gpio(4).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@263990 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f