Received: from e33.co.us.ibm.com ([32.97.110.131]) by canuck.infradead.org with esmtp (Exim 4.33 #1 (Red Hat Linux)) id 1C1r0A-00029Y-4r for linux-mtd@lists.infradead.org; Mon, 30 Aug 2004 14:35:35 -0400 From: Josh Boyer To: Brian T In-Reply-To: <06d101c48ebe$02a2a340$fd0ba8c0@briantpc> References: <042901c48c42$2593cd30$fd0ba8c0@briantpc> <045201c48c4b$8407dc40$fd0ba8c0@briantpc> <053c01c48c60$4976ad80$fd0ba8c0@briantpc> <1093631103.16320.14.camel@thomas.tec.linutronix.de> <068701c48eaf$845dfe70$fd0ba8c0@briantpc> <1093888352.25339.39.camel@weaponx.rchland.ibm.com> <06d101c48ebe$02a2a340$fd0ba8c0@briantpc> Content-Type: text/plain Message-Id: <1093890929.25339.45.camel@weaponx.rchland.ibm.com> Mime-Version: 1.0 Date: Mon, 30 Aug 2004 13:35:30 -0500 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org Subject: Re: undefined reference to `__ffs' List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2004-08-30 at 13:20, Brian T wrote: > Not sure how to fix it for non-x86 then. Point me in the right direction? Welcome to the hell that is compatmac.h ;). Seriously though, maybe take a look at generic_ffs() in include/linux/bitops.h (in the 2.6 kernel). It's not optimized, but it should work for all architectures if I am reading things right. josh