linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] Finalize separation of extable.h from module.h
@ 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
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Al Viro, Andrew Morton, Chris Zankel,
	David Howells, Fenghua Yu, Ivan Kokshaysky, Linus Torvalds,
	linux-alpha, linux-am33-list, linux-arm-kernel, linux-ia64,
	linux-sh, linux-xtensa, Matt Turner, Max Filippov,
	Richard Henderson, Rich Felker, Russell King, Rusty Russell,
	Sudip Mukherjee, Tony Luck, Yoshinori Sato

Some of the arch specific changes have already been picked up by the
arch maintainers in v1, so I'm assuming the other folks just figured I'd
ask Linus to pull the remainder.  Which is the current plan ; soak this
in linux-next on 4.10-rc3 and request a pull in the next merge window.

So please shout if you are an arch maintainer and see something here you
have questions or comments on.  Otherwise, you don't have to do anything.

Once all the old users who expected extable content via module.h are
gone, then and only then can we remove the back compat line as done in
the final patch in this series.

I've been build testing this locally on a regular basis in with my other
pending work, on a bunch of different architectures, so hopefully we
don't see anything go pear shaped when it goes into sfr's linux-next.

The only real change in the v1 ---> v2 aside from dropping merged
content was the restructuring in the ia64 based on comments from Al
Viro to improve some header separation at the same time.  I'd resent
just those two for follow up comments and nobody seemed to have further 
suggestions.  Note that I'm not able to run test ia64; just compile.

There was also a minor context refresh required due to the recent
treewide asm/uaccess --> linux/uaccess change, which gave me the
motivation to get this out of my queue and finalized.

RFC/V1: https://lkml.kernel.org/r/CA+55aFyDw_jK609LcjpWvVMTzCWuH6nLUXiZDeYC2tpSaZqhXA@mail.gmail.com
ia64: https://lkml.kernel.org/r/20160920022924.9537-1-paul.gortmaker@windriver.com

---

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: David Howells <dhowells@redhat.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-alpha@vger.kernel.org
Cc: linux-am33-list@redhat.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-ia64@vger.kernel.org
Cc: linux-sh@vger.kernel.org
Cc: linux-xtensa@linux-xtensa.org
Cc: Matt Turner <mattst88@gmail.com>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Rich Felker <dalias@libc.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>

Paul Gortmaker (10):
  ia64: move ia64_done_with_exception out of asm/uaccess.h
  ia64: ensure exception table search users include extable.h
  m32r: migrate exception table users off module.h and onto extable.h
  arm: migrate exception table users off module.h and onto extable.h
  alpha: migrate exception table users off module.h and onto extable.h
  mn10300: migrate exception table users off module.h and onto extable.h
  xtensa: migrate exception table users off module.h and onto extable.h
  sh: migrate exception table users off module.h and onto extable.h
  core: migrate exception table users off module.h and onto extable.h
  module.h: remove extable.h include now users have migrated

 arch/alpha/kernel/traps.c         |  2 +-
 arch/alpha/mm/fault.c             |  2 +-
 arch/arm/mm/extable.c             |  2 +-
 arch/arm/mm/fault.c               |  2 +-
 arch/ia64/include/asm/exception.h | 35 +++++++++++++++++++++++++++++++++++
 arch/ia64/include/asm/uaccess.h   | 15 ---------------
 arch/ia64/kernel/kprobes.c        |  4 ++--
 arch/ia64/kernel/traps.c          |  6 ++++--
 arch/ia64/kernel/unaligned.c      |  4 +++-
 arch/ia64/mm/fault.c              |  2 ++
 arch/m32r/mm/extable.c            |  2 +-
 arch/m32r/mm/fault.c              |  2 +-
 arch/mn10300/mm/extable.c         |  2 +-
 arch/mn10300/mm/misalignment.c    |  2 +-
 arch/sh/include/asm/uaccess.h     |  1 -
 arch/sh/kernel/kprobes.c          |  2 +-
 arch/sh/kernel/traps.c            |  3 ++-
 arch/sh/mm/extable_32.c           |  2 +-
 arch/sh/mm/extable_64.c           |  2 +-
 arch/xtensa/mm/fault.c            |  2 +-
 include/linux/module.h            |  1 -
 init/main.c                       |  1 +
 kernel/extable.c                  |  1 +
 kernel/module.c                   |  1 +
 24 files changed, 63 insertions(+), 35 deletions(-)
 create mode 100644 arch/ia64/include/asm/exception.h

-- 
2.11.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [PATCH 01/10] ia64: move ia64_done_with_exception out of asm/uaccess.h
  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 02/10] ia64: ensure exception table search users include extable.h Paul Gortmaker
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Tony Luck, Fenghua Yu, Al Viro, linux-ia64

Move ia64_done_with_exception out of asm/uaccess.h (which is widely
used) and into asm/exception.h (like ARM has) and then ensure the
few callers of it include this new header.

