Skip to content

Commit 1b3c86e

Browse files
Jeff Johnsonmhiramat
authored andcommitted
samples: kprobes: add missing MODULE_DESCRIPTION() macros
make allmodconfig && make W=1 C=1 reports: WARNING: modpost: missing MODULE_DESCRIPTION() in samples/kprobes/kprobe_example.o WARNING: modpost: missing MODULE_DESCRIPTION() in samples/kprobes/kretprobe_example.o Add the missing invocations of the MODULE_DESCRIPTION() macro. Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Jeff Johnson <[email protected]> Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent df216f5 commit 1b3c86e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

samples/kprobes/kprobe_example.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,5 @@ static void __exit kprobe_exit(void)
125125

126126
module_init(kprobe_init)
127127
module_exit(kprobe_exit)
128+
MODULE_DESCRIPTION("sample kernel module showing the use of kprobes");
128129
MODULE_LICENSE("GPL");

samples/kprobes/kretprobe_example.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ static void __exit kretprobe_exit(void)
104104

105105
module_init(kretprobe_init)
106106
module_exit(kretprobe_exit)
107+
MODULE_DESCRIPTION("sample kernel module showing the use of return probes");
107108
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)