freebsd-dev/sys/mips
Conrad Meyer 580744621f copystr(9): Move to deprecate [2/2]
Unlike the other copy*() functions, it does not serve to copy from one
address space to another or protect against potential faults.  It's just
an older incarnation of the now-more-common strlcpy().

Add a coccinelle script to tools/ which can be used to mechanically
convert existing instances where replacement with strlcpy is trivial.
In the two cases which matched, fuse_vfsops.c and union_vfsops.c, the
code was further refactored manually to simplify.

Replace the declaration of copystr() in systm.h with a small macro
wrapper around strlcpy.

Remove N redundant MI implementations of copystr.  For MIPS, this
entailed inlining the assembler copystr into the only consumer,
copyinstr, and making the latter a leaf function.

Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D24672
2020-05-11 22:57:21 +00:00
..
atheros [atheros] [if_arge] Various fixes to avoid TX stalls and bad sized packets 2020-05-10 03:36:11 +00:00
beri beri: correct kernel printf typo 2020-02-05 19:15:36 +00:00
broadcom Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
cavium Remove MD5 HMAC from OCF. 2020-05-11 22:08:08 +00:00
conf Add 'gpio' since mmc now requires gpio_if.h. 2020-04-16 20:45:54 +00:00
include Use the right type for 64-bit coprocessor registers. 2020-04-17 18:24:47 +00:00
ingenic Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
malta Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
mediatek Move phys_avail definition into MI code. It is consumed in the MI layer and 2019-08-16 00:45:14 +00:00
mips copystr(9): Move to deprecate [2/2] 2020-05-11 22:57:21 +00:00
nlm Remove MD5 HMAC from OCF. 2020-05-11 22:08:08 +00:00