Re: [PATCH 3/4] module: use a structure to encapsulate layout.

2015-11-09 Thread Rusty Russell
Peter Zijlstra writes: > On Mon, Nov 09, 2015 at 02:53:56PM +1030, Rusty Russell wrote: >> diff --git a/kernel/module.c b/kernel/module.c >> index 14b224967e7b..a0a3d6d9d5e8 100644 >> --- a/kernel/module.c >> +++ b/kernel/module.c >> @@ -108,13 +108,6 @@ static LIST_HEAD(modules); >> * Use a lat

Re: [PATCH 3/4] module: use a structure to encapsulate layout.

2015-11-09 Thread Josh Poimboeuf
On Mon, Nov 09, 2015 at 02:53:56PM +1030, Rusty Russell wrote: > diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c > index b15933c31b2f..26e23a2a29e9 100644 > --- a/arch/ia64/kernel/module.c > +++ b/arch/ia64/kernel/module.c > @@ -486,13 +486,13 @@ module_frob_arch_sections (Elf_E

Re: [PATCH 3/4] module: use a structure to encapsulate layout.

2015-11-09 Thread Peter Zijlstra
On Mon, Nov 09, 2015 at 02:53:56PM +1030, Rusty Russell wrote: > diff --git a/include/linux/module.h b/include/linux/module.h > index 3a19c79918e0..6e68e8cf4d0d 100644 > --- a/include/linux/module.h > +++ b/include/linux/module.h > @@ -302,6 +302,28 @@ struct mod_tree_node { > struct latch_t