* [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 08/10] sh: migrate exception table users off module.h and onto extable.h Paul Gortmaker
2017-01-24 0:28 ` [PATCH v2 00/10] Finalize separation of extable.h from module.h Rusty Russell
0 siblings, 2 replies; 3+ messages in thread
From: Paul Gortmaker @ 2017-01-09 20:40 UTC (permalink / raw)
To: linux-arch, linux-kernel
Cc: Rich Felker, linux-ia64, linux-xtensa, David Howells,
Max Filippov, linux-am33-list, Yoshinori Sato, linux-sh,
Russell King, Matt Turner, Fenghua Yu, Rusty Russell,
Ivan Kokshaysky, Al Viro, linux-arm-kernel, Richard Henderson,
Chris Zankel, Tony Luck, Paul Gortmaker, linux-alpha,
Andrew Morton, Linus Torvalds, Sudip Mukherjee
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] 3+ 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
@ 2017-01-09 20:40 ` Paul Gortmaker
2017-01-24 0:28 ` [PATCH v2 00/10] Finalize separation of extable.h from module.h Rusty Russell
1 sibling, 0 replies; 3+ 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] 3+ 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
2017-01-09 20:40 ` [PATCH 08/10] sh: migrate exception table users off module.h and onto extable.h Paul Gortmaker
@ 2017-01-24 0:28 ` Rusty Russell
1 sibling, 0 replies; 3+ messages in thread
From: Rusty Russell @ 2017-01-24 0:28 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, Sudip Mukherjee,
Tony Luck
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] 3+ messages in thread
end of thread, other threads:[~2017-01-24 0:28 UTC | newest]
Thread overview: 3+ 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 08/10] sh: migrate exception table users off module.h and onto extable.h Paul Gortmaker
2017-01-24 0:28 ` [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).