nhmk/examples/stop.c
linD026 9289bfe59c
Fix the warnings raised by Sparse (#92)
Sparse[1] is a semantic parser, capable of finding out the potential
problems of Linux kernel code. This patch fixed the warnings.

[1] https://www.kernel.org/doc/html/latest/dev-tools/sparse.html
2021-09-04 17:53:29 +08:00

14 lines
279 B
C

/*
* stop.c - Illustration of multi filed modules
*/
#include <linux/kernel.h> /* We are doing kernel work */
#include <linux/module.h> /* Specifically, a module */
void cleanup_module(void)
{
pr_info("Short is the life of a kernel module\n");
}
MODULE_LICENSE("GPL");