Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5967177pxb; Mon, 14 Feb 2022 11:55:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYP6BDOTXVgqdURPrbuPaS0K0m/5XOlWgqzX5iRT53+bnGt9ae7Pd7c1ITb+YA6N4g/tW8 X-Received: by 2002:a62:506:: with SMTP id 6mr686624pff.86.1644868534117; Mon, 14 Feb 2022 11:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644868534; cv=none; d=google.com; s=arc-20160816; b=Hx3GGQXo0nJw7lHdW+QWOoMMayBqLvgsptocKwKh2Q/tzCeGoD0SfMzFyK79WF8PuZ wgyocxyJM4dUbLUJzVV6J34FAu0aNy8xDpfs4R/GKHJX+b3FDejfWh60qwWJj7SkL2y9 kHbXDL88czazN8yrgqtQX9PiiqUAjbm1WTQVQ95SUTr+gwbdVG5qH4OIN4/uIMP+GJKm hGmFXlS1OsAo28lQlF0Dv903NL6Ok56PyRtGB2SesN/zCQzOm7bggIvw2KyLJZZpiGWV dnExw78bELrq1lC7sXmnF+tpWMPRhG9EEVJ5uXVLAtijmRr+HtLzPXYO4T8M0+GefzgV WU2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=vrrUDJFz2M5PijGeSBzMhHkGFrJecHTS/GRepcfXvEg=; b=COfoSBOt9rb0/11e0PuX9fLLr25u34whDVwiJEzpY57l3XhgaWPV2o37Qa7/StQ5AI G3ihcE8bPWVUORNcxuHZuc1nfkK2cQx2gERS2RX+TW3yYU0qaiVNtOpLqOPPIxqhbqos GsbD8YlzLM9ZlIK4MEOMZrPWxFsz2RFJzGZ0Ks+kc5k2/3FOQ9afwhn9r3W1OyKbFoEq YzECicPw02MFe6TWpLiMZyJsyquxeofrvhHc/gSaG58nRmP/SjkCErHbhNDuIZ2R/yJg UZrpuiwys6iN7BlT52N6Zh4d0SjUcMwkWGOAC5+Oexw+AlY94hRsNegUIKLKn7TbG5QP H8ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g3si32955079pfj.230.2022.02.14.11.55.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:55:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9F54B13113D; Mon, 14 Feb 2022 11:37:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244775AbiBNN17 (ORCPT + 99 others); Mon, 14 Feb 2022 08:27:59 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbiBNN16 (ORCPT ); Mon, 14 Feb 2022 08:27:58 -0500 Received: from theia.8bytes.org (8bytes.org [81.169.241.247]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F04A4E39C for ; Mon, 14 Feb 2022 05:27:51 -0800 (PST) Received: by theia.8bytes.org (Postfix, from userid 1000) id D87802FB; Mon, 14 Feb 2022 14:27:49 +0100 (CET) Date: Mon, 14 Feb 2022 14:27:48 +0100 From: Joerg Roedel To: Andy Shevchenko Cc: Joerg Roedel , Lu Baolu , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, David Woodhouse , Will Deacon Subject: Re: [PATCH v2 1/1] iommu/vt-d: Move intel_iommu_ops to header file Message-ID: References: <20220207141240.8253-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220207141240.8253-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 07, 2022 at 04:12:40PM +0200, Andy Shevchenko wrote: > diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h > index 69230fd695ea..1036c1900b5c 100644 > --- a/include/linux/intel-iommu.h > +++ b/include/linux/intel-iommu.h > @@ -813,6 +813,8 @@ bool context_present(struct context_entry *context); > struct context_entry *iommu_context_addr(struct intel_iommu *iommu, u8 bus, > u8 devfn, int alloc); > > +extern const struct iommu_ops intel_iommu_ops; > + The intel_iommu_ops symbol is only used in drivers/iommu/intel, so I would prefer a header in that directory. But I leave that up to Baolu to decide. Thanks, Joerg