aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-11-13 01:59:10 -0500
committerIngo Molnar <mingo@kernel.org>2017-11-13 02:00:52 -0500
commitfcdfafcb73be8fa45909327bbddca46fb362a675 (patch)
tree14fd64a5177c0c21e70cd5bcf4bae0477a89b528
parenta443026a48ad7a8b1b966b00fb5d7111b81a219b (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.h12
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 */
471static inline int __deprecated register_jprobe(struct jprobe *p) 471static inline int register_jprobe(struct jprobe *p)
472{ 472{
473 return -ENOSYS; 473 return -ENOSYS;
474} 474}
475static inline int __deprecated register_jprobes(struct jprobe **jps, int num) 475static inline int register_jprobes(struct jprobe **jps, int num)
476{ 476{
477 return -ENOSYS; 477 return -ENOSYS;
478} 478}
479static inline void __deprecated unregister_jprobe(struct jprobe *p) 479static inline void unregister_jprobe(struct jprobe *p)
480{ 480{
481} 481}
482static inline void __deprecated unregister_jprobes(struct jprobe **jps, int num) 482static inline void unregister_jprobes(struct jprobe **jps, int num)
483{ 483{
484} 484}
485static inline int disable_kretprobe(struct kretprobe *rp) 485static 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}
493static inline int __deprecated disable_jprobe(struct jprobe *jp) 493static inline int disable_jprobe(struct jprobe *jp)
494{ 494{
495 return -ENOSYS; 495 return -ENOSYS;
496} 496}
497static inline int __deprecated enable_jprobe(struct jprobe *jp) 497static inline int enable_jprobe(struct jprobe *jp)
498{ 498{
499 return -ENOSYS; 499 return -ENOSYS;
500} 500}