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

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/20240601-md-samples-kprobes-v1-1-b6a772353893@quicinc.com/

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>

authored by

Jeff Johnson and committed by
Masami Hiramatsu (Google)
1b3c86ee df216f57

+2
+1
samples/kprobes/kprobe_example.c
··· 125 125 126 126 module_init(kprobe_init) 127 127 module_exit(kprobe_exit) 128 + MODULE_DESCRIPTION("sample kernel module showing the use of kprobes"); 128 129 MODULE_LICENSE("GPL");
+1
samples/kprobes/kretprobe_example.c
··· 104 104 105 105 module_init(kretprobe_init) 106 106 module_exit(kretprobe_exit) 107 + MODULE_DESCRIPTION("sample kernel module showing the use of return probes"); 107 108 MODULE_LICENSE("GPL");