[v5,4/8] rib: fix missing header include

Message ID 20210126213809.1479893-5-bruce.richardson@intel.com (mailing list archive)
State Superseded, archived
Delegated to: David Marchand
Headers
Series add checking of header includes |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Jan. 26, 2021, 9:38 p.m. UTC
  The rte_rib6 header was using RTE_MIN macro from rte_common.h but not
including the header file.

Fixes: f7e861e21c46 ("rib: support IPv6")
Cc: vladimir.medvedkin@intel.com

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

Comments

Vladimir Medvedkin Jan. 27, 2021, 11:08 a.m. UTC | #1
On 26/01/2021 21:38, Bruce Richardson wrote:
> The rte_rib6 header was using RTE_MIN macro from rte_common.h but not
> including the header file.
> 
> Fixes: f7e861e21c46 ("rib: support IPv6")
> Cc: vladimir.medvedkin@intel.com
> 
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>   lib/librte_rib/rte_rib6.h | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/lib/librte_rib/rte_rib6.h b/lib/librte_rib/rte_rib6.h
> index b5e10569b9..dbd52928a2 100644
> --- a/lib/librte_rib/rte_rib6.h
> +++ b/lib/librte_rib/rte_rib6.h
> @@ -20,6 +20,7 @@
>   
>   #include <rte_memcpy.h>
>   #include <rte_compat.h>
> +#include <rte_common.h>
>   
>   #ifdef __cplusplus
>   extern "C" {
> 

Acked-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
  

Patch

diff --git a/lib/librte_rib/rte_rib6.h b/lib/librte_rib/rte_rib6.h
index b5e10569b9..dbd52928a2 100644
--- a/lib/librte_rib/rte_rib6.h
+++ b/lib/librte_rib/rte_rib6.h
@@ -20,6 +20,7 @@ 
 
 #include <rte_memcpy.h>
 #include <rte_compat.h>
+#include <rte_common.h>
 
 #ifdef __cplusplus
 extern "C" {