DPDK patches and discussions
 help / color / mirror / Atom feed
From: Ali Alnubani <alialnu@mellanox.com>
To: dev@dpdk.org
Cc: suanmingm@mellanox.com, Raslan Darawsheh <rasland@mellanox.com>
Subject: [dpdk-dev] [PATCH] common/mlx5: fix mlx5 build
Date: Sun, 19 Jul 2020 14:51:53 +0300	[thread overview]
Message-ID: <20200719115153.19586-1-alialnu@mellanox.com> (raw)

This fixes the following build errors by adding 2
missing header includes:

```
drivers/common/mlx5/linux/mlx5_glue.c: In function
    'mlx5_glue_destroy_flow_action':
drivers/common/mlx5/linux/mlx5_glue.c:187:2: error: implicit declaration
    of function 'mlx5_free' [-Werror=implicit-function-declaration]
  mlx5_free(action);
  ^
...
drivers/common/mlx5/linux/mlx5_glue.c:620:46: error: 'SOCKET_ID_ANY'
    undeclared (first use in this function)
  action = mlx5_malloc(0, sizeof(*action), 0, SOCKET_ID_ANY);
...
```

The build error reproduces on Ubuntu 16.04 with rdma-core version v22.1 and
with gcc version 5.4.0.

Fixes: 0e25e18bfba9 ("common/mlx5: convert control path memory to unified malloc")
Cc: suanmingm@mellanox.com

Signed-off-by: Ali Alnubani <alialnu@mellanox.com>
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
---
 drivers/common/mlx5/linux/mlx5_glue.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/common/mlx5/linux/mlx5_glue.c b/drivers/common/mlx5/linux/mlx5_glue.c
index ea9c86b3a..fcf03e867 100644
--- a/drivers/common/mlx5/linux/mlx5_glue.c
+++ b/drivers/common/mlx5/linux/mlx5_glue.c
@@ -8,6 +8,7 @@
 #include <stddef.h>
 #include <stdint.h>
 #include <stdlib.h>
+#include <rte_memory.h>
 /*
  * Not needed by this file; included to work around the lack of off_t
  * definition for mlx5dv.h with unpatched rdma-core versions.
@@ -15,6 +16,7 @@
 #include <sys/types.h>
 
 #include "mlx5_glue.h"
+#include "../mlx5_malloc.h"
 
 static int
 mlx5_glue_fork_init(void)
-- 
2.27.0


             reply	other threads:[~2020-07-19 11:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 11:51 Ali Alnubani [this message]
2020-07-19 15:17 ` Raslan Darawsheh
2020-07-20  8:24   ` David Marchand
2020-07-20  8:38     ` Raslan Darawsheh
2020-07-20  8:51       ` David Marchand
2020-07-20  8:59         ` Raslan Darawsheh
2020-07-20 12:23           ` David Marchand

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=20200719115153.19586-1-alialnu@mellanox.com \
    --to=alialnu@mellanox.com \
    --cc=dev@dpdk.org \
    --cc=rasland@mellanox.com \
    --cc=suanmingm@mellanox.com \
    /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).