]> git.baikalelectronics.ru Git - kernel.git/commit
hw-breakpoints: Fix build on !perf architectures
authorIngo Molnar <mingo@elte.hu>
Sat, 14 Nov 2009 00:12:47 +0000 (01:12 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 14 Nov 2009 00:29:17 +0000 (01:29 +0100)
commita8de1f6c0aadbb335354e3c1b5c027b4fe062503
tree95078fb51e922800c568b1a33b65608f924eb154
parenta72fea328d0568dda93d69bb0869f5176cd0740f
hw-breakpoints: Fix build on !perf architectures

the arch/alpha build fails with:

 In file included from tip/kernel/exit.c:52:
 tip/include/linux/hw_breakpoint.h: In function 'hw_breakpoint_addr':
 tip/include/linux/hw_breakpoint.h:21: error: 'struct perf_event' has no member named 'attr'
 [...]

Move these helper inlines inside the CONFIG_HAVE_HW_BREAKPOINT ifdef.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258114575-32655-1-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/hw_breakpoint.h