mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-22 09:52:45 +08:00
9289bfe59c
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
14 lines
279 B
C
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");
|