Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fe16bb01 authored by Rusty Russell's avatar Rusty Russell Committed by Gerrit - the friendly Code Review server
Browse files

module: remove mod arg from module_free, rename module_memfree().



Nothing needs the module pointer any more, and the next patch will
call it from RCU, where the module itself might no longer exist.
Removing the arg is the safest approach.

This just codifies the use of the module_alloc/module_free pattern
which ftrace and bpf use.

Change-Id: I5aaa9922e36ce7eef43b89cfdd803ee3b8434819
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Jesper Nilsson <jesper.nilsson@axis.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Ley Foon Tan <lftan@altera.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: x86@kernel.org
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: linux-cris-kernel@axis.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Cc: nios2-dev@lists.rocketboards.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: sparclinux@vger.kernel.org
Cc: netdev@vger.kernel.org
Git-commit: be1f221c0445a4157d177197c236f888d3581914
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


[psodagud@codeaurora.org: resolved context conflicts in module.c. Also
dropped changes in arch/nios2/kernel/module.c and arch/x86/kernel/ftrace.c
files because of dependencies]
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
[neeraju@codeaurora.org: Resolved context conflicts in arch/powerpc/net/
bpf_jit_comp.c, arch/sparc/net/bpf_jit_comp.c. Also, dropped changes in
arch/mips/net/bpf_jit.c, kernel/bpf/core.c and updated arch/arm/net/
bpf_jit_32.c]
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
parent 6f2f4970
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment