From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: irq_to_desc undefined when compiling igb_uio Date: Tue, 26 Aug 2014 15:32:08 -0700 Message-ID: <20140826153208.290ee639@urahara> References: <845ED019F5932D4E8BED0A693FDBF6E72442E8E7@G4W3304.americas.hpqcorp.net> <20140826213253.GC6818@drone.musicnaut.iki.fi> <845ED019F5932D4E8BED0A693FDBF6E72442E9B8@G4W3304.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" , Aaro Koskinen To: "Habibi, Michael" Return-path: In-Reply-To: <845ED019F5932D4E8BED0A693FDBF6E72442E9B8-RRep26GplRYSZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@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" On Tue, 26 Aug 2014 21:43:15 +0000 "Habibi, Michael" wrote: > I agree the kernel is old but it's what we're stuck with at the moment. It > appears that at least some thought went into this, as the code in question > is actually compatibility code added for older kernel versions such as mine: > > #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 37) > /* Compatability wrapper for new kernel API for IRQ */ > #define irq_data irq_desc > #define irq_get_irq_data(irq) irq_to_desc(irq) > #define irq_data_get_msi(data) get_irq_desc_msi(data) > #endif > > I may just export the symbol for now. Unfortunately I'm not familiar enough > with this area of the code, but if I end up tackling this I'll see if I can > submit a patch if it hasn't been fixed by then. > > Thanks. > > P.S. Aaro sorry for the duplicate email. I resent this without my digital signature so it would get through the mailing list. I did build test against stock 2.6.32 from upstream. Not going to deal with all the vendor kernel issues.