ethdev: fix compilation issue with vtune option

Message ID 20220505130138.501013-1-aman.deep.singh@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Andrew Rybchenko
Headers
Series ethdev: fix compilation issue with vtune option |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-aarch64-compile-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS

Commit Message

Singh, Aman Deep May 5, 2022, 1:01 p.m. UTC
  When VTune profile option is enabled, compilation
error is seen.

Bugzilla ID: 1004
Fixes: 2c1bbab7f09d ("ethdev: change vtune profiling approach")
Cc: ilia.kurakin@intel.com

Signed-off-by: Aman Singh <aman.deep.singh@intel.com>
---
 lib/ethdev/ethdev_profile.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Andrew Rybchenko May 12, 2022, 8:26 a.m. UTC | #1
On 5/5/22 16:01, Aman Singh wrote:
> When VTune profile option is enabled, compilation
> error is seen.
> 
> Bugzilla ID: 1004
> Fixes: 2c1bbab7f09d ("ethdev: change vtune profiling approach")
> Cc: ilia.kurakin@intel.com
> 
> Signed-off-by: Aman Singh <aman.deep.singh@intel.com>
> ---
>   lib/ethdev/ethdev_profile.h | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/lib/ethdev/ethdev_profile.h b/lib/ethdev/ethdev_profile.h
> index e5ee4df824..881aec1273 100644
> --- a/lib/ethdev/ethdev_profile.h
> +++ b/lib/ethdev/ethdev_profile.h
> @@ -6,6 +6,7 @@
>   #define _RTE_ETHDEV_PROFILE_H_
>   
>   #include "rte_ethdev.h"
> +#include "ethdev_driver.h"
>   
>   /**
>    * Initialization of the Ethernet device profiling.

Fixes: f9bdee267ab8 ("ethdev: hide internal structures")
Cc: stable@dpdk.org

Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>

Applied, thanks.
  

Patch

diff --git a/lib/ethdev/ethdev_profile.h b/lib/ethdev/ethdev_profile.h
index e5ee4df824..881aec1273 100644
--- a/lib/ethdev/ethdev_profile.h
+++ b/lib/ethdev/ethdev_profile.h
@@ -6,6 +6,7 @@ 
 #define _RTE_ETHDEV_PROFILE_H_
 
 #include "rte_ethdev.h"
+#include "ethdev_driver.h"
 
 /**
  * Initialization of the Ethernet device profiling.