DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/2] Add missing includes to headers
@ 2015-05-25 12:23 Bruce Richardson
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Bruce Richardson
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bruce Richardson @ 2015-05-25 12:23 UTC (permalink / raw)
  To: dev

The convention in DPDK is that each header file should include 
any other headers on which it depends. This patch set adds in 
some missing header dependencies.

Bruce Richardson (2):
  eal: add missing include <stdio.h> to rte_pci.h
  kni: add missing include dependencies

 lib/librte_eal/common/include/rte_pci.h | 1 +
 lib/librte_kni/rte_kni.h                | 2 ++
 2 files changed, 3 insertions(+)

-- 
2.1.0

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

* [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h
  2015-05-25 12:23 [dpdk-dev] [PATCH 0/2] Add missing includes to headers Bruce Richardson
@ 2015-05-25 12:23 ` Bruce Richardson
  2015-05-28  8:52   ` Marc Sune
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies Bruce Richardson
  2015-05-29 17:36 ` [dpdk-dev] [PATCH 0/2] Add missing includes to headers Thomas Monjalon
  2 siblings, 1 reply; 6+ messages in thread
From: Bruce Richardson @ 2015-05-25 12:23 UTC (permalink / raw)
  To: dev

rte_pci.h depends upon stdio.h for the definition of the FILE type. Add
in #include <stdio.h> to the file to satisfy this dependency in cases
where the including C file does not already include stdio.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 lib/librte_eal/common/include/rte_pci.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h
index 223d3cd..a346532 100644
--- a/lib/librte_eal/common/include/rte_pci.h
+++ b/lib/librte_eal/common/include/rte_pci.h
@@ -74,6 +74,7 @@
 extern "C" {
 #endif
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <limits.h>
 #include <errno.h>
-- 
2.1.0

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

* [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies
  2015-05-25 12:23 [dpdk-dev] [PATCH 0/2] Add missing includes to headers Bruce Richardson
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Bruce Richardson
@ 2015-05-25 12:23 ` Bruce Richardson
  2015-05-28  8:54   ` Marc Sune
  2015-05-29 17:36 ` [dpdk-dev] [PATCH 0/2] Add missing includes to headers Thomas Monjalon
  2 siblings, 1 reply; 6+ messages in thread
From: Bruce Richardson @ 2015-05-25 12:23 UTC (permalink / raw)
  To: dev

The file rte_kni.h depends upon a number of other headers, some of which
are missing from the #include lines. The following #includes are added:
 * rte_memory.h - for the definition of phys_addr_t
 * rte_mempool.h - for the definition of mempool struct and the mempool
   create function.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 lib/librte_kni/rte_kni.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
index 98edd72..44240fe 100644
--- a/lib/librte_kni/rte_kni.h
+++ b/lib/librte_kni/rte_kni.h
@@ -47,6 +47,8 @@
  */
 
 #include <rte_pci.h>
+#include <rte_memory.h>
+#include <rte_mempool.h>
 
 #include <exec-env/rte_kni_common.h>
 
-- 
2.1.0

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

* Re: [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Bruce Richardson
@ 2015-05-28  8:52   ` Marc Sune
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Sune @ 2015-05-28  8:52 UTC (permalink / raw)
  To: dev



On 25/05/15 14:23, Bruce Richardson wrote:
> rte_pci.h depends upon stdio.h for the definition of the FILE type. Add
> in #include <stdio.h> to the file to satisfy this dependency in cases
> where the including C file does not already include stdio.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>   lib/librte_eal/common/include/rte_pci.h | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h
> index 223d3cd..a346532 100644
> --- a/lib/librte_eal/common/include/rte_pci.h
> +++ b/lib/librte_eal/common/include/rte_pci.h
> @@ -74,6 +74,7 @@
>   extern "C" {
>   #endif
>   
> +#include <stdio.h>
>   #include <stdlib.h>
>   #include <limits.h>
>   #include <errno.h>

Acked-by: Marc Sune <marc.sune@bisdn.de>

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

* Re: [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies Bruce Richardson
@ 2015-05-28  8:54   ` Marc Sune
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Sune @ 2015-05-28  8:54 UTC (permalink / raw)
  To: dev



On 25/05/15 14:23, Bruce Richardson wrote:
> The file rte_kni.h depends upon a number of other headers, some of which
> are missing from the #include lines. The following #includes are added:
>   * rte_memory.h - for the definition of phys_addr_t
>   * rte_mempool.h - for the definition of mempool struct and the mempool
>     create function.
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>   lib/librte_kni/rte_kni.h | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
> index 98edd72..44240fe 100644
> --- a/lib/librte_kni/rte_kni.h
> +++ b/lib/librte_kni/rte_kni.h
> @@ -47,6 +47,8 @@
>    */
>   
>   #include <rte_pci.h>
> +#include <rte_memory.h>
> +#include <rte_mempool.h>
>   
>   #include <exec-env/rte_kni_common.h>
>   

A fwd declaration of struct rte_mempool would be sufficient, but

Acked-by: Marc Sune <marc.sune@bisdn.de>

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

* Re: [dpdk-dev] [PATCH 0/2] Add missing includes to headers
  2015-05-25 12:23 [dpdk-dev] [PATCH 0/2] Add missing includes to headers Bruce Richardson
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Bruce Richardson
  2015-05-25 12:23 ` [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies Bruce Richardson
@ 2015-05-29 17:36 ` Thomas Monjalon
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Monjalon @ 2015-05-29 17:36 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

2015-05-25 13:23, Bruce Richardson:
> The convention in DPDK is that each header file should include 
> any other headers on which it depends. This patch set adds in 
> some missing header dependencies.
> 
> Bruce Richardson (2):
>   eal: add missing include <stdio.h> to rte_pci.h
>   kni: add missing include dependencies

Applied, thanks

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

end of thread, other threads:[~2015-05-29 18:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 12:23 [dpdk-dev] [PATCH 0/2] Add missing includes to headers Bruce Richardson
2015-05-25 12:23 ` [dpdk-dev] [PATCH 1/2] eal: add missing include <stdio.h> to rte_pci.h Bruce Richardson
2015-05-28  8:52   ` Marc Sune
2015-05-25 12:23 ` [dpdk-dev] [PATCH 2/2] kni: add missing include dependencies Bruce Richardson
2015-05-28  8:54   ` Marc Sune
2015-05-29 17:36 ` [dpdk-dev] [PATCH 0/2] Add missing includes to headers Thomas Monjalon

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).