From: Takashi Iwai Subject: Re: [PATCH 4/4] ASoC: clean up cache accesser Date: Mon, 20 Dec 2010 18:22:01 +0100 Message-ID: References: <20101220152709.GJ26706@rakim.wolfsonmicro.main> <1292862469.29185.7.camel@dplaptop.localdomain> <20101220165421.GE14986@sirena.org.uk> <1292864940.29185.19.camel@dplaptop.localdomain> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 589E4103868 for ; Mon, 20 Dec 2010 18:22:01 +0100 (CET) In-Reply-To: <1292864940.29185.19.camel@dplaptop.localdomain> 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: Dimitris Papastamos Cc: alsa-devel@alsa-project.org, Mark Brown , Liam Girdwood List-Id: alsa-devel@alsa-project.org At Mon, 20 Dec 2010 17:09:00 +0000, Dimitris Papastamos wrote: > > On Mon, 2010-12-20 at 16:54 +0000, Mark Brown wrote: > > On Mon, Dec 20, 2010 at 05:47:13PM +0100, Takashi Iwai wrote: > > > > > Yes, this would be safer. I didn't put it since I wasn't sure whether > > > BUG() content is also expanded at each caller. If yes, it would > > > bloat. (Alternatively we may use snd_BUG_ON() -- it's built in only > > > when CONFIG_SND_DEBUG is set.) > > > > That's entirely up to the compiler - inline is purely advice and may > > well be completely ignored by the compile (and of course functions that > > aren't marked inline may be inlined if it decides that's useful). > > One way to enforce the expansion of inline functions on gcc is to use > __attribute__ ((always_inline)). Generally it is best left up to the > compiler to perform the inling if it so deems necessary. Right. I removed inline in the revised patch. Takashi