patches for DPDK stable branches
 help / color / Atom feed
* [dpdk-stable] [dpdk-dev] [PATCH] eal: fix missing include
@ 2020-06-21  7:49 Yunjian Wang
  0 siblings, 0 replies; 2+ messages in thread
From: Yunjian Wang @ 2020-06-21  7:49 UTC (permalink / raw)
  To: dev; +Cc: sthemmin, Yunjian Wang, stable

This patch adds the missing include and fixes the build error:
/dpdk/build/include/rte_uuid.h: In function 'rte_uuid_copy':
/dpdk/build/include/rte_uuid.h:58:2: error: implicit declaration
of function 'memcpy' [-Werror=implicit-function-declaration]
  memcpy(dst, src, sizeof(rte_uuid_t));
  ^~~~~~

Fixes: 6bc67c497a51 ("eal: add uuid API")
Cc: stable@dpdk.org

Signed-off-by: Yunjian Wang <yunjian.wang@foxmail.com>
---
 lib/librte_eal/include/rte_uuid.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/include/rte_uuid.h b/lib/librte_eal/include/rte_uuid.h
index 044afbdfa..dc86eb292 100644
--- a/lib/librte_eal/include/rte_uuid.h
+++ b/lib/librte_eal/include/rte_uuid.h
@@ -15,6 +15,7 @@ extern "C" {
 #endif
 
 #include <stdbool.h>
+#include <string.h>
 
 /**
  * Struct describing a Universal Unique Identifier
-- 
2.18.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-stable] [dpdk-dev] [PATCH] eal: fix missing include
       [not found] <20200621074929.317051C014@dpdk.org>
@ 2020-07-09 17:46 ` David Marchand
  0 siblings, 0 replies; 2+ messages in thread
From: David Marchand @ 2020-07-09 17:46 UTC (permalink / raw)
  To: Yunjian Wang; +Cc: dev, Stephen Hemminger, dpdk stable

On Sun, Jun 21, 2020 at 9:49 AM Yunjian Wang <yunjian.wang@foxmail.com> wrote:
>
> This patch adds the missing include and fixes the build error:
> /dpdk/build/include/rte_uuid.h: In function 'rte_uuid_copy':
> /dpdk/build/include/rte_uuid.h:58:2: error: implicit declaration
> of function 'memcpy' [-Werror=implicit-function-declaration]
>   memcpy(dst, src, sizeof(rte_uuid_t));
>   ^~~~~~
>
> Fixes: 6bc67c497a51 ("eal: add uuid API")
> Cc: stable@dpdk.org
>
> Signed-off-by: Yunjian Wang <yunjian.wang@foxmail.com>
> ---
>  lib/librte_eal/include/rte_uuid.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/lib/librte_eal/include/rte_uuid.h b/lib/librte_eal/include/rte_uuid.h
> index 044afbdfa..dc86eb292 100644
> --- a/lib/librte_eal/include/rte_uuid.h
> +++ b/lib/librte_eal/include/rte_uuid.h
> @@ -15,6 +15,7 @@ extern "C" {
>  #endif
>
>  #include <stdbool.h>
> +#include <string.h>
>
>  /**
>   * Struct describing a Universal Unique Identifier
> --
> 2.18.1
>

A fix for this issue has been submitted before and made it to the main
branch this week.
https://git.dpdk.org/dpdk/commit/?id=edca6d883eb0137bc3caf7f93651a67360ebdf96

Thanks.


-- 
David Marchand


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21  7:49 [dpdk-stable] [dpdk-dev] [PATCH] eal: fix missing include Yunjian Wang
     [not found] <20200621074929.317051C014@dpdk.org>
2020-07-09 17:46 ` David Marchand

patches for DPDK stable branches

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/stable/0 stable/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 stable stable/ http://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


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