Most of the other C content in asm files is implemented in macro form.
So we do that conversion at the same time as the move.

There are two C exception prototypes that move along with the macro.
One of them will become redundant when we switch over to using the
<linux/extable.h> instead of <linux/module.h> header in a subsequent
commit.

Also relocate a couple of the automated asm --> linux uaccess
conversions to preserve the linux and asm independent grouping, since
we are in the file at that location anyway.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/ia64/include/asm/exception.h | 36 ++++++++++++++++++++++++++++++++++++
 arch/ia64/include/asm/uaccess.h   | 15 ---------------
 arch/ia64/kernel/kprobes.c        |  2 +-
 arch/ia64/kernel/traps.c          |  3 ++-
 arch/ia64/kernel/unaligned.c      |  3 ++-
 arch/ia64/mm/fault.c              |  1 +
 6 files changed, 42 insertions(+), 18 deletions(-)
 create mode 100644 arch/ia64/include/asm/exception.h

diff --git a/arch/ia64/include/asm/exception.h b/arch/ia64/include/asm/exception.h
new file mode 100644
index 000000000000..d90236090e8c
--- /dev/null
+++ b/arch/ia64/include/asm/exception.h
@@ -0,0 +1,36 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+#ifndef __ASM_EXCEPTION_H
+#define __ASM_EXCEPTION_H
+
+struct pt_regs;
+struct exception_table_entry;
+
+extern void ia64_handle_exception(struct pt_regs *regs,
+				  const struct exception_table_entry *e);
+extern const struct exception_table_entry *search_exception_tables(unsigned long addr);
+
+#define ia64_done_with_exception(regs)					  \
+({									  \
+	int __ex_ret = 0;						  \
+	const struct exception_table_entry *e;				  \
+	e = search_exception_tables((regs)->cr_iip + ia64_psr(regs)->ri); \
+	if (e) {							  \
+		ia64_handle_exception(regs, e);				  \
+		__ex_ret = 1;						  \
+	}								  \
+	__ex_ret;							  \
+})
+
+#endif	/* __ASM_EXCEPTION_H */
diff --git a/arch/ia64/include/asm/uaccess.h b/arch/ia64/include/asm/uaccess.h
index bfe13196f770..471044be2a3b 100644
--- a/arch/ia64/include/asm/uaccess.h
+++ b/arch/ia64/include/asm/uaccess.h
@@ -353,21 +353,6 @@ struct exception_table_entry {
 	int fixup;	/* location-relative continuation addr.; if bit 2 is set, r9 is set to 0 */
 };
 
-extern void ia64_handle_exception (struct pt_regs *regs, const struct exception_table_entry *e);
-extern const struct exception_table_entry *search_exception_tables (unsigned long addr);
-
-static inline int
-ia64_done_with_exception (struct pt_regs *regs)
-{
-	const struct exception_table_entry *e;
-	e = search_exception_tables(regs->cr_iip + ia64_psr(regs)->ri);
-	if (e) {
-		ia64_handle_exception(regs, e);
-		return 1;
-	}
-	return 0;
-}
-
 #define ARCH_HAS_TRANSLATE_MEM_PTR	1
 static __inline__ void *
 xlate_dev_mem_ptr(phys_addr_t p)
diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c
index 45ff27e9edbb..55b18e1b67a8 100644
--- a/arch/ia64/kernel/kprobes.c
+++ b/arch/ia64/kernel/kprobes.c
@@ -33,7 +33,7 @@
 
 #include <asm/pgtable.h>
 #include <asm/sections.h>
-#include <linux/uaccess.h>
+#include <asm/exception.h>
 
 extern void jprobe_inst_return(void);
 
diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c
index 095bfaff82d0..d3e1f1ee465f 100644
--- a/arch/ia64/kernel/traps.c
+++ b/arch/ia64/kernel/traps.c
@@ -17,11 +17,12 @@
 #include <linux/kprobes.h>
 #include <linux/delay.h>		/* for ssleep() */
 #include <linux/kdebug.h>
+#include <linux/uaccess.h>
 
 #include <asm/fpswa.h>
 #include <asm/intrinsics.h>
 #include <asm/processor.h>
-#include <linux/uaccess.h>
+#include <asm/exception.h>
 #include <asm/setup.h>
 
 fpswa_interface_t *fpswa_interface;
diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c
index 9cd01c2200ee..e697403b0ec1 100644
--- a/arch/ia64/kernel/unaligned.c
+++ b/arch/ia64/kernel/unaligned.c
@@ -18,11 +18,12 @@
 #include <linux/sched.h>
 #include <linux/tty.h>
 #include <linux/ratelimit.h>
+#include <linux/uaccess.h>
 
 #include <asm/intrinsics.h>
 #include <asm/processor.h>
 #include <asm/rse.h>
