linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org,
	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 13/14] core: migrate exception table users off module.h and onto extable.h
Date: Sun, 24 Jul 2016 23:42:46 -0400	[thread overview]
Message-ID: <20160725034247.109173-14-paul.gortmaker@windriver.com> (raw)
In-Reply-To: <20160725034247.109173-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 9a9a25570f72..42fa8368d4a9 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 e820ccee9846..55038378d882 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 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 <linux/export.h>
+#include <linux/extable.h>
 #include <linux/moduleloader.h>
 #include <linux/trace_events.h>
 #include <linux/init.h>
-- 
2.8.4

  parent reply	other threads:[~2016-07-25  3:43 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-25  3:42 [RFC/PATCH 00/14] split exception table content out of module.h into extable.h Paul Gortmaker
2016-07-25  3:42 ` Paul Gortmaker
2016-07-25  3:42 ` [PATCH 01/14] exceptions: fork exception table content from " Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-27  2:34   ` Rusty Russell
2016-07-27  2:34     ` Rusty Russell
2016-07-25  3:42 ` [PATCH 02/14] x86: migrate exception table users off module.h and onto extable.h Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-25  6:35   ` Ingo Molnar
2016-07-25  3:42 ` [PATCH 03/14] arm: " Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-25  3:42 ` [PATCH 04/14] arm64: " Paul Gortmaker
2016-07-25 16:03   ` Catalin Marinas
2016-07-25  3:42 ` [PATCH 05/14] mips: " Paul Gortmaker
2016-07-25  9:08   ` kbuild test robot
2016-07-25  9:08     ` kbuild test robot
2016-07-25  3:42 ` [PATCH 06/14] sparc: " Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-25  3:42 ` [PATCH 07/14] powerpc: " Paul Gortmaker
2016-07-25  3:42 ` [PATCH 08/14] m68k: " Paul Gortmaker
2016-07-25  3:42 ` [PATCH 09/14] s390: " Paul Gortmaker
2016-07-25  3:42 ` [PATCH 10/14] tile: " Paul Gortmaker
2016-07-25  3:42 ` [PATCH 11/14] alpha: " Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-25  3:42 ` [PATCH 12/14] parisc: " Paul Gortmaker
2016-07-25  3:42   ` Paul Gortmaker
2016-07-25  3:42 ` Paul Gortmaker [this message]
2016-07-25  3:42 ` [PATCH 14/14] module.h: remove extable.h include now users have migrated Paul Gortmaker
2016-07-25  4:18 ` [RFC/PATCH 00/14] split exception table content out of module.h into extable.h Linus Torvalds
2016-07-25  4:18   ` Linus Torvalds

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=20160725034247.109173-14-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).