]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: fix build warnings with !CONFIG_KPROBES
authorVineet Gupta <vgupta@synopsys.com>
Thu, 30 Mar 2017 17:02:57 +0000 (10:02 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 31 Mar 2017 00:33:20 +0000 (17:33 -0700)
commit90d26b8e250ca4e33286f0f1988e4830bba9bfd4
tree3bdc143ee73afdd001284469618e07248c980668
parent8496329007dcb3ee3673af5e82e4b918d0469966
ARC: fix build warnings with !CONFIG_KPROBES

|   CC      lib/nmi_backtrace.o
| In file included from ../include/linux/kprobes.h:43:0,
|                  from ../lib/nmi_backtrace.c:17:
| ../arch/arc/include/asm/kprobes.h:57:13: warning: 'trap_is_kprobe' defined but not used [-Wunused-function]
|  static void trap_is_kprobe(unsigned long address, struct pt_regs *regs)
|              ^~~~~~~~~~~~~~

The warning started with 1b6cc85df4 ("kprobes: move kprobe declarations
to asm-generic/kprobes.h") which started including <asm/kprobes.h>
unconditionally into <linux/kprobes.h> exposing a stub function for
!CONFIG_KPROBES to rest of world. Fix that by making the stub a macro

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/kprobes.h