-#include <linux/uaccess.h>
+#include <asm/exception.h>
 #include <asm/unaligned.h>
 
 extern int die_if_kernel(char *str, struct pt_regs *regs, long err);
diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c
index fa6ad95e992e..52b41dad9704 100644
--- a/arch/ia64/mm/fault.c
+++ b/arch/ia64/mm/fault.c
@@ -15,6 +15,7 @@
 
 #include <asm/pgtable.h>
 #include <asm/processor.h>
+#include <asm/exception.h>
 
 extern int die(char *, struct pt_regs *, long);
 
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 02/10] ia64: ensure exception table search users include extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h 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 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h Paul Gortmaker
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Tony Luck, Fenghua Yu, Al Viro, linux-ia64

We start with a delete of a duplicate prototype in asm/exception.h
that no longer needs to exist, as it duplicates content in extable.h
and since that header is so small, there is no point trying to
avoid using it.

Then we make sure anyone using search_exception_tables directly or
via the ia64_done_with_exception macro has included extable.h

In the process, we remove an include of moduleloader.h that was
apparently not really required; it would have been fetching in
module.h and hence the previous location of the exception search
function prototypes, but we need not rely on that anymore.

Cc: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-ia64@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/ia64/include/asm/exception.h | 1 -
 arch/ia64/kernel/kprobes.c        | 2 +-
 arch/ia64/kernel/traps.c          | 3 ++-
 arch/ia64/kernel/unaligned.c      | 1 +
 arch/ia64/mm/fault.c              | 1 +
 5 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/arch/ia64/include/asm/exception.h b/arch/ia64/include/asm/exception.h
index d90236090e8c..6bb246dcdaeb 100644
--- a/arch/ia64/include/asm/exception.h
+++ b/arch/ia64/include/asm/exception.h
@@ -19,7 +19,6 @@ struct exception_table_entry;
 
 extern void ia64_handle_exception(struct pt_regs *regs,
 				  const struct exception_table_entry *e);
