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 7706AC433F5 for ; Tue, 8 Feb 2022 04:28:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346937AbiBHE2d (ORCPT ); Mon, 7 Feb 2022 23:28:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234088AbiBHE2a (ORCPT ); Mon, 7 Feb 2022 23:28:30 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBF6EC0401E5 for ; Mon, 7 Feb 2022 20:28:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644294509; x=1675830509; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=zeTrwKWN4UMeNdimGUS+U9RmLrMA4K1Ld5W0Y65wdyQ=; b=byz+gOnXPQLMuoV8pDthNUf/t/WS/SYLgdjlG7k1YGorWfWFbAkBywpD UIlK3AkitSDgnID5mQcpUDAoKO35WL1Yh6Um6JbodfZ6DCMphs/6+xIym oMh7M4UhGzhdpRbwJLG0rHW03lHxlvcxv4P5nUNSkDZpU2RD/pXoYM5Ye lmmNWq+rxpSHElrPFgtvH9hFgPFdju1hBmbCr8w0xvuZFPx19f6ihldF9 7q3hDD2jhsi2li8Bj7mA1rT+KKPogHXyT5UCPO336o/SbBPIb9U50TS6R Jx23jq2cJDLCGwbBR5ftWvUtXngjdIaFiq+H4QA+feigEotc6fDsPXtaO w==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="273395899" X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="273395899" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 20:28:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="677985044" Received: from allen-box.sh.intel.com (HELO [10.239.159.118]) ([10.239.159.118]) by fmsmga001.fm.intel.com with ESMTP; 07 Feb 2022 20:28:27 -0800 Message-ID: <771436d6-fda5-eeae-16ee-4cb760a056bb@linux.intel.com> Date: Tue, 8 Feb 2022 12:27:16 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Cc: baolu.lu@linux.intel.com, Joerg Roedel , Kevin Tian , Ashok Raj , Liu Yi L , Jacob Pan , Robin Murphy , Jason Gunthorpe , 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 Content-Language: en-US To: Christoph Hellwig References: <20220207064142.1092846-1-baolu.lu@linux.intel.com> <20220207064142.1092846-2-baolu.lu@linux.intel.com> <20220207070849.GA23941@lst.de> From: Lu Baolu In-Reply-To: <20220207070849.GA23941@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/7/22 3:08 PM, Christoph Hellwig wrote: >> --- 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? > It's difficult. References to these structures are scattered in iommu.c. Best regards, baolu