net/i40e: fix ISO C in exported header
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Thu, 21 Dec 2017 12:59:57 +0000 (13:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 16 Jan 2018 23:24:56 +0000 (00:24 +0100)
Reported by check-includes.sh:

 [...]/rte_pmd_i40e.h:97:30: error: ISO C restricts enumerator values to
     range of `int' [-Werror=pedantic]
   RTE_PMD_I40E_PKG_INFO_MAX = 0xFFFFFFFF
                               ^

Fixes: edeab742edac ("net/i40e: get information about DDP profile")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/rte_pmd_i40e.h

index 1bdb68a..cfdcae7 100644 (file)
@@ -66,7 +66,7 @@ enum rte_pmd_i40e_package_info {
        RTE_PMD_I40E_PKG_INFO_PCTYPE_LIST,
        RTE_PMD_I40E_PKG_INFO_PTYPE_NUM,
        RTE_PMD_I40E_PKG_INFO_PTYPE_LIST,
-       RTE_PMD_I40E_PKG_INFO_MAX = 0xFFFFFFFF
+       RTE_PMD_I40E_PKG_INFO_MAX = (int)0xFFFFFFFF
 };
 
 /**