-extern const struct exception_table_entry *search_exception_tables(unsigned long addr);
 
 #define ia64_done_with_exception(regs)					  \
 ({									  \
diff --git a/arch/ia64/kernel/kprobes.c b/arch/ia64/kernel/kprobes.c
index 55b18e1b67a8..f5f3a5e6fcd1 100644
--- a/arch/ia64/kernel/kprobes.c
+++ b/arch/ia64/kernel/kprobes.c
@@ -28,7 +28,7 @@
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/preempt.h>
-#include <linux/moduleloader.h>
+#include <linux/extable.h>
 #include <linux/kdebug.h>
 
 #include <asm/pgtable.h>
diff --git a/arch/ia64/kernel/traps.c b/arch/ia64/kernel/traps.c
index d3e1f1ee465f..8981ce98afb3 100644
--- a/arch/ia64/kernel/traps.c
+++ b/arch/ia64/kernel/traps.c
@@ -12,7 +12,8 @@
 #include <linux/sched.h>
 #include <linux/tty.h>
 #include <linux/vt_kern.h>		/* For unblank_screen() */
-#include <linux/module.h>       /* for EXPORT_SYMBOL */
+#include <linux/export.h>
+#include <linux/extable.h>
 #include <linux/hardirq.h>
 #include <linux/kprobes.h>
 #include <linux/delay.h>		/* for ssleep() */
diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c
index e697403b0ec1..99348d7f2255 100644
--- a/arch/ia64/kernel/unaligned.c
+++ b/arch/ia64/kernel/unaligned.c
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/tty.h>
+#include <linux/extable.h>
 #include <linux/ratelimit.h>
 #include <linux/uaccess.h>
 
diff --git a/arch/ia64/mm/fault.c b/arch/ia64/mm/fault.c
index 52b41dad9704..7f2feb21753c 100644
--- a/arch/ia64/mm/fault.c
+++ b/arch/ia64/mm/fault.c
@@ -7,6 +7,7 @@
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
+#include <linux/extable.h>
 #include <linux/interrupt.h>
 #include <linux/kprobes.h>
 #include <linux/kdebug.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h 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-10 22:49   ` Sudip Mukherjee
  2017-01-09 20:40 ` [PATCH 04/10] arm: " Paul Gortmaker
                   ` (7 subsequent siblings)
  10 siblings, 1 reply; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel; +Cc: Paul Gortmaker, Sudip Mukherjee

These files were only 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 avoid all the
extra header content in module.h that we don't really need to compile
these files.

Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/m32r/mm/extable.c | 2 +-
 arch/m32r/mm/fault.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m32r/mm/extable.c b/arch/m32r/mm/extable.c
index 40ccf80d29cf..8ac8ba6ef60c 100644
--- a/arch/m32r/mm/extable.c
+++ b/arch/m32r/mm/extable.c
@@ -2,7 +2,7 @@
  * linux/arch/m32r/mm/extable.c
  */
 
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 int fixup_exception(struct pt_regs *regs)
diff --git a/arch/m32r/mm/fault.c b/arch/m32r/mm/fault.c
index a3785d3644c2..a05dc3184594 100644
--- a/arch/m32r/mm/fault.c
+++ b/arch/m32r/mm/fault.c
@@ -23,7 +23,7 @@
 #include <linux/tty.h>
 #include <linux/vt_kern.h>		/* For unblank_screen() */
 #include <linux/highmem.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 #include <asm/m32r.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 04/10] arm: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (2 preceding siblings ...)
  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-09 20:40 ` [PATCH 05/10] alpha: " Paul Gortmaker
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel; +Cc: Paul Gortmaker, Russell King, linux-arm-kernel

These files were only 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 avoid all the
extra header content in module.h that we don't really need to compile
these files.

Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/arm/mm/extable.c | 2 +-
 arch/arm/mm/fault.c   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mm/extable.c b/arch/arm/mm/extable.c
index 312e15e6d00b..f436f7439e46 100644
--- a/arch/arm/mm/extable.c
+++ b/arch/arm/mm/extable.c
@@ -1,7 +1,7 @@
 /*
  *  linux/arch/arm/mm/extable.c
  */
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 int fixup_exception(struct pt_regs *regs)
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
index 3a2e678b8d30..94de590db99e 100644
--- a/arch/arm/mm/fault.c
+++ b/arch/arm/mm/fault.c
@@ -8,7 +8,7 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/signal.h>
 #include <linux/mm.h>
 #include <linux/hardirq.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 05/10] alpha: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (3 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 04/10] arm: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 06/10] mn10300: " Paul Gortmaker
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Richard Henderson, Ivan Kokshaysky, Matt Turner,
	linux-alpha

These files were only 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 avoid all the
extra header content in module.h that we don't really need to compile
these files.

Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/alpha/kernel/traps.c | 2 +-
 arch/alpha/mm/fault.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/alpha/kernel/traps.c b/arch/alpha/kernel/traps.c
index 3328af7c2776..af2994206b4b 100644
--- a/arch/alpha/kernel/traps.c
+++ b/arch/alpha/kernel/traps.c
@@ -13,7 +13,7 @@
 #include <linux/sched.h>
 #include <linux/tty.h>
 #include <linux/delay.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/kallsyms.h>
 #include <linux/ratelimit.h>
 
diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c
index 83e9eee57a55..47948b4dd157 100644
--- a/arch/alpha/mm/fault.c
+++ b/arch/alpha/mm/fault.c
@@ -22,7 +22,7 @@
 #include <linux/mman.h>
 #include <linux/smp.h>
 #include <linux/interrupt.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 extern void die_if_kernel(char *,struct pt_regs *,long, unsigned long *);
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 06/10] mn10300: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (4 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 05/10] alpha: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 07/10] xtensa: " Paul Gortmaker
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel; +Cc: Paul Gortmaker, David Howells, linux-am33-list

These files were only 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 avoid all the
extra header content in module.h that we don't really need to compile
these files.

Cc: David Howells <dhowells@redhat.com>
Cc: linux-am33-list@redhat.com
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/mn10300/mm/extable.c      | 2 +-
 arch/mn10300/mm/misalignment.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/mn10300/mm/extable.c b/arch/mn10300/mm/extable.c
index 305de461cb8f..045a903ee6b9 100644
--- a/arch/mn10300/mm/extable.c
+++ b/arch/mn10300/mm/extable.c
@@ -8,7 +8,7 @@
  * as published by the Free Software Foundation; either version
  * 2 of the Licence, or (at your option) any later version.
  */
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/spinlock.h>
 #include <linux/uaccess.h>
 
diff --git a/arch/mn10300/mm/misalignment.c b/arch/mn10300/mm/misalignment.c
index 31d04da85743..b39a388825ae 100644
--- a/arch/mn10300/mm/misalignment.c
+++ b/arch/mn10300/mm/misalignment.c
@@ -8,7 +8,7 @@
  * as published by the Free Software Foundation; either version
  * 2 of the Licence, or (at your option) any later version.
  */
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/sched.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 07/10] xtensa: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (5 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 06/10] mn10300: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 08/10] sh: " Paul Gortmaker
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Chris Zankel, Max Filippov, linux-xtensa

This file was only 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 avoid all the extra header
content in module.h that we don't really need to compile this file.

Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Cc: linux-xtensa@linux-xtensa.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/xtensa/mm/fault.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/mm/fault.c b/arch/xtensa/mm/fault.c
index 2725e08ef353..a14df5aa98c8 100644
--- a/arch/xtensa/mm/fault.c
+++ b/arch/xtensa/mm/fault.c
@@ -13,7 +13,7 @@
  */
 
 #include <linux/mm.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/hardirq.h>
 #include <linux/perf_event.h>
 #include <linux/uaccess.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 08/10] sh: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (6 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 07/10] xtensa: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 09/10] core: " Paul Gortmaker
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Yoshinori Sato, Rich Felker, linux-sh

These files were only 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 avoid all the
extra header content in module.h that we don't really need to compile
these files.

One uses "print_modules" so that prevents us removing module.h in
that case, however.

We also delete a duplicate prototype that doesn't need to exist, as
it duplicates content in extable.h

Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Rich Felker <dalias@libc.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 arch/sh/include/asm/uaccess.h | 1 -
 arch/sh/kernel/kprobes.c      | 2 +-
 arch/sh/kernel/traps.c        | 3 ++-
 arch/sh/mm/extable_32.c       | 2 +-
 arch/sh/mm/extable_64.c       | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h
index a38d0c7b818f..c4f0fee812c3 100644
--- a/arch/sh/include/asm/uaccess.h
+++ b/arch/sh/include/asm/uaccess.h
@@ -192,7 +192,6 @@ struct exception_table_entry {
 #endif
 
 int fixup_exception(struct pt_regs *regs);
-const struct exception_table_entry *search_exception_tables(unsigned long addr);
 
 extern void *set_exception_table_vec(unsigned int vec, void *handler);
 
diff --git a/arch/sh/kernel/kprobes.c b/arch/sh/kernel/kprobes.c
index 1653ff64b103..52a5e11247d1 100644
--- a/arch/sh/kernel/kprobes.c
+++ b/arch/sh/kernel/kprobes.c
@@ -9,7 +9,7 @@
  * for more details.
  */
 #include <linux/kprobes.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/ptrace.h>
 #include <linux/preempt.h>
 #include <linux/kdebug.h>
diff --git a/arch/sh/kernel/traps.c b/arch/sh/kernel/traps.c
index dfdad72c61ca..9513fa7840aa 100644
--- a/arch/sh/kernel/traps.c
+++ b/arch/sh/kernel/traps.c
@@ -8,7 +8,8 @@
 #include <linux/hardirq.h>
 #include <linux/kernel.h>
 #include <linux/kexec.h>
-#include <linux/module.h>
+#include <linux/extable.h>
+#include <linux/module.h>	/* print_modules */
 #include <asm/unwinder.h>
 #include <asm/traps.h>
 
diff --git a/arch/sh/mm/extable_32.c b/arch/sh/mm/extable_32.c
index 9cfcbb5848e4..24a75d315dcb 100644
--- a/arch/sh/mm/extable_32.c
+++ b/arch/sh/mm/extable_32.c
@@ -4,7 +4,7 @@
  *   linux/arch/i386/mm/extable.c
  */
 
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 int fixup_exception(struct pt_regs *regs)
diff --git a/arch/sh/mm/extable_64.c b/arch/sh/mm/extable_64.c
index 96edaff8c983..b90cdfad2c78 100644
--- a/arch/sh/mm/extable_64.c
+++ b/arch/sh/mm/extable_64.c
@@ -11,7 +11,7 @@
  * for more details.
  */
 #include <linux/rwsem.h>
-#include <linux/module.h>
+#include <linux/extable.h>
 #include <linux/uaccess.h>
 
 extern unsigned long copy_user_memcpy, copy_user_memcpy_end;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 09/10] core: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (7 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 08/10] sh: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-09 20:40 ` [PATCH 10/10] module.h: remove extable.h include now users have migrated Paul Gortmaker
  2017-01-24  0:16 ` [PATCH v2 00/10] Finalize separation of extable.h from module.h Rusty Russell
  10 siblings, 0 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: 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 <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

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* [PATCH 10/10] module.h: remove extable.h include now users have migrated
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (8 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 09/10] core: " Paul Gortmaker
@ 2017-01-09 20:40 ` Paul Gortmaker
  2017-01-10  2:24   ` 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
  10 siblings, 2 replies; 15+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
  To: linux-arch, linux-kernel
  Cc: Paul Gortmaker, Rusty Russell, Andrew Morton, Linus Torvalds

With hopefully most/all users of module.h that were looking for
exception table functions moved over to the new extable.h header,
we can remove the back-compat include that let us transition
without introducing build regressions.

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>
---
 include/linux/module.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/module.h b/include/linux/module.h
index 7c84273d60b9..2e6df4c41c86 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -18,7 +18,6 @@
 #include <linux/moduleparam.h>
 #include <linux/jump_label.h>
 #include <linux/export.h>
-#include <linux/extable.h>	/* only as arch move module.h -> extable.h */
 #include <linux/rbtree_latch.h>
 
 #include <linux/percpu.h>
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 15+ messages in thread

* Re: [PATCH 10/10] module.h: remove extable.h include now users have migrated
  2017-01-09 20:40 ` [PATCH 10/10] module.h: remove extable.h include now users have migrated Paul Gortmaker
@ 2017-01-10  2:24   ` kbuild test robot
  2017-01-10  2:26   ` kbuild test robot
  1 sibling, 0 replies; 15+ messages in thread
From: kbuild test robot @ 2017-01-10  2:24 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: kbuild-all, linux-arch, linux-kernel, Paul Gortmaker,
	Rusty Russell, Andrew Morton, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 2994 bytes --]

Hi Paul,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170106]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Paul-Gortmaker/Finalize-separation-of-extable-h-from-module-h/20170110-095123
config: openrisc-or1ksim_defconfig (attached as .config)
compiler: or32-linux-gcc (GCC) 4.5.1-or32-1.0rc1
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=openrisc 

