aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-06-05 16:02:41 +0200
committerBrian Behlendorf <[email protected]>2021-07-26 12:07:53 -0700
commit037af3e0d403e3850c5d4b0bc4854911013a6a15 (patch)
tree7a3a1377bcae57eb08348a18ddd5d0058802df0a /tests
parent2c69ba6444ad5c1eb54342964149c3095504c401 (diff)
Remove NOTE(CONSTCOND) and note.h
These were mostly used to annotate do {} while(0)s Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Issue #12201
Diffstat (limited to 'tests')
-rw-r--r--tests/zfs-tests/tests/functional/checksum/edonr_test.c3
-rw-r--r--tests/zfs-tests/tests/functional/checksum/sha2_test.c3
-rw-r--r--tests/zfs-tests/tests/functional/checksum/skein_test.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/tests/zfs-tests/tests/functional/checksum/edonr_test.c b/tests/zfs-tests/tests/functional/checksum/edonr_test.c
index a88756091..d8585ea4c 100644
--- a/tests/zfs-tests/tests/functional/checksum/edonr_test.c
+++ b/tests/zfs-tests/tests/functional/checksum/edonr_test.c
@@ -36,7 +36,6 @@
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <sys/note.h>
#include <sys/time.h>
#include <sys/stdtypes.h>
@@ -167,7 +166,6 @@ main(int argc, char *argv[])
(void) printf("FAILED!\n"); \
failed = B_TRUE; \
} \
- NOTE(CONSTCOND) \
} while (0)
#define EDONR_PERF_TEST(mode) \
@@ -194,7 +192,6 @@ main(int argc, char *argv[])
} \
(void) printf("Edon-R-%-6s%llu us (%.02f CPB)\n", #mode,\
(u_longlong_t)delta, cpb); \
- NOTE(CONSTCOND) \
} while (0)
(void) printf("Running algorithm correctness tests:\n");
diff --git a/tests/zfs-tests/tests/functional/checksum/sha2_test.c b/tests/zfs-tests/tests/functional/checksum/sha2_test.c
index 5800002a6..c7561b54f 100644
--- a/tests/zfs-tests/tests/functional/checksum/sha2_test.c
+++ b/tests/zfs-tests/tests/functional/checksum/sha2_test.c
@@ -40,7 +40,6 @@
#define _SHA2_IMPL
#include <sys/sha2.h>
#include <sys/stdtypes.h>
-#define NOTE(x)
/*
@@ -196,7 +195,6 @@ main(int argc, char *argv[])
(void) printf("FAILED!\n"); \
failed = B_TRUE; \
} \
- NOTE(CONSTCOND) \
} while (0)
#define SHA2_PERF_TEST(mode, diglen) \
@@ -223,7 +221,6 @@ main(int argc, char *argv[])
} \
(void) printf("SHA%-9s%llu us (%.02f CPB)\n", #mode, \
(u_longlong_t)delta, cpb); \
- NOTE(CONSTCOND) \
} while (0)
(void) printf("Running algorithm correctness tests:\n");
diff --git a/tests/zfs-tests/tests/functional/checksum/skein_test.c b/tests/zfs-tests/tests/functional/checksum/skein_test.c
index 55df9075c..484fad844 100644
--- a/tests/zfs-tests/tests/functional/checksum/skein_test.c
+++ b/tests/zfs-tests/tests/functional/checksum/skein_test.c
@@ -38,7 +38,6 @@
#include <stdio.h>
#include <sys/time.h>
#include <sys/stdtypes.h>
-#define NOTE(x)
/*
* Skein test suite using values from the Skein V1.3 specification found at:
@@ -285,7 +284,6 @@ main(int argc, char *argv[])
(void) printf("FAILED!\n"); \
failed = B_TRUE; \
} \
- NOTE(CONSTCOND) \
} while (0)
#define SKEIN_PERF_TEST(mode, diglen) \
@@ -314,7 +312,6 @@ main(int argc, char *argv[])
} \
(void) printf("Skein" #mode "/" #diglen "\t%llu us " \
"(%.02f CPB)\n", (u_longlong_t)delta, cpb); \
- NOTE(CONSTCOND) \
} while (0)
(void) printf("Running algorithm correctness tests:\n");