Skip to contentSkip to conversation

kprobes: Don't spam the build log with deprecation warnings

tip:perf/core Masami Hiramatsu 1 participant 1 message Nov 14, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Masami Hiramatsu

author Acked-by
#1 lore raw
Quoted 7 lines · On Sun, 12 Nov 2017 23:18:55 -0800 tip-bot for Ingo Molnar <[email protected]>…
Commit-ID:  fcdfafcb73be8fa45909327bbddca46fb362a675
Gitweb:     https://git.kernel.org/tip/fcdfafcb73be8fa45909327bbddca46fb362a675
Author:     Ingo Molnar <[email protected]>
AuthorDate: Mon, 13 Nov 2017 07:59:10 +0100
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 13 Nov 2017 08:00:52 +0100
Quoted 5 lines

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.

Thanks!

Quoted 51 lines
Cc Masami Hiramatsu <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Thomas Gleixner <[email protected]>
---
 include/linux/kprobes.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
include/linux/kprobes.h +6 -6
index 56b2e69..9440a2f 100644
@@ -468,18 +468,18 @@ static inline int enable_kprobe(struct kprobe *kp)
 	return -ENOSYS;
 }
 #endif /* CONFIG_KPROBES */
-static inline int __deprecated register_jprobe(struct jprobe *p)
+static inline int register_jprobe(struct jprobe *p)
 {
 	return -ENOSYS;
 }
-static inline int __deprecated register_jprobes(struct jprobe **jps, int num)
+static inline int register_jprobes(struct jprobe **jps, int num)
 {
 	return -ENOSYS;
 }
-static inline void __deprecated unregister_jprobe(struct jprobe *p)
+static inline void unregister_jprobe(struct jprobe *p)
 {
 }
-static inline void __deprecated unregister_jprobes(struct jprobe **jps, int num)
+static inline void unregister_jprobes(struct jprobe **jps, int num)
 {
 }
 static inline int disable_kretprobe(struct kretprobe *rp)
@@ -490,11 +490,11 @@ static inline int enable_kretprobe(struct kretprobe *rp)
 {
 	return enable_kprobe(&rp->kp);
 }
-static inline int __deprecated disable_jprobe(struct jprobe *jp)
+static inline int disable_jprobe(struct jprobe *jp)
 {
 	return -ENOSYS;
 }
-static inline int __deprecated enable_jprobe(struct jprobe *jp)
+static inline int enable_jprobe(struct jprobe *jp)
 {
 	return -ENOSYS;
 }
Signature · 1 line
Masami Hiramatsu <[email protected]>