From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753530AbYI3Seh (ORCPT ); Tue, 30 Sep 2008 14:34:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752900AbYI3Se3 (ORCPT ); Tue, 30 Sep 2008 14:34:29 -0400 Received: from mtagate6.uk.ibm.com ([195.212.29.139]:33725 "EHLO mtagate6.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752546AbYI3Se3 (ORCPT ); Tue, 30 Sep 2008 14:34:29 -0400 Date: Tue, 30 Sep 2008 21:33:10 +0300 From: Muli Ben-Yehuda To: Ingo Molnar Cc: Joerg Roedel , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, iommu@lists.linux-foundation.org, David Woodhouse , Amit Shah , Ingo Molnar , FUJITA Tomonori Subject: Re: [PATCH 6/9] x86/iommu: change Calgary to use dma_ops register interface Message-ID: <20080930183310.GB20341@il.ibm.com> References: <1222107681-8185-1-git-send-email-joerg.roedel@amd.com> <1222107681-8185-7-git-send-email-joerg.roedel@amd.com> <20080930111028.GC12529@elte.hu> <20080930133024.GA20341@il.ibm.com> <20080930153815.GA22693@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080930153815.GA22693@elte.hu> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 30, 2008 at 05:38:15PM +0200, Ingo Molnar wrote: > > * Muli Ben-Yehuda wrote: > > > > > +static int calgary_device_supported(struct device *dev) > > > > +{ > > > > + return translation_enabled(find_iommu_table(dev)); > > > > +} > > > > Sure, but I prefer the explicit form since it lends itself to easier > > debugging (oops line numbers, adding printks, etc.). > > we never do that for simple stuff like this. The kernel would be > twice as large if we did. I assume you are talking about the source size, because the generated code size should be exactly the same. In any case, arguing where to place the semi-colon is a waste of time. Do as you see fit. Cheers, Muli -- The First Workshop on I/O Virtualization (WIOV '08) Dec 2008, San Diego, CA, http://www.usenix.org/wiov08/ xxx SYSTOR 2009---The Israeli Experimental Systems Conference http://www.haifa.il.ibm.com/conferences/systor2009/