automatic DPDK test reports
 help / color / mirror / Atom feed
From: checkpatch@dpdk.org
To: test-report@dpdk.org
Cc: Anatoly Burakov <anatoly.burakov@intel.com>
Subject: [dpdk-test-report] |WARNING| pw32449 [PATCH 16/23] eal: enable dynamic memory allocation/free on malloc/free
Date: Tue, 19 Dec 2017 12:13:33 +0100 (CET)	[thread overview]
Message-ID: <20171219111333.CC7171B016@dpdk.org> (raw)
In-Reply-To: <c9a798795633a8e4a4bf32f1a57c25bb5ce099fd.1513680516.git.anatoly.burakov@intel.com>

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

_coding style issues_


ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#148: FILE: lib/librte_eal/common/malloc_elem.c:427:
+void
+malloc_elem_hide_region(struct malloc_elem *elem, void *start, size_t len) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#288: FILE: lib/librte_eal/common/malloc_heap.c:158:
+		unsigned flags, size_t align, size_t bound)

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#309: FILE: lib/librte_eal/common/malloc_heap.c:176:
+static void *
+try_expand_heap(struct malloc_heap *heap, struct rte_memseg_list *msl,
+		const char *type, size_t size, int socket, unsigned flags,
+		size_t align, size_t bound) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#311: FILE: lib/librte_eal/common/malloc_heap.c:178:
+		const char *type, size_t size, int socket, unsigned flags,

WARNING:BRACES: braces {} are not necessary for single statement blocks
#362: FILE: lib/librte_eal/common/malloc_heap.c:229:
+	for (i = 0; i < n_pages; i++) {
+		eal_memalloc_free_page(ms[i]);
+	}

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#370: FILE: lib/librte_eal/common/malloc_heap.c:237:
+static int
+compare_pagesz(const void *a, const void *b) {

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#383: FILE: lib/librte_eal/common/malloc_heap.c:250:
+static void *
+heap_alloc_on_socket(const char *type, size_t size, int socket,
+		unsigned flags, size_t align, size_t bound) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#385: FILE: lib/librte_eal/common/malloc_heap.c:252:
+		unsigned flags, size_t align, size_t bound) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#392: FILE: lib/librte_eal/common/malloc_heap.c:259:
+	unsigned size_flags = flags & ~RTE_MEMZONE_SIZE_HINT_ONLY;

ERROR:OPEN_BRACE: open brace '{' following function definitions go on the next line
#483: FILE: lib/librte_eal/common/malloc_heap.c:350:
+void *
+malloc_heap_alloc(const char *type, size_t size, int socket_arg, unsigned flags,
+		size_t align, size_t bound) {

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#484: FILE: lib/librte_eal/common/malloc_heap.c:351:
+malloc_heap_alloc(const char *type, size_t size, int socket_arg, unsigned flags,

ERROR:POINTER_LOCATION: "(foo*)" should be "(foo *)"
#571: FILE: lib/librte_eal/common/malloc_heap.c:435:
+	malloc_elem_hide_region(elem, (void*) aligned_start, aligned_len);

WARNING:UNSPECIFIED_INT: Prefer 'unsigned int' to bare use of 'unsigned'
#603: FILE: lib/librte_eal/common/malloc_heap.h:56:
+malloc_heap_alloc(const char *type, size_t size, int socket, unsigned flags,

total: 6 errors, 7 warnings, 559 lines checked

           reply	other threads:[~2017-12-19 11:13 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <c9a798795633a8e4a4bf32f1a57c25bb5ce099fd.1513680516.git.anatoly.burakov@intel.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171219111333.CC7171B016@dpdk.org \
    --to=checkpatch@dpdk.org \
    --cc=anatoly.burakov@intel.com \
    --cc=test-report@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).