From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] i40e: fix of compile errors Date: Thu, 18 Dec 2014 00:41:01 +0100 Message-ID: <1544745.Nsf0s5z0WG@xps13> References: <1418794859-7051-1-git-send-email-helin.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Helin Zhang Return-path: In-Reply-To: <1418794859-7051-1-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > Compile warning which is treated as error occurs on Oracle Linux > (kernel 2.6.39, gcc 4.4.7) as below. 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 Applied Thanks -- Thomas