include: qat.h: mark unused macro arguments as used

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12844
This commit is contained in:
наб 2021-12-12 17:01:21 +01:00 committed by Brian Behlendorf
parent da5f5ec508
commit 29d033c6b5
1 changed files with 17 additions and 9 deletions

View File

@ -188,12 +188,20 @@ extern int qat_checksum(uint64_t cksum, uint8_t *buf, uint64_t size,
#define CPA_STATUS_INCOMPRESSIBLE (-127)
#define qat_init()
#define qat_fini()
#define qat_dc_use_accel(s_len) 0
#define qat_crypt_use_accel(s_len) 0
#define qat_checksum_use_accel(s_len) 0
#define qat_compress(dir, s, sl, d, dl, cl) 0
#define qat_crypt(dir, s, d, a, al, i, db, k, c, el) 0
#define qat_checksum(c, buf, s, z) 0
#define qat_dc_use_accel(s_len) ((void) sizeof (s_len), 0)
#define qat_crypt_use_accel(s_len) ((void) sizeof (s_len), 0)
#define qat_checksum_use_accel(s_len) ((void) sizeof (s_len), 0)
#define qat_compress(dir, s, sl, d, dl, cl) \
((void) sizeof (dir), (void) sizeof (s), (void) sizeof (sl), \
(void) sizeof (d), (void) sizeof (dl), (void) sizeof (cl), 0)
#define qat_crypt(dir, s, d, a, al, i, db, k, c, el) \
((void) sizeof (dir), (void) sizeof (s), (void) sizeof (d), \
(void) sizeof (a), (void) sizeof (al), (void) sizeof (i), \
(void) sizeof (db), (void) sizeof (k), (void) sizeof (c), \
(void) sizeof (el), 0)
#define qat_checksum(c, buf, s, z) \
((void) sizeof (c), (void) sizeof (buf), (void) sizeof (s), \
(void) sizeof (z), 0)
#endif
#endif /* _SYS_QAT_H */