From patchwork Thu Jul 14 00:18:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Gortmaker X-Patchwork-Id: 9228661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 586876086B for ; Thu, 14 Jul 2016 00:23:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 476B027F94 for ; Thu, 14 Jul 2016 00:23:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3B03228066; Thu, 14 Jul 2016 00:23:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8925127F94 for ; Thu, 14 Jul 2016 00:23:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNUO6-0000M2-8P; Thu, 14 Jul 2016 00:20:22 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNUO5-0000LE-Jv for xen-devel@lists.xenproject.org; Thu, 14 Jul 2016 00:20:21 +0000 Received: from [85.158.143.35] by server-3.bemta-6.messagelabs.com id 10/54-22092-5CAD6875; Thu, 14 Jul 2016 00:20:21 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnkeJIrShJLcpLzFFi42KZzD2JV/fIrbZ wg7XP1Sy+b5nM5MDocfjDFZYAxijWzLyk/IoE1owj634zFXTJVHw9t5y1gXG2RBcjF4eQwDdG ieeb+pkhnM2MEi/3P2fqYuTkYBMwlmjsn88CYosIKEl8v9bNCFLELPCeSWLjz49gCWGBAIk/9 9awgdgsAqoSm2dMZQaxeQUcJY5Nnw42SEJATmLjj9dgNqeAk8TLQ+fB6oWAarZ0zmSHqBeUOD nzCdhMZgEJiYMvXjBPYOSdhSQ1C0lqASPTKkb14tSistQiXWO9pKLM9IyS3MTMHF1DAzO93NT i4sT01JzEpGK95PzcTYzAAGIAgh2MHf+cDjFKcjApifJq97eFC/El5adUZiQWZ8QXleakFh9i lOHgUJLgjb0JlBMsSk1PrUjLzAGGMkxagoNHSYR3A0iat7ggMbc4Mx0idYpRUUqcNwkkIQCSy CjNg2uDxc8lRlkpYV5GoEOEeApSi3IzS1DlXzGKczAqCfPuB5nCk5lXAjf9FdBiJqDFtQ7NII tLEhFSUg2MUVPUIlvZHx+oXX03MFb8QtzxHTe/ma17/X5u38XFeby978x9C6/usHnGPZlDfMv 1QzZXrFdfbvlTtu81a2fGZIHjF//kW9SE3fnBsVZVeds2KfPH/o91nVa4rxW8Os9i8dm14qrr TU6svB69+mvo/ngulrrKa2tuHr5Y8L/yUZy6avatqyHG05RYijMSDbWYi4oTARffHamaAgAA X-Env-Sender: Paul.Gortmaker@windriver.com X-Msg-Ref: server-16.tower-21.messagelabs.com!1468455618!19366395!1 X-Originating-IP: [147.11.146.13] X-SpamReason: No, hits=0.3 required=7.0 tests=MAILTO_TO_SPAM_ADDR X-StarScan-Received: X-StarScan-Version: 8.77; banners=-,-,- X-VirusChecked: Checked Received: (qmail 9334 invoked from network); 14 Jul 2016 00:20:20 -0000 Received: from mail1.windriver.com (HELO mail1.windriver.com) (147.11.146.13) by server-16.tower-21.messagelabs.com with DHE-RSA-AES256-SHA encrypted SMTP; 14 Jul 2016 00:20:20 -0000 Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id u6E0K6e9006143 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 13 Jul 2016 17:20:06 -0700 (PDT) Received: from yow-lpgnfs-02.corp.ad.wrs.com (128.224.149.8) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Wed, 13 Jul 2016 17:20:05 -0700 From: Paul Gortmaker To: Date: Wed, 13 Jul 2016 20:18:59 -0400 Message-ID: <20160714001901.31603-7-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160714001901.31603-1-paul.gortmaker@windriver.com> References: <20160714001901.31603-1-paul.gortmaker@windriver.com> MIME-Version: 1.0 Cc: Juergen Gross , x86@kernel.org, Paul Gortmaker , Ingo Molnar , David Vrabel , "H. Peter Anvin" , xen-devel@lists.xenproject.org, Boris Ostrovsky , Thomas Gleixner Subject: [Xen-devel] [PATCH 6/8] x86: xen: audit and remove any unnecessary uses of module.h X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 doing so 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 was the source for init.h (for __init) and for export.h (for EXPORT_SYMBOL) we consider each obj-y/bool instance for the presence of either and replace as needed. Cc: Boris Ostrovsky Cc: David Vrabel Cc: Juergen Gross Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: xen-devel@lists.xenproject.org Signed-off-by: Paul Gortmaker Acked-by: Juergen Gross --- arch/x86/xen/debugfs.c | 1 - arch/x86/xen/enlighten.c | 2 +- arch/x86/xen/mmu.c | 3 ++- arch/x86/xen/p2m.c | 2 +- arch/x86/xen/platform-pci-unplug.c | 2 +- arch/x86/xen/setup.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c index c8377fb26cdf..1daff5545c0a 100644 --- a/arch/x86/xen/debugfs.c +++ b/arch/x86/xen/debugfs.c @@ -1,7 +1,6 @@ #include #include #include -#include #include "debugfs.h" diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index 575cea4bab94..88845bb50b7b 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 67433714b791..7d5afdb417cc 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -43,7 +43,8 @@ #include #include #include -#include +#include +#include #include #include #include diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index dd2a49a8aacc..37129db76d33 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c @@ -60,7 +60,7 @@ */ #include -#include +#include #include #include #include diff --git a/arch/x86/xen/platform-pci-unplug.c b/arch/x86/xen/platform-pci-unplug.c index 9586ff32810c..d37a0c7f82cb 100644 --- a/arch/x86/xen/platform-pci-unplug.c +++ b/arch/x86/xen/platform-pci-unplug.c @@ -21,7 +21,7 @@ #include #include -#include +#include #include #include "xen-ops.h" diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index e345891450c3..176425233e4d 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -4,7 +4,7 @@ * Jeremy Fitzhardinge , XenSource Inc, 2007 */ -#include +#include #include #include #include