automatic DPDK test reports
 help / color / mirror / Atom feed
* [dpdk-test-report] |WARNING| pw93929 [PATCH v9 07/10] eal: implement functions for mutex management
       [not found] <1622850274-6946-8-git-send-email-navasile@linux.microsoft.com>
@ 2021-06-04 23:45 ` checkpatch
  0 siblings, 0 replies; only message in thread
From: checkpatch @ 2021-06-04 23:45 UTC (permalink / raw)
  To: test-report; +Cc: Narcisa Ana Maria Vasile

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

_coding style issues_


ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#208: FILE: lib/eal/windows/include/rte_windows_thread_types.h:10:
+#define WINDOWS_MUTEX_INITIALIZER               (void*)-1

ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses
#208: FILE: lib/eal/windows/include/rte_windows_thread_types.h:10:
+#define WINDOWS_MUTEX_INITIALIZER               (void*)-1

ERROR:POINTER_LOCATION: "foo* bar" should be "foo *bar"
#212: FILE: lib/eal/windows/include/rte_windows_thread_types.h:14:
+	void* mutex_id;

ERROR:POINTER_LOCATION: "foo* bar" should be "foo *bar"
#253: FILE: lib/eal/windows/rte_thread.c:500:
+	void* id = 0;

WARNING:LONG_LINE: line length of 109 exceeds 100 columns
#259: FILE: lib/eal/windows/rte_thread.c:506:
+	id = InterlockedCompareExchangePointer(&mutex->mutex_id, mutex->mutex_id, WINDOWS_MUTEX_INITIALIZER);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#263: FILE: lib/eal/windows/rte_thread.c:510:
+		if (ret != 0) {
+			return ret;
+		}

WARNING:LONG_LINE: line length of 112 exceeds 100 columns
#267: FILE: lib/eal/windows/rte_thread.c:514:
+		id = InterlockedCompareExchangePointer(&mutex->mutex_id, m.mutex_id, WINDOWS_MUTEX_INITIALIZER);

WARNING:BRACES: braces {} are not necessary for single statement blocks
#271: FILE: lib/eal/windows/rte_thread.c:518:
+		if (id != WINDOWS_MUTEX_INITIALIZER) {
+			rte_thread_mutex_destroy(&m);
+		}

WARNING:BRACES: braces {} are not necessary for single statement blocks
#295: FILE: lib/eal/windows/rte_thread.c:542:
+	if (mutex->mutex_id == WINDOWS_MUTEX_INITIALIZER) {
+		goto cleanup;
+	}

total: 4 errors, 5 warnings, 211 lines checked

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

only message in thread, other threads:[~2021-06-04 23:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1622850274-6946-8-git-send-email-navasile@linux.microsoft.com>
2021-06-04 23:45 ` [dpdk-test-report] |WARNING| pw93929 [PATCH v9 07/10] eal: implement functions for mutex management 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).