From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>,
Rusty Russell <rusty@rustcorp.com.au>,
Andrew Morton <akpm@linux-foundation.org>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: [PATCH 09/10] core: migrate exception table users off module.h and onto extable.h
Date: Mon, 9 Jan 2017 15:40:09 -0500 [thread overview]
Message-ID: <20170109204010.5047-10-paul.gortmaker@windriver.com> (raw)
In-Reply-To: <20170109204010.5047-1-paul.gortmaker@windriver.com>
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 <rusty@rustcorp.com.au>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
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 b0c9d6facef9..5b244bc1c176 100644
--- a/init/main.c
+++ b/init/main.c
@@ -12,6 +12,7 @@
#define DEBUG /* Enable initcall_debug */
#include <linux/types.h>
+#include <linux/extable.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/kernel.h>
diff --git a/kernel/extable.c b/kernel/extable.c
index e3beec4a2339..b25d9901e431 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -17,6 +17,7 @@
*/
#include <linux/ftrace.h>
#include <linux/memory.h>
+#include <linux/extable.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/init.h>
diff --git a/kernel/module.c b/kernel/module.c
index 5088784c0cf9..43b6fb20fdf4 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 <linux/export.h>
+#include <linux/extable.h>
#include <linux/moduleloader.h>
#include <linux/trace_events.h>
#include <linux/init.h>
--
2.11.0
next prev parent reply other threads:[~2017-01-09 20:40 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` [PATCH 01/10] ia64: move ia64_done_with_exception out of asm/uaccess.h Paul Gortmaker
2017-01-09 20:40 ` [PATCH 02/10] ia64: ensure exception table search users include extable.h Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-10 22:49 ` Sudip Mukherjee
2017-01-10 22:49 ` Sudip Mukherjee
2017-01-09 20:40 ` [PATCH 04/10] arm: " Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` [PATCH 05/10] alpha: " Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` [PATCH 06/10] mn10300: " Paul Gortmaker
2017-01-09 20:40 ` [PATCH 07/10] xtensa: " Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` [PATCH 08/10] sh: " Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker [this message]
2017-01-09 20:40 ` [PATCH 09/10] core: " Paul Gortmaker
2017-01-09 20:40 ` [PATCH 10/10] module.h: remove extable.h include now users have migrated Paul Gortmaker
2017-01-09 20:40 ` Paul Gortmaker
2017-01-10 2:24 ` kbuild test robot
2017-01-10 2:24 ` kbuild test robot
2017-01-10 2:26 ` kbuild test robot
2017-01-10 2:26 ` kbuild test robot
2017-01-24 0:16 ` [PATCH v2 00/10] Finalize separation of extable.h from module.h Rusty Russell
2017-01-24 0:16 ` Rusty Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170109204010.5047-10-paul.gortmaker@windriver.com \
--to=paul.gortmaker@windriver.com \
--cc=akpm@linux-foundation.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).