All error/warnings (new ones prefixed by >>):

   arch/openrisc/mm/fault.c: In function 'do_page_fault':
>> arch/openrisc/mm/fault.c:240:3: error: implicit declaration of function 'search_exception_tables'
>> arch/openrisc/mm/fault.c:240:14: warning: assignment makes pointer from integer without a cast

vim +/search_exception_tables +240 arch/openrisc/mm/fault.c

61e85e36 Jonas Bonn 2011-06-04  224  no_context:
61e85e36 Jonas Bonn 2011-06-04  225  
61e85e36 Jonas Bonn 2011-06-04  226  	/* Are we prepared to handle this kernel fault?
61e85e36 Jonas Bonn 2011-06-04  227  	 *
61e85e36 Jonas Bonn 2011-06-04  228  	 * (The kernel has valid exception-points in the source
61e85e36 Jonas Bonn 2011-06-04  229  	 *  when it acesses user-memory. When it fails in one
61e85e36 Jonas Bonn 2011-06-04  230  	 *  of those points, we find it in a table and do a jump
61e85e36 Jonas Bonn 2011-06-04  231  	 *  to some fixup code that loads an appropriate error
61e85e36 Jonas Bonn 2011-06-04  232  	 *  code)
61e85e36 Jonas Bonn 2011-06-04  233  	 */
61e85e36 Jonas Bonn 2011-06-04  234  
61e85e36 Jonas Bonn 2011-06-04  235  	{
61e85e36 Jonas Bonn 2011-06-04  236  		const struct exception_table_entry *entry;
61e85e36 Jonas Bonn 2011-06-04  237  
61e85e36 Jonas Bonn 2011-06-04  238  		__asm__ __volatile__("l.nop 42");
61e85e36 Jonas Bonn 2011-06-04  239  
61e85e36 Jonas Bonn 2011-06-04 @240  		if ((entry = search_exception_tables(regs->pc)) != NULL) {
61e85e36 Jonas Bonn 2011-06-04  241  			/* Adjust the instruction pointer in the stackframe */
61e85e36 Jonas Bonn 2011-06-04  242  			regs->pc = entry->fixup;
61e85e36 Jonas Bonn 2011-06-04  243  			return;
61e85e36 Jonas Bonn 2011-06-04  244  		}
61e85e36 Jonas Bonn 2011-06-04  245  	}
61e85e36 Jonas Bonn 2011-06-04  246  
61e85e36 Jonas Bonn 2011-06-04  247  	/*
61e85e36 Jonas Bonn 2011-06-04  248  	 * Oops. The kernel tried to access some bad page. We'll have to

:::::: The code at line 240 was first introduced by commit
:::::: 61e85e367535a7b6385b404bef93928768140f96 OpenRISC: Memory management

:::::: TO: Jonas Bonn <jonas@southpole.se>
:::::: CC: Jonas Bonn <jonas@southpole.se>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7356 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 10/10] module.h: remove extable.h include now users have migrated
  2017-01-09 20:40 ` [PATCH 10/10] module.h: remove extable.h include now users have migrated Paul Gortmaker
  2017-01-10  2:24   ` kbuild test robot
@ 2017-01-10  2:26   ` kbuild test robot
  1 sibling, 0 replies; 15+ messages in thread
From: kbuild test robot @ 2017-01-10  2:26 UTC (permalink / raw)
  To: Paul Gortmaker
  Cc: kbuild-all, linux-arch, linux-kernel, Paul Gortmaker,
	Rusty Russell, Andrew Morton, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 3285 bytes --]

Hi Paul,

[auto build test ERROR on linus/master]
[also build test ERROR on v4.10-rc3 next-20170106]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Paul-Gortmaker/Finalize-separation-of-extable-h-from-module-h/20170110-095123
config: frv-defconfig (attached as .config)
compiler: frv-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=frv 

All error/warnings (new ones prefixed by >>):

   arch/frv/mm/extable.c: In function 'search_exception_table':
>> arch/frv/mm/extable.c:43:10: error: implicit declaration of function 'search_exception_tables' [-Werror=implicit-function-declaration]
     extab = search_exception_tables(pc);
             ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/frv/mm/extable.c:43:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     extab = search_exception_tables(pc);
           ^
   cc1: some warnings being treated as errors

vim +/search_exception_tables +43 arch/frv/mm/extable.c

^1da177e Linus Torvalds 2005-04-16  27  		 * - we search for the return address (in LR) instead of the program counter
^1da177e Linus Torvalds 2005-04-16  28  		 * - it was probably during a clear_user()
^1da177e Linus Torvalds 2005-04-16  29  		 */
^1da177e Linus Torvalds 2005-04-16  30  		return (unsigned long) &__memset_user_error_handler;
^1da177e Linus Torvalds 2005-04-16  31  	}
018b8d12 David Howells  2006-01-08  32  
018b8d12 David Howells  2006-01-08  33  	if (__frame->lr == (unsigned long) &__memcpy_user_error_lr &&
^1da177e Linus Torvalds 2005-04-16  34  	    (unsigned long) &memcpy <= pc && pc < (unsigned long) &__memcpy_end
^1da177e Linus Torvalds 2005-04-16  35  	    ) {
^1da177e Linus Torvalds 2005-04-16  36  		/* the fault occurred in a protected memset
^1da177e Linus Torvalds 2005-04-16  37  		 * - we search for the return address (in LR) instead of the program counter
^1da177e Linus Torvalds 2005-04-16  38  		 * - it was probably during a copy_to/from_user()
^1da177e Linus Torvalds 2005-04-16  39  		 */
^1da177e Linus Torvalds 2005-04-16  40  		return (unsigned long) &__memcpy_user_error_handler;
^1da177e Linus Torvalds 2005-04-16  41  	}
^1da177e Linus Torvalds 2005-04-16  42  
018b8d12 David Howells  2006-01-08 @43  	extab = search_exception_tables(pc);
018b8d12 David Howells  2006-01-08  44  	if (extab)
018b8d12 David Howells  2006-01-08  45  		return extab->fixup;
^1da177e Linus Torvalds 2005-04-16  46  
018b8d12 David Howells  2006-01-08  47  	return 0;
^1da177e Linus Torvalds 2005-04-16  48  
^1da177e Linus Torvalds 2005-04-16  49  } /* end search_exception_table() */

