diff options
author | David Howells <dhowells@redhat.com> | 2009-12-14 09:03:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-14 13:10:55 -0500 |
commit | 5185fb069972b653dd7177292e7510ff99d9e8aa (patch) | |
tree | f5380f93c457ab1fffa27a5a03ffee48106fbe60 | |
parent | 464480f72e496067573e4f71bfbe3f5073d6fe33 (diff) |
FRV: Fix no-hardware-breakpoint case
If there is no hardware breakpoint support, modify_user_hw_breakpoint()
tries to return a NULL pointer through as an 'int' return value:
In file included from kernel/exit.c:53:
include/linux/hw_breakpoint.h: In function 'modify_user_hw_breakpoint':
include/linux/hw_breakpoint.h:96: warning: return makes integer from pointer without a cast
Return 0 instead.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | include/linux/hw_breakpoint.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 69f07a9f1277..e268388146e8 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
@@ -93,7 +93,7 @@ register_user_hw_breakpoint(struct perf_event_attr *attr, | |||
93 | struct task_struct *tsk) { return NULL; } | 93 | struct task_struct *tsk) { return NULL; } |
94 | static inline int | 94 | static inline int |
95 | modify_user_hw_breakpoint(struct perf_event *bp, | 95 | modify_user_hw_breakpoint(struct perf_event *bp, |
96 | struct perf_event_attr *attr) { return NULL; } | 96 | struct perf_event_attr *attr) { return 0; } |
97 | static inline struct perf_event * | 97 | static inline struct perf_event * |
98 | register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr, | 98 | register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr, |
99 | perf_overflow_handler_t triggered, | 99 | perf_overflow_handler_t triggered, |