Skip to content

Commit dfff0e3

Browse files
aguerinIntelherbertx
authored andcommitted
crypto: qat - remove unused macros in qat_comp_alg.c
As a result of the removal of qat_zlib_deflate, some defines where not removed. Remove them. This is to fix the following warning when compiling the QAT driver using the clang compiler with CC=clang W=2: drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:21:9: warning: macro is not used [-Wunused-macros] 21 | #define QAT_RFC_1950_CM_OFFSET 4 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:16:9: warning: macro is not used [-Wunused-macros] 16 | #define QAT_RFC_1950_HDR_SIZE 2 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:17:9: warning: macro is not used [-Wunused-macros] 17 | #define QAT_RFC_1950_FOOTER_SIZE 4 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:22:9: warning: macro is not used [-Wunused-macros] 22 | #define QAT_RFC_1950_DICT_MASK 0x20 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:18:9: warning: macro is not used [-Wunused-macros] 18 | #define QAT_RFC_1950_CM_DEFLATE 8 | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:20:9: warning: macro is not used [-Wunused-macros] 20 | #define QAT_RFC_1950_CM_MASK 0x0f | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:23:9: warning: macro is not used [-Wunused-macros] 23 | #define QAT_RFC_1950_COMP_HDR 0x785e | ^ drivers/crypto/intel/qat/qat_common/qat_comp_algs.c:19:9: warning: macro is not used [-Wunused-macros] 19 | #define QAT_RFC_1950_CM_DEFLATE_CINFO_32K 7 | ^ Fixes: e9dd20e ("crypto: qat - Remove zlib-deflate") Signed-off-by: Adam Guerin <adam.guerin@intel.com> Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent bcc06e1 commit dfff0e3

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

drivers/crypto/intel/qat/qat_common/qat_comp_algs.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,6 @@
1313
#include "qat_compression.h"
1414
#include "qat_algs_send.h"
1515

16-
#define QAT_RFC_1950_HDR_SIZE 2
17-
#define QAT_RFC_1950_FOOTER_SIZE 4
18-
#define QAT_RFC_1950_CM_DEFLATE 8
19-
#define QAT_RFC_1950_CM_DEFLATE_CINFO_32K 7
20-
#define QAT_RFC_1950_CM_MASK 0x0f
21-
#define QAT_RFC_1950_CM_OFFSET 4
22-
#define QAT_RFC_1950_DICT_MASK 0x20
23-
#define QAT_RFC_1950_COMP_HDR 0x785e
24-
2516
static DEFINE_MUTEX(algs_lock);
2617
static unsigned int active_devs;
2718

0 commit comments

Comments
 (0)