Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57345C433E2 for ; Mon, 31 Aug 2020 06:30:46 +0000 (UTC) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 28400206B5 for ; Mon, 31 Aug 2020 06:30:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 28400206B5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0256386005; Mon, 31 Aug 2020 06:30:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PNhgU+19z8dH; Mon, 31 Aug 2020 06:30:45 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 3936085C90; Mon, 31 Aug 2020 06:30:45 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F1E30C07FF; Mon, 31 Aug 2020 06:30:44 +0000 (UTC) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 12AF8C0051 for ; Mon, 31 Aug 2020 06:30:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id EC2A685AF1 for ; Mon, 31 Aug 2020 06:30:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pwdGt4EK4jIz for ; Mon, 31 Aug 2020 06:30:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 60DDD85A88 for ; Mon, 31 Aug 2020 06:30:43 +0000 (UTC) IronPort-SDR: 1WnmAzQDvzUXoAFlmS6POVhEIuHvU6DYtl/FqLoHCVUAOBnQOvYpIjHGkFdXHMUkVwbnHeRE83 ioiXvbqGyhig== X-IronPort-AV: E=McAfee;i="6000,8403,9729"; a="156921026" X-IronPort-AV: E=Sophos;i="5.76,374,1592895600"; d="scan'208";a="156921026" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2020 23:30:42 -0700 IronPort-SDR: QqZ3v+VRCxqUbT8HoSOCPgPI6ho1omcYL0G4pItQsWDj1P+vJVxA3MojHHJpj4EvS4hRX5XHfl wf26Tl6L/u7Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,374,1592895600"; d="scan'208";a="330594797" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 30 Aug 2020 23:30:41 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kCdKw-00CtKk-UN; Mon, 31 Aug 2020 09:30:38 +0300 Date: Mon, 31 Aug 2020 09:30:38 +0300 From: Andy Shevchenko To: Christoph Hellwig Subject: Re: [PATCH v1] iommu/vt-d: Move intel_iommu_ops to header file Message-ID: <20200831063038.GV1891694@smile.fi.intel.com> References: <20200828160502.65695-1-andriy.shevchenko@linux.intel.com> <20200829065846.GB31681@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200829065846.GB31681@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: iommu@lists.linux-foundation.org, David Woodhouse X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" On Sat, Aug 29, 2020 at 07:58:46AM +0100, Christoph Hellwig wrote: > On Fri, Aug 28, 2020 at 07:05:02PM +0300, Andy Shevchenko wrote: > > Compiler is not happy about hidden declaration of intel_iommu_ops. > > > > .../drivers/iommu/intel/iommu.c:414:24: warning: symbol 'intel_iommu_ops' was not declared. Should it be static? > > > > Move declaration to header file to make compiler happy. > > What about a factoring out a helper that does iommu_device_sysfs_add + > iommu_device_set_ops + iommu_device_register and then mark > intel_iommu_ops static? I am okay with this proposal, but I think the better if IOMMU folks can answer to this before I'm going to invest time into it. -- With Best Regards, Andy Shevchenko _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu