i40e: fix build with some toolchains
authorHelin Zhang <helin.zhang@intel.com>
Wed, 17 Dec 2014 05:40:59 +0000 (13:40 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 23:26:08 +0000 (00:26 +0100)
commit8ae50a6ba9b8185a2377096b1600db284f259a11
tree8ed1fa53b9d0ad3710c9e896452a7ef892c0ab7d
parent190a61b14c76b194b2cae7b3af0eea6822caf510
i40e: fix build with some toolchains

Compile warning which is treated as error occurs on Oracle Linux
(kernel 2.6.39, gcc 4.4.7) as below, or RHEL, CentOS. Aliasing
'struct i40e_aqc_debug_reg_read_write' should be avoided. Use the
elements inside that structure directly can fix the issue.

lib/librte_pmd_i40e/i40e_ethdev.c: In function 'eth_i40e_dev_init':
lib/librte_pmd_i40e/i40e_ethdev.c:5318: error: dereferencing pointer
  'cmd' does break strict-aliasing rules
lib/librte_pmd_i40e/i40e_ethdev.c:5314: note: initialized from here

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
lib/librte_pmd_i40e/i40e_ethdev.c