automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw66646 [PATCH v1 4/7] net/virtio: reuse packed ring xmit functions
       [not found] <20200313174230.74661-5-yong.liu@intel.com>
@ 2020-03-13 10:08 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2020-03-13 10:08 UTC (permalink / raw)
  To: test-report; +Cc: Marvin Liu

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

_coding style issues_


CHECK:MACRO_ARG_REUSE: Macro argument reuse 'var' - possible side-effects?
#262: FILE: drivers/net/virtio/virtqueue.h:567:
+#define ASSIGN_UNLESS_EQUAL(var, val) do {	\
+	if ((var) != (val))			\
+		(var) = (val);			\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse 'val' - possible side-effects?
#262: FILE: drivers/net/virtio/virtqueue.h:567:
+#define ASSIGN_UNLESS_EQUAL(var, val) do {	\
+	if ((var) != (val))			\
+		(var) = (val);			\
+} while (0)

CHECK:MACRO_ARG_REUSE: Macro argument reuse '_hdr' - possible side-effects?
#267: FILE: drivers/net/virtio/virtqueue.h:572:
+#define virtqueue_clear_net_hdr(_hdr) do {		\
+	ASSIGN_UNLESS_EQUAL((_hdr)->csum_start, 0);	\
+	ASSIGN_UNLESS_EQUAL((_hdr)->csum_offset, 0);	\
+	ASSIGN_UNLESS_EQUAL((_hdr)->flags, 0);		\
+	ASSIGN_UNLESS_EQUAL((_hdr)->gso_type, 0);	\
+	ASSIGN_UNLESS_EQUAL((_hdr)->gso_size, 0);	\
+	ASSIGN_UNLESS_EQUAL((_hdr)->hdr_len, 0);	\
+} while (0)

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

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

only message in thread, other threads:[~2020-03-13 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20200313174230.74661-5-yong.liu@intel.com>
2020-03-13 10:08 ` [dpdk-test-report] |WARNING| pw66646 [PATCH v1 4/7] net/virtio: reuse packed ring xmit functions checkpatch

automatic DPDK test reports

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/test-report/0 test-report/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 test-report test-report/ http://inbox.dpdk.org/test-report \
		test-report@dpdk.org
	public-inbox-index test-report

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.test-report


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git