Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp84264imu; Mon, 26 Nov 2018 17:26:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/WCd1K0yqLTwlu42NUmG/zECgUPQO3a7opCVIkc3DyhKnXbp4JdZJQNUW+4GFbEhp6SX5XT X-Received: by 2002:a63:e545:: with SMTP id z5mr27318421pgj.195.1543282007375; Mon, 26 Nov 2018 17:26:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543282007; cv=none; d=google.com; s=arc-20160816; b=ba8ibB7zyQBhE1sbTz5ImudBNpocieYtXzhJslsbm8S+dPHZgvyNktAeWFCcYSJ1iP 2UYykWqaTK1WIf/i2p+6/YREiX3n6DyPM7WjqRPwAohS3Ql/CNu8HrmRuqlJdZO20B6i IoXOKpqh9MeE29LfYQ1SeRvlWApg6P9EImhw+DW40K4fIaWk/5wqBlzY/LKzRpCFILnP wDFMb77PiR9U5PAHoiQEeKSGEamsPbH49VzGWGftpU7ccVclkOnpzr3UhY9X65rYpD3H 25Kd8LNZWzC/AWg8DSHJeAZfxk4wBOzULWvnoItjt7EEZ2F18hlYbSJXDCTwAyIAJOmC d6Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id; bh=44UCjP2dTShyt8vUeHL9oovwZ4nywenATBVErUtm4JU=; b=t8rzk33m0Rz9sUfvmoIkATeQqdVG9hGTiETUOPIg12flUgxKI+kpBRIBvKavujIy4v FBy6wyPuBrcw4xrtid+irqRgSkiLkv0C7kxnK/OllwNU1nrDXUJJU+4mUZlSNtym/98o GXhOhShNfOv3QGeSef7zbAUqaFOlqJCkkMtNilHZiHmHAiqa3vSy24Z8av2ozdE7eY/K Mtir+lFtqb/v+WcTN7mq4sTt4YRsbtGkGRYEZo6bTd/XVlV84cwBxWvAZtL1utfgiF7+ 9PG6CpJyfz6Hk66ViWzds9Q4e4kYyYKzRCXaD+MNQFuflh87NmwDxbITqm4QeO4qlTu9 MNvA== 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 64si2149945ply.372.2018.11.26.17.26.31; Mon, 26 Nov 2018 17:26:47 -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 S1727758AbeK0MWD (ORCPT + 99 others); Tue, 27 Nov 2018 07:22:03 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:17481 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727544AbeK0MWC (ORCPT ); Tue, 27 Nov 2018 07:22:02 -0500 X-UUID: 52a126d2f8154c6b93421f23819ffbcf-20181127 X-UUID: 52a126d2f8154c6b93421f23819ffbcf-20181127 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1326945117; Tue, 27 Nov 2018 09:25:47 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS33N1.mediatek.inc (172.27.4.75) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 27 Nov 2018 09:25:46 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 27 Nov 2018 09:25:45 +0800 Message-ID: <1543281946.3753.2.camel@mhfsdcap03> Subject: Re: [PATCH 4/9] iommu: mtk_iommu: make it explicitly non-modular From: Honghui Zhang To: Paul Gortmaker CC: Joerg Roedel , , , Matthias Brugger , Date: Tue, 27 Nov 2018 09:25:46 +0800 In-Reply-To: <1543271498-28966-5-git-send-email-paul.gortmaker@windriver.com> References: <1543271498-28966-1-git-send-email-paul.gortmaker@windriver.com> <1543271498-28966-5-git-send-email-paul.gortmaker@windriver.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-11-26 at 17:31 -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/iommu/Kconfig:config MTK_IOMMU_V1 > drivers/iommu/Kconfig: bool "MTK IOMMU Version 1 (M4U gen1) Support" > > ...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. > > Cc: Joerg Roedel > Cc: Matthias Brugger > Cc: Honghui Zhang > Cc: iommu@lists.linux-foundation.org > Cc: linux-mediatek@lists.infradead.org > Signed-off-by: Paul Gortmaker > --- > drivers/iommu/mtk_iommu_v1.c | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c > index 27867b862d7a..5fbf3cecb87f 100644 > --- a/drivers/iommu/mtk_iommu_v1.c > +++ b/drivers/iommu/mtk_iommu_v1.c > @@ -1,4 +1,6 @@ > /* > + * IOMMU API for MTK architected m4u v1 implementations > + * > * Copyright (c) 2015-2016 MediaTek Inc. > * Author: Honghui Zhang > * > @@ -35,7 +37,7 @@ > #include > #include > #include > -#include > +#include > #include > #include > #include "mtk_iommu.h" > @@ -704,15 +706,4 @@ static int __init m4u_init(void) > { > return platform_driver_register(&mtk_iommu_driver); > } > - > -static void __exit m4u_exit(void) > -{ > - return platform_driver_unregister(&mtk_iommu_driver); > -} > - > subsys_initcall(m4u_init); > -module_exit(m4u_exit); > - > -MODULE_DESCRIPTION("IOMMU API for MTK architected m4u v1 implementations"); > -MODULE_AUTHOR("Honghui Zhang "); > -MODULE_LICENSE("GPL v2"); Hi, Paul, Thanks for your patch. I would like the patch tile be: iommu/mediatek: make it explicitly non-modular except that, Acked-by: Honghui Zhang