1 /* 2 * SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2016 Fujitsu Ltd. 4 * Author: Guangwen Feng <fenggw-fnst@cn.fujitsu.com> 5 * 6 * Description: 7 * This is a kernel loadable module programme used by lssmod01.sh 8 * testcase which inserts this module for test of lsmod command. 9 */ 10 11 #include <linux/module.h> 12 #include <linux/init.h> 13 #include <linux/kernel.h> 14 test_init(void)15static int test_init(void) 16 { 17 return 0; 18 } 19 test_exit(void)20static void test_exit(void) 21 { 22 23 } 24 25 MODULE_LICENSE("GPL"); 26 27 module_init(test_init); 28 module_exit(test_exit); 29