Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp536129imu; Mon, 26 Nov 2018 14:36:09 -0800 (PST) X-Google-Smtp-Source: AJdET5cjHJ17uN2yPU6H3oqUzkA4e2ZSkfeKRvfpqeTXUW8UxrbI29OKTjYgQZZBy5wUx25jkSgJ X-Received: by 2002:a62:220d:: with SMTP id i13mr29987015pfi.162.1543271769692; Mon, 26 Nov 2018 14:36:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543271769; cv=none; d=google.com; s=arc-20160816; b=sl4E2IY2drPzBfhJazURDzOMRfB2ecCXRQp25qhms4c0QIcOwj7ne8wwJVLnH1n/Fn 0ZQBh/NESwpoubdCDv5jeURtKgndYUjAtcAnao40D2F2ZEK0oXDt6fKaPR6ycCr8QLSz VQH60Vl44YioeytZWrwaE2aDPU/hyAuAEPfUdKOf4cMClFLL1qGF52txvBt/WdMlxllz o0y/DZPHzDhxffRVVjrVLSBMBR5ovZPJ+Ol02Ny/3Arohh69ihifsNoobhKF5B6jJFxh 94v4JGtwil5B2v6GLGorzMHCXtb0C1+U8W9zsz2uoLOBMjXqs90fuYis3tvagbkmXWkx qP4g== 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=GltPJ0sHVMNCbobK4JjHJu5pPDb7w0MPKni7bRhEEfw=; b=Hj0vbKdfc9g08T/pTokdYY2SjnJhCMSDFnequTHhBwpfDvajkt87wpm7BSlMRHHvP4 yOkweCkdqiNkLSx7I/9cvtiLBGkKv8Q90uX0uhdFEUmJadrKFNVTQqOeny6N8mhF8Un7 LzRo8lg8a7pBPaBuaIQCxhcKzyhJdERy9XGx6POv/yf0LPmxsPUbbvw03xiIqDnZUcOX f3WsgRv+eFAtJ41yQ1qF5Em8n0uYVy4+ppygl4xLJYlHbY4DHnUUuzTyJN7jFbD5Poss zzGg5AU9YIh/GfdpBJXp6GjelyoDMDiRhegCPVycAbytsxAwwE9/DOIHtxyuYYzx3VQJ rOog== 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 j10si1515684pll.179.2018.11.26.14.35.54; Mon, 26 Nov 2018 14:36:09 -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 S1727468AbeK0J3j (ORCPT + 99 others); Tue, 27 Nov 2018 04:29:39 -0500 Received: from mail5.windriver.com ([192.103.53.11]:59798 "EHLO mail5.wrs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbeK0J3i (ORCPT ); Tue, 27 Nov 2018 04:29:38 -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 wAQMVvpw002166 (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:17 -0800 From: Paul Gortmaker To: Joerg Roedel CC: , , Paul Gortmaker Subject: [PATCH 1/9] iommu: audit and remove any unnecessary uses of module.h Date: Mon, 26 Nov 2018 17:31:30 -0500 Message-ID: <1543271498-28966-2-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 Historically a lot of these existed because we did not have a distinction between what was modular code and what was providing support to modules via EXPORT_SYMBOL and friends. That changed when we forked out support for the latter into the export.h file. This means we should be able to reduce the usage of module.h in code that is obj-y Makefile or bool Kconfig. The advantage in removing such instances is that module.h itself sources about 15 other headers; adding significantly to what we feed cpp, and it can obscure what headers we are effectively using. Since module.h might have been the implicit source for init.h (for __init) and for export.h (for EXPORT_SYMBOL) we consider each instance for the presence of either and replace as needed. Cc: Joerg Roedel Cc: iommu@lists.linux-foundation.org Signed-off-by: Paul Gortmaker --- drivers/iommu/iommu-sysfs.c | 2 +- drivers/iommu/iommu.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/iommu-sysfs.c b/drivers/iommu/iommu-sysfs.c index 36d1a7ce7fc4..c298330ba2b7 100644 --- a/drivers/iommu/iommu-sysfs.c +++ b/drivers/iommu/iommu-sysfs.c @@ -11,7 +11,7 @@ #include #include -#include +#include #include /* diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index f8ec49e0f6c6..cc25ec6d4c06 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -22,7 +22,8 @@ #include #include #include -#include +#include +#include #include #include #include -- 2.7.4