Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h>

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12996
This commit is contained in:
наб
2022-01-22 01:56:46 +01:00
committed by Brian Behlendorf
parent 861166b027
commit d465fc5844
61 changed files with 63 additions and 141 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
* cryptographic use. Users of Edon-R must interface directly to this module.
*/
#include <sys/strings.h>
#include <sys/string.h>
#include <sys/edonr.h>
#include <sys/debug.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#define _SKEIN_IMPL_H_
#include <sys/skein.h>
#include <sys/strings.h>
#include <sys/string.h>
#include "skein_impl.h"
#include "skein_port.h"
+2 -2
View File
@@ -40,7 +40,7 @@
#include <sys/nvpair_impl.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <rpc/xdr.h>
#include <sys/mod.h>
@@ -53,7 +53,7 @@
#include <stddef.h>
#endif
#define skip_whitespace(p) while ((*(p) == ' ') || (*(p) == '\t')) p++
#define skip_whitespace(p) while ((*(p) == ' ') || (*(p) == '\t')) (p)++
/*
* nvpair.c - Provides kernel & userland interfaces for manipulating
-1
View File
@@ -37,7 +37,6 @@
#include <errno.h>
#include <stdlib.h>
#include <stddef.h>
#include <strings.h>
#include <unistd.h>
#include <assert.h>
#include <grp.h>
-2
View File
@@ -39,8 +39,6 @@ __FBSDID("$FreeBSD$");
#include <sys/sysctl.h>
#include <opencrypto/cryptodev.h>
#include <opencrypto/xform.h>
#else
#include <strings.h>
#endif
#include <sys/zio_crypt.h>
+1 -1
View File
@@ -42,7 +42,7 @@
#include <linux/ctype.h>
#include <sys/disp.h>
#include <sys/random.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <linux/kmod.h>
#include <linux/mod_compat.h>
#include <sys/cred.h>
+1 -1
View File
@@ -44,7 +44,7 @@
#include <sys/types.h>
#include <sys/uio_impl.h>
#include <sys/sysmacros.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <linux/kmap_compat.h>
#include <linux/uaccess.h>
+1 -1
View File
@@ -36,7 +36,7 @@
*/
#include <sys/types.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <sys/param.h>
#include <sys/sysmacros.h>
#include <sys/debug.h>
+1 -1
View File
@@ -36,7 +36,7 @@
#include <libnvpair.h>
#include <ctype.h>
#endif
#include <sys/strings.h>
#include <sys/string.h>
#include <sys/dsl_deleg.h>
#include "zfs_prop.h"
#include "zfs_deleg.h"
+1 -1
View File
@@ -45,7 +45,7 @@
#include <sys/simd.h>
#include <sys/spa_checksum.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <zfs_fletcher.h>
ZFS_NO_SANITIZE_UNDEFINED
+1 -1
View File
@@ -27,7 +27,7 @@
#include <sys/byteorder.h>
#include <sys/frame.h>
#include <sys/spa_checksum.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <sys/simd.h>
#include <zfs_fletcher.h>
+1 -1
View File
@@ -43,8 +43,8 @@
#if defined(HAVE_AVX) && defined(HAVE_AVX2)
#include <sys/spa_checksum.h>
#include <sys/string.h>
#include <sys/simd.h>
#include <sys/strings.h>
#include <zfs_fletcher.h>
ZFS_NO_SANITIZE_UNDEFINED
+1 -1
View File
@@ -45,8 +45,8 @@
#include <sys/simd.h>
#include <sys/spa_checksum.h>
#include <sys/string.h>
#include <sys/byteorder.h>
#include <sys/strings.h>
#include <zfs_fletcher.h>
ZFS_NO_SANITIZE_UNDEFINED
+1 -1
View File
@@ -44,7 +44,7 @@
#include <sys/param.h>
#include <sys/byteorder.h>
#include <sys/spa_checksum.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <zfs_fletcher.h>
ZFS_NO_SANITIZE_UNDEFINED
+1 -1
View File
@@ -44,7 +44,7 @@
#include <sys/param.h>
#include <sys/byteorder.h>
#include <sys/spa_checksum.h>
#include <sys/strings.h>
#include <sys/string.h>
#include <zfs_fletcher.h>
ZFS_NO_SANITIZE_UNDEFINED
-1
View File
@@ -28,7 +28,6 @@
#include <sys/debug.h>
#include <sys/types.h>
#include <sys/strings.h>
#include <sys/qat.h>
#include <sys/zio_compress.h>