From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F30BC41535 for ; Mon, 7 Feb 2022 07:18:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244188AbiBGHSI (ORCPT ); Mon, 7 Feb 2022 02:18:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242084AbiBGHRL (ORCPT ); Mon, 7 Feb 2022 02:17:11 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 304CAC043184 for ; Sun, 6 Feb 2022 23:17:11 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id A696E68AFE; Mon, 7 Feb 2022 08:08:49 +0100 (CET) Date: Mon, 7 Feb 2022 08:08:49 +0100 From: Christoph Hellwig To: Lu Baolu Cc: Joerg Roedel , Kevin Tian , Ashok Raj , Liu Yi L , Jacob Pan , Robin Murphy , Jason Gunthorpe , Christoph Hellwig , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 01/10] iommu/vt-d: Move DMAR specific helpers into dmar.c Message-ID: <20220207070849.GA23941@lst.de> References: <20220207064142.1092846-1-baolu.lu@linux.intel.com> <20220207064142.1092846-2-baolu.lu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220207064142.1092846-2-baolu.lu@linux.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > --- a/include/linux/dmar.h > +++ b/include/linux/dmar.h > @@ -52,6 +52,32 @@ struct dmar_drhd_unit { > struct intel_iommu *iommu; > }; > > +struct dmar_rmrr_unit { > +struct dmar_atsr_unit { > +struct dmar_satc_unit { What about moving all code that is using the structures to dmar.c to keep the definitions local?