* [dpdk-test-report] |WARNING| pw71407 [PATCH 15/50] net/bnxt: add HCAPI interface support
[not found] <20200612132934.16488-16-somnath.kotur@broadcom.com>
@ 2020-06-12 13:42 ` checkpatch
0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-06-12 13:42 UTC (permalink / raw)
To: test-report; +Cc: Somnath Kotur
Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/71407
_coding style issues_
WARNING:LEADING_SPACE: please, no spaces at the start of a line
#273: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:173:
+ uint32_t dummy_data;$
WARNING:TABSTOP: Statements should start on a tabstop
#282: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:182:
+ struct hcapi_cfa_layout_tbl layouts;
WARNING:TABSTOP: Statements should start on a tabstop
#283: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:183:
+ struct hcapi_cfa_devops *devops;
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#289: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:189:
+int hcapi_cfa_key_compile_layout(
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#293: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:193:
+int hcapi_cfa_action_compile_layout(
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#296: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:196:
+int hcapi_cfa_action_init_obj(
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#299: FILE: drivers/net/bnxt/hcapi/hcapi_cfa.h:199:
+int hcapi_cfa_action_compute_ptr(
WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line
#478: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:2:
+/*
+ * Copyright(c) Broadcom Limited.
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'mask' - possible side-effects?
#501: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:25:
+#define __CFA_ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
CHECK:SPACING: spaces preferred around that '-' (ctx:VxV)
#502: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:26:
+#define CFA_ALIGN(x, a) __CFA_ALIGN_MASK(x, (a)-1)
^
WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line
#551: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:75:
+ HCAPI_CFA_HWOPS_ADD, /**< For operations which require more then simple
+ * writes to HW, this operation is used. The
WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line
#559: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:83:
+ HCAPI_CFA_HWOPS_DEL, /**< This issues operations to clear the hardware.
+ * This operation is used in conjunction
WARNING:BLOCK_COMMENT_STYLE: Block comments use a trailing */ on a separate line
#809: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:333:
+ * in bytes. */
CHECK:OPEN_ENDED_LINE: Lines should not end with a '('
#1071: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_defs.h:595:
+int hcapi_cfa_init_key_layout_contents(
WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#1166: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:15:
+#if 0
WARNING:AVOID_EXTERNS: externs should be avoided in .c files
#1169: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:18:
+int hcapi_cfa_key_hw_op(struct hcapi_cfa_hwop *op,
WARNING:INLINE: plain inline is preferred over __inline
#1181: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:30:
+static __inline uint32_t SWAP_WORDS32(uint32_t val32)
CHECK:BOOL_COMPARISON: Using comparison to true is error prone
#1192: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:41:
+ if (hcapi_cfa_lkup_init == true)
CHECK:MACRO_ARG_REUSE: Macro argument reuse 'crc' - possible side-effects?
#1212: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:61:
+#define ucrc32(ch, crc) (crc32tbl[((crc) ^ (ch)) & 0xff] ^ ((crc) >> 8))
WARNING:IF_0: Consider removing the code enclosed by this #if 0 and its #endif
#1378: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:227:
+#if 0
CHECK:BOOL_COMPARISON: Using comparison to false is error prone
#1400: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:249:
+ if (hcapi_cfa_lkup_init == false)
WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line
#1542: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:391:
+ case HCAPI_CFA_HWOPS_ADD: /**< For operations which require more then simple
+ * writes to HW, this operation is used. The
WARNING:BLOCK_COMMENT_STYLE: Block comments should align the * on each line
#1570: FILE: drivers/net/bnxt/hcapi/hcapi_cfa_p4.h:2:
+/*
+ * Copyright(c) Broadcom Limited.
WARNING:LONG_LINE: line over 90 characters
#2090: FILE: drivers/net/bnxt/tf_core/tf_em.c:387:
+ mask = tf_em_get_key_mask(tbl_scope_cb->em_ctx_info[parms->dir].em_tables[TF_KEY0_TABLE].num_entries);
total: 0 errors, 14 warnings, 10 checks, 2218 lines checked
Warning in /drivers/net/bnxt/hcapi/hcapi_cfa_p4.c:
Using compiler attribute directly
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-12 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20200612132934.16488-16-somnath.kotur@broadcom.com>
2020-06-12 13:42 ` [dpdk-test-report] |WARNING| pw71407 [PATCH 15/50] net/bnxt: add HCAPI interface support checkpatch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).