diff options
| author | Ingo Molnar <mingo@kernel.org> | 2017-11-13 01:59:10 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2017-11-13 02:00:52 -0500 |
| commit | fcdfafcb73be8fa45909327bbddca46fb362a675 (patch) | |
| tree | 14fd64a5177c0c21e70cd5bcf4bae0477a89b528 | |
| parent | a443026a48ad7a8b1b966b00fb5d7111b81a219b (diff) | |
kprobes: Don't spam the build log with deprecation warnings
The jprobes APIs are deprecated - but are still in occasional use for code that
few people seem to care about, so stop generating deprecation warnings.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
| -rw-r--r-- | include/linux/kprobes.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/linux/kprobes.h b/include/linux/kprobes.h index 56b2e698dbad..9440a2fc8893 100644 --- a/include/linux/kprobes.h +++ b/include/linux/kprobes.h | |||
| @@ -468,18 +468,18 @@ static inline int enable_kprobe(struct kprobe *kp) | |||
| 468 | return -ENOSYS; | 468 | return -ENOSYS; |
| 469 | } | 469 | } |
| 470 | #endif /* CONFIG_KPROBES */ | 470 | #endif /* CONFIG_KPROBES */ |
| 471 | static inline int __deprecated register_jprobe(struct jprobe *p) | 471 | static inline int register_jprobe(struct jprobe *p) |
| 472 | { | 472 | { |
| 473 | return -ENOSYS; | 473 | return -ENOSYS; |
| 474 | } | 474 | } |
| 475 | static inline int __deprecated register_jprobes(struct jprobe **jps, int num) | 475 | static inline int register_jprobes(struct jprobe **jps, int num) |
| 476 | { | 476 | { |
| 477 | return -ENOSYS; | 477 | return -ENOSYS; |
| 478 | } | 478 | } |
| 479 | static inline void __deprecated unregister_jprobe(struct jprobe *p) | 479 | static inline void unregister_jprobe(struct jprobe *p) |
| 480 | { | 480 | { |
| 481 | } | 481 | } |
| 482 | static inline void __deprecated unregister_jprobes(struct jprobe **jps, int num) | 482 | static inline void unregister_jprobes(struct jprobe **jps, int num) |
| 483 | { | 483 | { |
| 484 | } | 484 | } |
| 485 | static inline int disable_kretprobe(struct kretprobe *rp) | 485 | static inline int disable_kretprobe(struct kretprobe *rp) |
| @@ -490,11 +490,11 @@ static inline int enable_kretprobe(struct kretprobe *rp) | |||
| 490 | { | 490 | { |
| 491 | return enable_kprobe(&rp->kp); | 491 | return enable_kprobe(&rp->kp); |
| 492 | } | 492 | } |
| 493 | static inline int __deprecated disable_jprobe(struct jprobe *jp) | 493 | static inline int disable_jprobe(struct jprobe *jp) |
| 494 | { | 494 | { |
| 495 | return -ENOSYS; | 495 | return -ENOSYS; |
| 496 | } | 496 | } |
| 497 | static inline int __deprecated enable_jprobe(struct jprobe *jp) | 497 | static inline int enable_jprobe(struct jprobe *jp) |
| 498 | { | 498 | { |
| 499 | return -ENOSYS; | 499 | return -ENOSYS; |
| 500 | } | 500 | } |
