Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp536116imu; Mon, 26 Nov 2018 14:36:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/XxxpJiYjAXkTEE3DJFv7ABnjcYOOOoShH3a3atHTh9xCSdx4LiKnpbp2YitEG0/g6VU5WQ X-Received: by 2002:a63:2c0e:: with SMTP id s14mr27231889pgs.132.1543271768860; Mon, 26 Nov 2018 14:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271768; cv=none; d=google.com; s=arc-20160816; b=j1L7zeneUQxBQgHK58kMwM189Uo/m6qCHkEWt1P+7+cuXSMYoAPxzL74YBr+Fkqryo gKB69bC3MFKKVTZ8/GVBVNjqC90/gUO56EnjHl9+2zUjafP1l0JzdL5ezxUZVDxRd6ZS I+qnAJ8yvFBgoSG8zT0eo2iuQICFBRwa0qCI3WkEiw09+JSpSPvAnGePGHQINQM6ER0n Zthl4E1CEznzoWwa6deez01l0bUO/k9n9zPXGt9IiiUzAroC1z2tX/ozsocqzkQKW+57 2dERoaiSUh9yjX9NvgmQgBMjjp+XLX137Juyqg8YM5IMJNYqCHmSUmTLdCDy2WJluIRQ J3PQ== 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=zBxR7xYrgn9zXE4gP2yaloWDWKDFGXiW3Z72cUQQpR8=; b=M8hYA0xobQv66yktP9hiwaiRILxJOuuLY+WWm2unIJ7gNEYXDt4alHSLZG0mWMGHFI KO/AuFP3iWmalprRhhD9op+x5FFwSCnwcQtgw14zVNVOo6Q9e8+uH5pokLYtWiMsv+j7 QjuYjNOlz0rl1IBrEJOVXrg2XPalVnDya3qEUU+5NgG5i+8T44/pqMqYtLFiRH/I9oAt Kanyue0rYgwuZ1EoNms4e/7tRRUJSO6juuEUx979HgEdcb7IXHmY9q2dslDzSc+aCDy/ bL7yW8Ay74aMoIVUAQaBWIKyyIs+HTW9ZYryt4yKUFSrbyTJ8sF+V1qiY3quA4sHVo8k Jo9g== 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 c3si1470540pgw.425.2018.11.26.14.35.54; Mon, 26 Nov 2018 14:36:08 -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 S1727516AbeK0Jak (ORCPT + 99 others); Tue, 27 Nov 2018 04:30:40 -0500 Received: from mail5.windriver.com ([192.103.53.11]:59830 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbeK0Jak (ORCPT ); Tue, 27 Nov 2018 04:30:40 -0500 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id wAQMVvpx002166 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 26 Nov 2018 14:33:26 -0800 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:32:53 -0800 From: Paul Gortmaker To: Joerg Roedel CC: , , Paul Gortmaker , Heiko Stuebner , Simon Xue , Daniel Kurtz , Jeffy Chen , , Subject: [PATCH 2/9] iommu: rockchip: make it explicitly non-modular Date: Mon, 26 Nov 2018 17:31:31 -0500 Message-ID: <1543271498-28966-3-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 ROCKCHIP_IOMMU drivers/iommu/Kconfig: bool "Rockchip IOMMU Support" ...meaning that it currently is not being built as a module by anyone. The bind/unbind/remove was already explicitly disabled in commit 98b72b94def9 ("iommu/rockchip: Prohibit unbind and remove"). Lets remove the remaining traces of modular infrastructure, so that when reading the driver there is no doubt it is builtin-only. Since module_init was not in use by this code, the init ordering remains unchanged with this commit. Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code. 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. Cc: Joerg Roedel Cc: Heiko Stuebner Cc: Simon Xue Cc: Daniel Kurtz Cc: Jeffy Chen Cc: iommu@lists.linux-foundation.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Signed-off-by: Paul Gortmaker --- drivers/iommu/rockchip-iommu.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index ad3e2b97469e..c9ba9f377f63 100644 --- a/drivers/iommu/rockchip-iommu.c +++ b/drivers/iommu/rockchip-iommu.c @@ -1,4 +1,9 @@ /* + * IOMMU API for Rockchip + * + * Module Authors: Simon Xue + * Daniel Kurtz + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. @@ -17,7 +22,7 @@ #include #include #include -#include +#include #include #include #include @@ -1281,7 +1286,6 @@ static const struct of_device_id rk_iommu_dt_ids[] = { { .compatible = "rockchip,iommu" }, { /* sentinel */ } }; -MODULE_DEVICE_TABLE(of, rk_iommu_dt_ids); static struct platform_driver rk_iommu_driver = { .probe = rk_iommu_probe, @@ -1299,8 +1303,3 @@ static int __init rk_iommu_init(void) return platform_driver_register(&rk_iommu_driver); } subsys_initcall(rk_iommu_init); - -MODULE_DESCRIPTION("IOMMU API for Rockchip"); -MODULE_AUTHOR("Simon Xue and Daniel Kurtz "); -MODULE_ALIAS("platform:rockchip-iommu"); -MODULE_LICENSE("GPL v2"); -- 2.7.4