On 08.01.2015 01:58, Rusty Russell wrote:
Archs have been abusing module_free() to clean up their arch-specific
allocations.  Since module_free() is also (ab)used by BPF and trace code,
let's keep it to simple allocations, and provide a hook called before
that.

This means that avr32, ia64, parisc and s390 no longer need to implement
their own module_free() at all.  avr32 doesn't need module_finalize()
either.

Signed-off-by: Rusty Russell <ru...@rustcorp.com.au>
Cc: Chris Metcalf <cmetc...@ezchip.com>
Cc: Haavard Skinnemoen <hskinnem...@gmail.com>
Cc: Hans-Christian Egtvedt <egtv...@samfundet.no>
Cc: Tony Luck <tony.l...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: "James E.J. Bottomley" <j...@parisc-linux.org>
Cc: Helge Deller <del...@gmx.de>
Cc: Martin Schwidefsky <schwidef...@de.ibm.com>
Cc: Heiko Carstens <heiko.carst...@de.ibm.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-i...@vger.kernel.org
Cc: linux-par...@vger.kernel.org
Cc: linux-s...@vger.kernel.org
---
  arch/avr32/kernel/module.c   | 13 +------------
  arch/ia64/kernel/module.c    |  6 ++----
  arch/parisc/kernel/module.c  |  6 +-----
  arch/s390/kernel/module.c    | 10 +++-------
  arch/tile/kernel/module.c    |  2 +-
  include/linux/moduleloader.h |  2 ++
  kernel/module.c              |  7 +++++++
  7 files changed, 17 insertions(+), 29 deletions(-)

I successfully tested it on the parisc arch.

Acked-by: Helge Deller <del...@gmx.de>

Thanks!
Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to