:::::: The code at line 43 was first introduced by commit
:::::: 018b8d12bc85f8fb332239b11d919ea0724c49a4 [PATCH] frv: support module exception tables

:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: Linus Torvalds <torvalds@g5.osdl.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 8536 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h
  2017-01-09 20:40 ` [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h Paul Gortmaker
@ 2017-01-10 22:49   ` Sudip Mukherjee
  0 siblings, 0 replies; 15+ messages in thread
From: Sudip Mukherjee @ 2017-01-10 22:49 UTC (permalink / raw)
  To: Paul Gortmaker, linux-arch, linux-kernel

On Monday 09 January 2017 08:40 PM, Paul Gortmaker wrote:
> These files were only 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 avoid all the
> extra header content in module.h that we don't really need to compile
> these files.
>
> Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---

Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>


regards
sudip

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PATCH v2 00/10] Finalize separation of extable.h from module.h
  2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h Paul Gortmaker
                   ` (9 preceding siblings ...)
  2017-01-09 20:40 ` [PATCH 10/10] module.h: remove extable.h include now users have migrated Paul Gortmaker
@ 2017-01-24  0:16 ` Rusty Russell
  10 siblings, 0 replies; 15+ messages in thread
From: Rusty Russell @ 2017-01-24  0:16 UTC (permalink / raw)
  To: Paul Gortmaker, linux-arch, linux-kernel
  Cc: Paul Gortmaker, Al Viro, Andrew Morton, Chris Zankel,
	David Howells, Fenghua Yu, Ivan Kokshaysky, Linus Torvalds,
	linux-alpha, linux-am33-list, linux-arm-kernel, linux-ia64,
	linux-sh, linux-xtensa, Matt Turner, Max Filippov,
	Richard Henderson, Rich Felker, Russell King, Sudip Mukherjee,
	Tony Luck, Yoshinori Sato, Jessica Yu

BTW, you missed Jeyu, the current module maintainer.

Not that we care, I think, it's pretty trivial:

Acked-by: Rusty Russell <rusty@rustcorp.com.au> (module.h parts)

Cheers,
Rusty.

Paul Gortmaker <paul.gortmaker@windriver.com> writes:
> Some of the arch specific changes have already been picked up by the
> arch maintainers in v1, so I'm assuming the other folks just figured I'd
> ask Linus to pull the remainder.  Which is the current plan ; soak this
> in linux-next on 4.10-rc3 and request a pull in the next merge window.
>
> So please shout if you are an arch maintainer and see something here you
> have questions or comments on.  Otherwise, you don't have to do anything.
>
> Once all the old users who expected extable content via module.h are
> gone, then and only then can we remove the back compat line as done in
> the final patch in this series.
>
> I've been build testing this locally on a regular basis in with my other
> pending work, on a bunch of different architectures, so hopefully we
> don't see anything go pear shaped when it goes into sfr's linux-next.
>
> The only real change in the v1 ---> v2 aside from dropping merged
> content was the restructuring in the ia64 based on comments from Al
> Viro to improve some header separation at the same time.  I'd resent
> just those two for follow up comments and nobody seemed to have further 
> suggestions.  Note that I'm not able to run test ia64; just compile.
>
> There was also a minor context refresh required due to the recent
> treewide asm/uaccess --> linux/uaccess change, which gave me the
> motivation to get this out of my queue and finalized.
>
> RFC/V1: https://lkml.kernel.org/r/CA+55aFyDw_jK609LcjpWvVMTzCWuH6nLUXiZDeYC2tpSaZqhXA@mail.gmail.com
> ia64: https://lkml.kernel.org/r/20160920022924.9537-1-paul.gortmaker@windriver.com
>
> ---
>
> Cc: Al Viro <viro@zeniv.linux.org.uk>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Chris Zankel <chris@zankel.net>
> Cc: David Howells <dhowells@redhat.com>
> Cc: Fenghua Yu <fenghua.yu@intel.com>
> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: linux-alpha@vger.kernel.org
> Cc: linux-am33-list@redhat.com
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-ia64@vger.kernel.org
> Cc: linux-sh@vger.kernel.org
> Cc: linux-xtensa@linux-xtensa.org
> Cc: Matt Turner <mattst88@gmail.com>
> Cc: Max Filippov <jcmvbkbc@gmail.com>
> Cc: Richard Henderson <rth@twiddle.net>
> Cc: Rich Felker <dalias@libc.org>
> Cc: Russell King <linux@armlinux.org.uk>
> Cc: Rusty Russell <rusty@rustcorp.com.au>
> Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> Cc: Tony Luck <tony.luck@intel.com>
> Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
>
> Paul Gortmaker (10):
>   ia64: move ia64_done_with_exception out of asm/uaccess.h
>   ia64: ensure exception table search users include extable.h
>   m32r: migrate exception table users off module.h and onto extable.h
>   arm: migrate exception table users off module.h and onto extable.h
>   alpha: migrate exception table users off module.h and onto extable.h
>   mn10300: migrate exception table users off module.h and onto extable.h
>   xtensa: migrate exception table users off module.h and onto extable.h
>   sh: migrate exception table users off module.h and onto extable.h
>   core: migrate exception table users off module.h and onto extable.h
>   module.h: remove extable.h include now users have migrated
>
>  arch/alpha/kernel/traps.c         |  2 +-
>  arch/alpha/mm/fault.c             |  2 +-
>  arch/arm/mm/extable.c             |  2 +-
>  arch/arm/mm/fault.c               |  2 +-
>  arch/ia64/include/asm/exception.h | 35 +++++++++++++++++++++++++++++++++++
>  arch/ia64/include/asm/uaccess.h   | 15 ---------------
>  arch/ia64/kernel/kprobes.c        |  4 ++--
>  arch/ia64/kernel/traps.c          |  6 ++++--
>  arch/ia64/kernel/unaligned.c      |  4 +++-
>  arch/ia64/mm/fault.c              |  2 ++
>  arch/m32r/mm/extable.c            |  2 +-
>  arch/m32r/mm/fault.c              |  2 +-
>  arch/mn10300/mm/extable.c         |  2 +-
>  arch/mn10300/mm/misalignment.c    |  2 +-
>  arch/sh/include/asm/uaccess.h     |  1 -
>  arch/sh/kernel/kprobes.c          |  2 +-
>  arch/sh/kernel/traps.c            |  3 ++-
>  arch/sh/mm/extable_32.c           |  2 +-
>  arch/sh/mm/extable_64.c           |  2 +-
>  arch/xtensa/mm/fault.c            |  2 +-
>  include/linux/module.h            |  1 -
>  init/main.c                       |  1 +
>  kernel/extable.c                  |  1 +
>  kernel/module.c                   |  1 +
>  24 files changed, 63 insertions(+), 35 deletions(-)
>  create mode 100644 arch/ia64/include/asm/exception.h
>
> -- 
> 2.11.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2017-01-24  1:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-09 20:40 [PATCH v2 00/10] Finalize separation of extable.h from module.h 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 ` [PATCH 03/10] m32r: migrate exception table users off module.h and onto extable.h Paul Gortmaker
2017-01-10 22:49   ` Sudip Mukherjee
2017-01-09 20:40 ` [PATCH 04/10] arm: " Paul Gortmaker
2017-01-09 20:40 ` [PATCH 05/10] alpha: " 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 ` [PATCH 08/10] sh: " Paul Gortmaker
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-10  2:24   ` 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

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).