From: Takashi Iwai Subject: Re: [PATCH 2/2] sis7019: add support for pre-2.6 kernels Date: Wed, 28 Nov 2007 13:56:03 +0100 Message-ID: References: <1196234352.7017.32.camel@obelisk.thedillows.org> <1196255937.7017.57.camel@obelisk.thedillows.org> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (ns2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id E805524AED for ; Wed, 28 Nov 2007 14:30:54 +0100 (CET) In-Reply-To: <1196255937.7017.57.camel@obelisk.thedillows.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Dave Dillow Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 28 Nov 2007 08:18:57 -0500, Dave Dillow wrote: > > > Also, replace __ffs() only for 2.4 kernels, e.g. > > I'm 50/50 on this -- it doesn't hurt to just use the patched in version, > even in 2.6. I'm not fond of #ifdefs in code, and I'd need to search for > when it became available. But a different code would be compiled even for the same kernel and with the same config, between alsa-driver and kernel builds. That's what I'd like to avoid. > Then again, it is a small patch and the research isn't hard, just a bit > time consuming. __ffs() is present on all 2.6 versions. So, >= 2.6.0 should be OK. thanks, Takashi