mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Remove NOTE(CONSTCOND) and note.h
These were mostly used to annotate do {} while(0)s
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Issue #12201
This commit is contained in:
@@ -28,7 +28,6 @@
|
||||
#include <libintl.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/inttypes.h>
|
||||
#include <sys/note.h>
|
||||
#include <stdarg.h>
|
||||
#include "libnvpair.h"
|
||||
|
||||
@@ -191,9 +190,9 @@ static int \
|
||||
nvprint_##type_and_variant(nvlist_prtctl_t pctl, void *private, \
|
||||
nvlist_t *nvl, const char *name, vtype value) \
|
||||
{ \
|
||||
(void) private; \
|
||||
(void) nvl; \
|
||||
FILE *fp = pctl->nvprt_fp; \
|
||||
NOTE(ARGUNUSED(private)) \
|
||||
NOTE(ARGUNUSED(nvl)) \
|
||||
indent(pctl, 1); \
|
||||
(void) fprintf(fp, pctl->nvprt_nmfmt, name); \
|
||||
(void) fprintf(fp, vfmt, (ptype)value); \
|
||||
@@ -224,10 +223,10 @@ static int \
|
||||
nvaprint_##type_and_variant(nvlist_prtctl_t pctl, void *private, \
|
||||
nvlist_t *nvl, const char *name, vtype *valuep, uint_t count) \
|
||||
{ \
|
||||
(void) private; \
|
||||
(void) nvl; \
|
||||
FILE *fp = pctl->nvprt_fp; \
|
||||
uint_t i; \
|
||||
NOTE(ARGUNUSED(private)) \
|
||||
NOTE(ARGUNUSED(nvl)) \
|
||||
for (i = 0; i < count; i++) { \
|
||||
if (i == 0 || pctl->nvprt_btwnarrfmt_nl) { \
|
||||
indent(pctl, 1); \
|
||||
|
||||
@@ -98,6 +98,4 @@
|
||||
#define offsetof(s, m) ((size_t)(&(((s *)0)->m)))
|
||||
#endif
|
||||
|
||||
#define _NOTE(x)
|
||||
|
||||
#endif /* _LIBSPL_SYS_SYSMACROS_H */
|
||||
|
||||
Reference in New Issue
Block a user