[dpdk-dev] [PATCH] i40e: fix shared code compile warning

Thomas Monjalon thomas.monjalon at 6wind.com
Tue Jun 24 10:46:50 CEST 2014


Hi,

2014-06-24 13:22, Chen Jing D:
> Fix a compile warning in shared code on 32-bits RHEL6.3/6.5.
> 
> Signed-off-by: Chen Jing D(Mark) <jing.d.chen at intel.com>

In such case you should show the error message in the log.
	lib/librte_pmd_i40e/i40e/i40e_lan_hmc.c:917:
	error: integer constant is too large for ‘long’ type

> --- a/lib/librte_pmd_i40e/Makefile
> +++ b/lib/librte_pmd_i40e/Makefile
> @@ -52,6 +52,7 @@ CFLAGS_SHARED_DRIVERS += -Wno-missing-field-initializers
>  CFLAGS_SHARED_DRIVERS += -Wno-pointer-to-int-cast
>  CFLAGS_SHARED_DRIVERS += -Wno-format-nonliteral
>  CFLAGS_SHARED_DRIVERS += -Wno-format-security
> +CFLAGS_i40e_lan_hmc.o += -Wno-error

I know we shouldn't modify base drivers. But this one seems to be an important 
error. In such case, we already modified base driver. Recently:
	http://dpdk.org/ml/archives/dev/2014-June/003498.html

-- 
Thomas


More information about the dev mailing list