Plug a memory leak.

Reviewed by:	mav
Sponsored by:	Nginx, Inc.


git-svn-id: svn://svn.freebsd.org/base/head@247910 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add quirks to enable headphones redirection on number of Lenovo
laptops, namely X1, X1 Carbon, T420, T520.

PR:		misc/176656
Submitted by:	Hiren Panchasar <hiren.panchasara gmail.com>
Tested by:	glebius, X1 Carbon
Tested by:	osa, X1
Tested by:	Hiren Panchasar, T420
Tested by:	sbruno, T520
Reviewed by:	mav
Sponsored by:	Nginx, Inc.


git-svn-id: svn://svn.freebsd.org/base/head@247911 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add __clzsi2 and ctzsi2. They are required on ARMv4 and ARMv5 to implement
a number of builtin functions.


git-svn-id: svn://svn.freebsd.org/base/head@247912 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Suggest using the https: protocol not the svn: protocol to retrieve the
various repositories.


git-svn-id: svn://svn.freebsd.org/base/head@247913 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct two spelling mistakes in a comment.


git-svn-id: svn://svn.freebsd.org/base/head@247914 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The ZyXEL ZyAIR G-202 is also supported by zyd(4)

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247915 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Partially revert r247892 and r247904 since our strnvis() does not
behave the way OpenSSH expects.


git-svn-id: svn://svn.freebsd.org/base/head@247916 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix off-by-one error in nanoseconds validation.

Submitted by:	bde


git-svn-id: svn://svn.freebsd.org/base/head@247917 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix panic when Secondary_Element_Count == 1 and Secondary_Element_Seq
is not set (255).

Reported by:	sbruno
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247918 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Cleanup gr_add() so it does not leak mem
This is part of ongoing work on sbin/pw

M    libutil.h
M    gr_util.c

Approved by:	theraven


git-svn-id: svn://svn.freebsd.org/base/head@247919 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Now that stable/7 is EOL, stop building INDEX-7.

MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247940 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make c89(1) invoke /usr/bin/cc with argv[0] also set to /usr/bin/cc,
similar to what c99(1) does, to prevent "c89: illegal option -- 1"
messages, when clang is /usr/bin/cc.

Reported by:	tijl
MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@247951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make c99(1) invoke /usr/bin/cc with argv[0] set to "/usr/bin/cc" instead
of just "cc", since there is no reason to cause additional path searches
in this case.

MFC after:	3 days


git-svn-id: svn://svn.freebsd.org/base/head@247953 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make ctfconvert work correctly on clang-compiled object files.  Clang
puts the full original source filename in the STT_FILE entry of the ELF
symbol table, while gcc saves only the basename.

Since the DWARF DW_AT_name attribute contains the full source filename,
both for clang and gcc, ctfconvert takes just the basename of it, for
matching with the STT_FILE entry.  So when attempting to match with such
an entry, use its basename, if necessary.

Reported by:	avg
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247960 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Support the FAT16 partition type in gpart(8)

PR:		kern/174714
Submitted by:	4721 at hushmail dot com
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@247961 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix error in r247960: actually assign the basename to match.iim_file.

Pointed out by:	avg
Pointy hat to:	dim
MFC after:	1 week
X-MFC-With:	r247960


git-svn-id: svn://svn.freebsd.org/base/head@247962 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix GCC build:
/usr/src/sys/modules/nvme/../../dev/nvme/nvme.c:211: warning: format '%qx' expects type 'long unsigned int', but argument 9 has type 'long long unsigned int' [-Wformat]


git-svn-id: svn://svn.freebsd.org/base/head@247963 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add arm bits to truss.


git-svn-id: svn://svn.freebsd.org/base/head@247975 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This file is specific to arm11x6 processors, so tell the
assembler it's okay to use arm11x6 instructions.


git-svn-id: svn://svn.freebsd.org/base/head@248028 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/master'