Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp534856imu; Mon, 26 Nov 2018 14:34:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/XSAlZf4iqSfv/5ojU+/qcqDV4mFKEoA7KoDoJwtP2BAFVdeQVjvxLEgIiZan0oIRjiwGeQ X-Received: by 2002:a63:1204:: with SMTP id h4mr26766864pgl.51.1543271691619; Mon, 26 Nov 2018 14:34:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271691; cv=none; d=google.com; s=arc-20160816; b=g2cl9+BYPqymRLreaHj1yDDiq3ciZOT51zXnel/Q9fNpHev/woRvAPpHdrOEkSml38 UuBjcqGrJBmQmW51mGc/zdglHfqjgSMTPsOx/WxLNqTLKU7u9B5kp4b4vBsc7zhpAfiK r+jN81l9GWy1AbzFUhOUGn4RBpfRuAEjSlBUIWPq9Nqwv25/R4XNeqCth91zwOd69kz4 stTyasgRG6szB73zPZLrbbJ46jBzQpFtnOBwWBvT+8CMGfQJhIVnfUt8kZoyDu4q1hTU KB0zNwKyWYnAxJhghkVW18zdgXx6frY/UoU6kab8mF4Mycn23F2JbTryJvbSIDnFPG+z HuZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=c9/gvqlMmSNX/RI9byN+kWd+IuRdBofqtHPd3reKxpo=; b=TYD8Xrj4ltPZlTeHJPoSuUZAvkuqMGWFp3dYjjG1ACjPc7yIQ06BFBGuhjusjZTXzj Kr6QbzqsQCzMu4rYeJ+XQtZEAgUMlV2RSjRSTev2hfKX4EWruOBVZTJrQFQm0mW6UR8m VBJ3Zwgb4uCqxv/RZXOoDOqQTuSG7Wd7sobeg4lqTFy0ci9sJSPmSmQY/d13D7Rfa5Wk zPwb1bsIJsigKgTiQbSXJ1HZ9YJ8tEbn1lrd0BRsrXgCtakiv2sr7UYEFMhibmJWApYH S53eI29lWJHdBwYLL/+Pmf/+ybR3V4dASdXIbdKpSRPa1hfXNV/xdyJ4ybfqKb2fBBqt 6csg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22si1437286pgk.335.2018.11.26.14.34.35; Mon, 26 Nov 2018 14:34:51 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727358AbeK0J33 (ORCPT + 99 others); Tue, 27 Nov 2018 04:29:29 -0500 Received: from mail1.windriver.com ([147.11.146.13]:44277 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbeK0J33 (ORCPT ); Tue, 27 Nov 2018 04:29:29 -0500 Received: from ALA-HCA.corp.ad.wrs.com ([147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id wAQMXZQN015332 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 26 Nov 2018 14:33:35 -0800 (PST) Received: from yow-cube1.wrs.com (128.224.56.98) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.408.0; Mon, 26 Nov 2018 14:33:34 -0800 From: Paul Gortmaker To: Joerg Roedel CC: , , Paul Gortmaker , Laurent Pinchart Subject: [PATCH 5/9] iommu: ipmmu-vmsa: make it explicitly non-modular Date: Mon, 26 Nov 2018 17:31:34 -0500 Message-ID: <1543271498-28966-6-git-send-email-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1543271498-28966-1-git-send-email-paul.gortmaker@windriver.com> References: <1543271498-28966-1-git-send-email-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Kconfig currently controlling compilation of this code is: drivers/iommu/Kconfig:config IPMMU_VMSA drivers/iommu/Kconfig: bool "Renesas VMSA-compatible IPMMU" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only. Since module_init was not even used by this driver, the init ordering remains unchanged with this commit. We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. Cc: Joerg Roedel Cc: Laurent Pinchart Cc: iommu@lists.linux-foundation.org Signed-off-by: Paul Gortmaker --- drivers/iommu/ipmmu-vmsa.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 9e2655f1c1bf..de39ef992d8a 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers/iommu/ipmmu-vmsa.c @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 /* * IPMMU VMSA + * IOMMU API for Renesas VMSA-compatible IPMMU + * Author: Laurent Pinchart * * Copyright (C) 2014 Renesas Electronics Corporation */ @@ -14,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -968,7 +970,6 @@ static const struct of_device_id ipmmu_of_ids[] = { }, }; -MODULE_DEVICE_TABLE(of, ipmmu_of_ids); static int ipmmu_probe(struct platform_device *pdev) { @@ -1140,15 +1141,4 @@ static int __init ipmmu_init(void) setup_done = true; return 0; } - -static void __exit ipmmu_exit(void) -{ - return platform_driver_unregister(&ipmmu_driver); -} - subsys_initcall(ipmmu_init); -module_exit(ipmmu_exit); - -MODULE_DESCRIPTION("IOMMU API for Renesas VMSA-compatible IPMMU"); -MODULE_AUTHOR("Laurent Pinchart "); -MODULE_LICENSE("GPL v2"); -- 2.7.4