Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -6
+6 -6
include/linux/kprobes.h
··· 468 468 return -ENOSYS; 469 469 } 470 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 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 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 485 static inline int disable_kretprobe(struct kretprobe *rp) ··· 490 490 { 491 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 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 499 return -ENOSYS; 500 500 }