Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756957AbYF1OXR (ORCPT ); Sat, 28 Jun 2008 10:23:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753435AbYF1OXF (ORCPT ); Sat, 28 Jun 2008 10:23:05 -0400 Received: from smtpeu1.atmel.com ([195.65.72.27]:49917 "EHLO bagnes.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753368AbYF1OXE (ORCPT ); Sat, 28 Jun 2008 10:23:04 -0400 Date: Sat, 28 Jun 2008 16:23:12 +0200 From: Haavard Skinnemoen To: Pierre Ossman Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mmc: Export internal host state through debugfs Message-ID: <20080628162312.0f10c6d3@hskinnemo-gx745.norway.atmel.com> In-Reply-To: <20080628154015.423daf51@mjolnir.drzeus.cx> References: <1214478589-21291-1-git-send-email-haavard.skinnemoen@atmel.com> <20080628152856.3ba1c2ff@mjolnir.drzeus.cx> <20080628153704.36eda3e6@hskinnemo-gx745.norway.atmel.com> <20080628154015.423daf51@mjolnir.drzeus.cx> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Jun 2008 14:23:00.0828 (UTC) FILETIME=[782F51C0:01C8D92A] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 809 Lines: 21 Pierre Ossman wrote: > > Hmm. You mean it's better with three #ifdefs than one? > > > > Fewer lines though. Those dummy function stick out like a sore thumb. > It's a decent trade-off when you have multiple callers, but here we have > just the one. Actually, if debugfs is disabled, debugfs_create_dir() and friends are inline functions which return ERR_PTR(-ENODEV). So if we just remove the whole #ifdef altogether, gcc should be smart enough to optimize away the whole thing if debugfs isn't enabled... I'll give it a try. Haavard -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/