Remove extra sbuf_trim() copy/pasted into r243530.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243533 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix uninitialized variable reported by gcc, but not clang.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243535 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
- smbfs_rename() might return an error value without correctly upgrading
the vnode use count, and this might cause the kernel to panic if compiled
with WITNESS enable.
- Be sure to put the '\0' terminator to the rpath string.

Sponsored by:	iXsystems inc.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243548 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use modern license instead of being consistent with the other pkg_ tools
Use a more informative message
Fix some style(9) nits.
Bump version number
In pkg_add only warn users after the chroot is performed.

Submitted by:	gavin, jilles
Reviewed by:	beat, bapt
Approved by:	cperciva
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243553 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Provide an option to users to shoot themselves in the foot.

Reviewed by:	bapt
Approved by:	cperciva
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243554 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow shutdown() to be used on fds returned from sctp_peeloff().

MFC after: 3 days


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

Introduce a new dataset aclmode setting "restricted" to protect ACL's
being destroyed or corrupted by a drive-by chmod.

illumos-gate 13889:a67716f16746
3254 add support in zfs for aclmode=restricted

References:
https://www.illumos.org/issues/3254

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update manpage dates in zfs.8 and zpool.8

MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Find the endpoint for an incoming packet also if the endpoint
comes from sctp_peeloff().

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add support for sctp_peeloff() also in the front states of the
association.

MFC after: 3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243565 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix typo in weekly line which made it to rotated after reaching > 1 Kb.

PR:		conf/173857
Submitted by:	Matt Smith <matt xtaz.co.uk>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Re-initialize eh pointer after m_adj()

Submitted by:	Kohji Okuno <okuno.kohji jp.panasonic.com>
Reviewed by:	yongari


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  drbr_enqueue() awlays consumes mbuf, no matter did it
fail or not. The mbuf pointer is no longer valid, so
can't be reused after.

  Fix igb_mq_start() where mbuf pointer was used after
drbr_enqueue().

  This eventually leads us to all invocations of
igb_mq_start_locked() called with third argument as NULL.
This allows us to simplify this function.

Submitted by:	Karim Fodil-Lemelin <fodillemlinkarim gmail.com>
Reviewed by:	jfv


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix problem with the Samsung 840 PRO series SSD detection.
The device reports support for SATA Asynchronous Notification in its
IDENTIFY data, but returns error on attempt to enable that feature.
Make SATA XPT of CAM only report these errors, but not fail the device.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Pull in r168610 from upstream libc++:

  When using libc++ headers on FreeBSD, in combination with -std=c++98,
  -ansi or -std=c++03, the long long type is not supported.  So in this
  case, several functions and types, like lldiv_t, strtoll(), are not
  declared.

This should make it possible to use the libc++ headers in c++98 mode.

Note: libc++ is originally designed as a c++0x or higher library, so you
should still take care when using it with c++98 or c++03.

Noted by:	Yamaya Takashi <yamayan@kbh.biglobe.ne.jp>
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Unbreak building a kernel with EHCI: there's no ehci_atmelarm.c.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243575 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't define intr_disable and intr_restore as macros. The macros
interfere with structure fields of the same name in drivers, like
the intr_disable function pointer in struct cphy_ops in cxgb(4).
Instead define intr_disable and intr_restore as inline functions.

With intr_disable() an inline function, the I32_bit and F32_bit
macros now need to be visible in MI code and given the rather
poor names, this is not at all good. Define ARM_CPSR_F32 and
ARM_CPSR_I32 and use that instead of F32_bit and I32_bit (resp)
for now.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243576 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove print_kernel_section_addr(). All statements in that function
expand to uncompilable code when the kernel configuration contains
"options DEBUG", such as it is for LINT. The toolchain is often a
better approach to figure this out, as it doesn't require one to
boot the kernel.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243578 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't include arm/xscale/i8134x/i81342reg.h when we're compiling LINT.
The definitions in i81342reg.h clash with those in i80321reg.h.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@243579 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow building LINT by defining both SAMPLE_AT_RESET on the one hand
and SAMPLE_AT_RESET_{LO|HI} on the other. It doesn't matter which
values they take, as long as they are defined.


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