From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] igb_uio: cast private data to correct struct type Date: Mon, 07 Mar 2016 23:29:42 +0100 Message-ID: <1483778.aRTeyB1ERv@xps13> References: <1457024900-18245-1-git-send-email-ferruh.yigit@intel.com> <2601191342CEEE43887BDE71AB97725836B163EF@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Yigit, Ferruh" Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 5696F29D2 for ; Mon, 7 Mar 2016 23:31:21 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id l68so4585714wml.1 for ; Mon, 07 Mar 2016 14:31:21 -0800 (PST) In-Reply-To: <2601191342CEEE43887BDE71AB97725836B163EF@irsmsx105.ger.corp.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-03-04 13:17, Ananyev, Konstantin: > > Subject: [dpdk-dev] [PATCH] igb_uio: cast private data to correct struct type > > > > Fixes: af75078fece3 ("first public release") > > > > This was working fine because addresses of two structs are same: > > > > struct A { > > struct B b; > > } a; > > > > As above sample "a" and "b" has same address. > > > > Now casting private data back to the correct struct type, to the one > > stored. > > > > Signed-off-by: Ferruh Yigit > > Acked-by: Konstantin Ananyev Applied, thanks