Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp928723ybx; Thu, 7 Nov 2019 04:50:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzS8KRgBPoTb3Eb1o9ZODAQzFnG4Okn8f65v7MiaJfWizI9bZBdW8XP+LGA0NEPVb/z5AIh X-Received: by 2002:a17:906:f191:: with SMTP id gs17mr594312ejb.207.1573131036508; Thu, 07 Nov 2019 04:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573131036; cv=none; d=google.com; s=arc-20160816; b=PXfHTyoT2LCMDlmmNdu3yUnzIIhlqlmvbQbgNOCW5tHDvUsjEZxBYHL06kBXLQ/CD0 IIEcah17+WZCVn26Zj/TGTf6u9w+e9Ts79izmRwqMMzpZ4C8OM7cBQS0qR1WialLUnvd LtsluecToVWKQ7xr9tqTKwVLvzU699MZ/wtUUfRpPqkwXsH/ZojLxqy0URlUbaNzhQ4o 72m2ylPGTVKZCzjhy7QtvnZd4NArf46cflfKP6nX+gwRfVfj8KF0KV2jlLOak28EyEyU gakhZE7+xCoCHXRDZOrfr7EmrgUtrQKJlQ7K0EK/8il+Hk/OeB99FrTnzHkthYgkWR+U PRcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=09APu7x5CZQRm9DZ6mONOG9ebj9F2PHDNbL15PXYD0c=; b=SVnJCKOZkr93PDYWO08WKsm8QXZC+XPBp2Z0/Lh92OOKQQC540dtp2OU+PS2O0KMbV ZLfKZTokGdv/I+xWg9KaAb4BUf6Z5vYvd5Xr+HnpeD3pC7jxZImG+Mb9Ah5W6yoxKz3F wwtOYIMbw3zUP9K0a7jsdHJpxDh+qTHke0BKG7ymKJs5SV5BPGGyiWygrz5DvpHn6+Rg 7E52cVXBQ1Ok61+TeOIgsGFTjkHAwjOFRTHFX8njlJbp2C7EwNKfP5VHTQD6UPCL4dMD bVb88Mt7frT0LFozL4a600vc6w1+gMtQsA8aZHxnuZaVPdp8/WRIdwl3zd9iTKxB0H6d I8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2qZGpLRX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si1405414ejw.297.2019.11.07.04.50.12; Thu, 07 Nov 2019 04:50:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2qZGpLRX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388673AbfKGMs0 (ORCPT + 99 others); Thu, 7 Nov 2019 07:48:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:36792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733250AbfKGMsZ (ORCPT ); Thu, 7 Nov 2019 07:48:25 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A82DC2178F; Thu, 7 Nov 2019 12:48:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573130904; bh=CsU4m13XWIFTtMoZN2G9/jcV1LU2ZEOp3TgoYZ0+WzU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2qZGpLRXalDMWfpBsoJCG+ufQ92m+LvQFtbiJ6TuH2j14oih7aZJ8jywjEiUYAgRr /c1kyoPCYrcbTNxVzBIHStyoLx4kFLxPtq4VKYtZffR5XFIxkoi5l2LuL0IMTu8dXp 60xkzXzfG5dR62xaF/b8UWJxhMcnV27q54cHlA5Y= Date: Thu, 7 Nov 2019 12:48:20 +0000 From: Will Deacon To: "Isaac J. Manjarres" Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , Robin Murphy Subject: Re: [PATCH 7/7] iommu/arm-smmu: Allow building as a module Message-ID: <20191107124819.GB12385@willie-the-truck> References: <20191030145112.19738-1-will@kernel.org> <20191030145112.19738-8-will@kernel.org> <20191104193400.GA24983@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191104193400.GA24983@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Isaac, On Mon, Nov 04, 2019 at 11:34:00AM -0800, Isaac J. Manjarres wrote: > On Wed, Oct 30, 2019 at 02:51:12PM +0000, Will Deacon wrote: > > diff --git a/drivers/iommu/arm-smmu-impl.c b/drivers/iommu/arm-smmu-impl.c > > index 5c87a38620c4..2f82d40317d6 100644 > > --- a/drivers/iommu/arm-smmu-impl.c > > +++ b/drivers/iommu/arm-smmu-impl.c > > @@ -5,6 +5,7 @@ > > #define pr_fmt(fmt) "arm-smmu: " fmt > > > > #include > > +#include > > #include > > > > #include "arm-smmu.h" > > @@ -172,3 +173,8 @@ struct arm_smmu_device *arm_smmu_impl_init(struct arm_smmu_device *smmu) > > > > return smmu; > > } > > +EXPORT_SYMBOL_GPL(arm_smmu_impl_init); > > + > > +MODULE_DESCRIPTION("IOMMU quirks for ARM architected SMMU implementations"); > > +MODULE_AUTHOR("Robin Murphy "); > > +MODULE_LICENSE("GPL v2"); > > A minor comment: I was curious about why arm-smmu.c and arm-smmu-impl.c > were being compiled as two separate modules, as opposed to combining > them into one module? The latter approach seemed more appropriate, given > that arm-smmu-impl doesn't offer much as a module on its own. Thoughts? Yes, you're right. The simple answer is that I couldn't come up with a good name for the combined module, since "arm-smmu" is already taken by the core part of the driver and I don't want to rename that file. Looking at what a few other drivers do, it seems that "arm-smmu-mod" might be the best bet so I'll incorporate that change for v2 and put you on cc. Thanks! Will