]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Fixes for kprobe_lookup_name() on BE
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 8 Feb 2017 08:57:31 +0000 (14:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Feb 2017 02:28:04 +0000 (13:28 +1100)
commitbf68af65e7b1d40f38337e7937aa391605062247
treea03b2557593bb3624565fd8cc0d806dd13e5804e
parent98eed5c5cf47105a9199c558ddc560c539284010
powerpc/kprobes: Fixes for kprobe_lookup_name() on BE

Fix two issues with kprobes.h on BE which were exposed with the
optprobes work:
  - one, having to do with a missing include for linux/module.h for
    MODULE_NAME_LEN -- this didn't show up previously since the only
    users of kprobe_lookup_name were in kprobes.c, which included
    linux/module.h through other headers, and
  - two, with a missing const qualifier for a local variable which ends
    up referring a string literal. Again, this is unique to how
    kprobe_lookup_name is being invoked in optprobes.c

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kprobes.h