automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw41988 [1/9] net/cxgbe: query firmware for HASH filter resources
       [not found] <ed3b702573e5f562600f6a446e1bbcdadd90246c.1530295732.git.rahul.lakkireddy@chelsio.com>
@ 2018-06-29 18:14 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2018-06-29 18:14 UTC (permalink / raw)
  To: test-report; +Cc: Rahul Lakkireddy

Test-Label: checkpatch
Test-Status: WARNING
http://dpdk.org/patch/41988

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'x' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)(                     \
+{                                                       \
+	typeof(x) quot = (x) / (denom);                 \
+	typeof(x) rem  = (x) % (denom);                 \
+	(quot * (numer)) + ((rem * (numer)) / (denom)); \
+}                                                       \
+)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'numer' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)(                     \
+{                                                       \
+	typeof(x) quot = (x) / (denom);                 \
+	typeof(x) rem  = (x) % (denom);                 \
+	(quot * (numer)) + ((rem * (numer)) / (denom)); \
+}                                                       \
+)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'denom' - possible side-effects?
#87: FILE: drivers/net/cxgbe/cxgbe_compat.h:257:
+#define mult_frac(x, numer, denom)(                     \
+{                                                       \
+	typeof(x) quot = (x) / (denom);                 \
+	typeof(x) rem  = (x) % (denom);                 \
+	(quot * (numer)) + ((rem * (numer)) / (denom)); \
+}                                                       \
+)

total: 0 errors, 0 warnings, 3 checks, 231 lines checked

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-06-29 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <ed3b702573e5f562600f6a446e1bbcdadd90246c.1530295732.git.rahul.lakkireddy@chelsio.com>
2018-06-29 18:14 ` [dpdk-test-report] |WARNING| pw41988 [1/9] net/cxgbe: query firmware for HASH filter resources 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).