1b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng/*
2b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * Copyright (c) 2016 Fujitsu Ltd.
3b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * Author: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
4b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng *
5b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * This program is free software; you can redistribute it and/or modify
6b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * it under the terms of the GNU General Public License as published by
7b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * the Free Software Foundation; either version 2 of the License, or
8b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * (at your option) any later version.
9b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng *
10b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * This program is distributed in the hope that it will be useful,
11b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * but WITHOUT ANY WARRANTY; without even the implied warranty of
12b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * the GNU General Public License for more details.
14b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng *
15b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng * Description:
16b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng *  This is a kernel loadable module programme used by insmod01.sh
17b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng *  testcase which inserts this module for test of insmod command.
18b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng */
19b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng
20b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng#include <linux/module.h>
21b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng#include <linux/init.h>
22b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng#include <linux/kernel.h>
23b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng
24b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Fengstatic int test_init(void)
25b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng{
26b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng	return 0;
27b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng}
28b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng
29b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Fengstatic void test_exit(void)
30b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng{
31b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng
32b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng}
33b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Feng
34b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Fengmodule_init(test_init);
35b3494f11c003e0cba3da84b4d366b5a52c0341dbGuangwen Fengmodule_exit(test_exit);
36