History

hw_breakpoint: Remove unused __register_perf_hw_breakpoint() declaration

Commit: b326e9560a28 ("hw-breakpoints: Use overflow handler instead of the event callback") removed __register_perf_hw_breakpoint() function usage and replaced it with register_perf_hw_breakpoint() function. Remove the left-over unused __register_perf_hw_breakpoint() declaration from <linux/hw_breakpoint.h> as well.

Bhupesh Sharma committed 6 years ago

Commit b55b3fd1 parent 09fc67b1 file · +0 −3Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/hw_breakpoint.h+0−3
@@ -72,7 +72,6 @@ register_wide_hw_breakpoint(struct perf_event_attr *attr, · 71 unmodified lines
72 void *context);72 void *context);
73 73
74extern int register_perf_hw_breakpoint(struct perf_event *bp);74extern int register_perf_hw_breakpoint(struct perf_event *bp);
75extern int __register_perf_hw_breakpoint(struct perf_event *bp);
76extern void unregister_hw_breakpoint(struct perf_event *bp);75extern void unregister_hw_breakpoint(struct perf_event *bp);
77extern void unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events);76extern void unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events);
78 77
@@ -119,8 +118,6 @@ register_wide_hw_breakpoint(struct perf_event_attr *attr, · 40 unmodified lines
119 void *context) { return NULL; }118 void *context) { return NULL; }
120static inline int119static inline int
121register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; }120register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; }
122static inline int
123__register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; }
124static inline void unregister_hw_breakpoint(struct perf_event *bp) { }121static inline void unregister_hw_breakpoint(struct perf_event *bp) { }
125static inline void122static inline void
126unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events) { }123unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events) { }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t