From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752907AbcGYDoZ (ORCPT ); Sun, 24 Jul 2016 23:44:25 -0400 Received: from mail.windriver.com ([147.11.1.11]:36430 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752781AbcGYDnw (ORCPT ); Sun, 24 Jul 2016 23:43:52 -0400 From: Paul Gortmaker To: CC: , Paul Gortmaker , Rusty Russell , Andrew Morton , Linus Torvalds Subject: [PATCH 13/14] core: migrate exception table users off module.h and onto extable.h Date: Sun, 24 Jul 2016 23:42:46 -0400 Message-ID: <20160725034247.109173-14-paul.gortmaker@windriver.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20160725034247.109173-1-paul.gortmaker@windriver.com> References: <20160725034247.109173-1-paul.gortmaker@windriver.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These files were including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and where possible, avoid all the extra header content in module.h that we don't really need to compile these non-modular files. Note: init/main.c still needs module.h for __init_or_module kernel/extable.c still needs module.h for is_module_text_address ...and so we don't get the benefit of removing module.h from the cpp feed for these two files, unlike the almost universal 1:1 exchange of module.h for extable.h we were able to do in the arch dirs. Cc: Rusty Russell Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Paul Gortmaker --- init/main.c | 1 + kernel/extable.c | 1 + kernel/module.c | 1 + 3 files changed, 3 insertions(+) diff --git a/init/main.c b/init/main.c index 9a9a25570f72..42fa8368d4a9 100644 --- a/init/main.c +++ b/init/main.c @@ -12,6 +12,7 @@ #define DEBUG /* Enable initcall_debug */ #include +#include #include #include #include diff --git a/kernel/extable.c b/kernel/extable.c index e820ccee9846..55038378d882 100644 --- a/kernel/extable.c +++ b/kernel/extable.c @@ -17,6 +17,7 @@ */ #include #include +#include #include #include #include diff --git a/kernel/module.c b/kernel/module.c index e70a2faf71d9..536ab4b72761 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include #include #include #include -- 2.8.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Gortmaker Subject: [PATCH 13/14] core: migrate exception table users off module.h and onto extable.h Date: Sun, 24 Jul 2016 23:42:46 -0400 Message-ID: <20160725034247.109173-14-paul.gortmaker@windriver.com> References: <20160725034247.109173-1-paul.gortmaker@windriver.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail.windriver.com ([147.11.1.11]:36430 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752781AbcGYDnw (ORCPT ); Sun, 24 Jul 2016 23:43:52 -0400 In-Reply-To: <20160725034247.109173-1-paul.gortmaker@windriver.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Paul Gortmaker , Rusty Russell , Andrew Morton , Linus Torvalds These files were including module.h for exception table related functions. We've now separated that content out into its own file "extable.h" so now move over to that and where possible, avoid all the extra header content in module.h that we don't really need to compile these non-modular files. Note: init/main.c still needs module.h for __init_or_module kernel/extable.c still needs module.h for is_module_text_address ...and so we don't get the benefit of removing module.h from the cpp feed for these two files, unlike the almost universal 1:1 exchange of module.h for extable.h we were able to do in the arch dirs. Cc: Rusty Russell Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Paul Gortmaker --- init/main.c | 1 + kernel/extable.c | 1 + kernel/module.c | 1 + 3 files changed, 3 insertions(+) diff --git a/init/main.c b/init/main.c index 9a9a25570f72..42fa8368d4a9 100644 --- a/init/main.c +++ b/init/main.c @@ -12,6 +12,7 @@ #define DEBUG /* Enable initcall_debug */ #include +#include #include #include #include diff --git a/kernel/extable.c b/kernel/extable.c index e820ccee9846..55038378d882 100644 --- a/kernel/extable.c +++ b/kernel/extable.c @@ -17,6 +17,7 @@ */ #include #include +#include #include #include #include diff --git a/kernel/module.c b/kernel/module.c index e70a2faf71d9..536ab4b72761 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -17,6 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include +#include #include #include #include -- 2.8.4