1 /*
2 * Copyright (c) Wipro Technologies Ltd, 2002. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of version 2 of the GNU General Public License as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it would be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, write the Free Software Foundation, Inc.,
14 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15 *
16 */
17 /*************************************************************************
18 * Description: This is a kernel loadable module programme used by
19 * testcases of query_module(2). This module has dependency
20 * on dummy_query_mod module (calls function of dummy_del_mod
21 * during initialization).
22 *************************************************************************/
23
24 #define MODULE
25 /* #define __KERNEL__ Commented this line out b/c it causes errors with
26 * module.h when it calls /usr/include/linux/version.h
27 * -12/03/02 Robbie Williamson <robbiew@us.ibm.com>
28 */
29
30 #include <linux/config.h>
31 #include <asm/atomic.h>
32 #include <linux/module.h>
33 #include <linux/kernel.h>
34
35 extern void dummy_func_test(void);
36
37 /* Initialization routine of module */
init_module(void)38 int init_module(void)
39 {
40 /*
41 * Call function of other module, does nothing, used to create
42 * dependency with other module
43 */
44 dummy_func_test();
45 return 0;
46 }
47
48 /* Cleanup routine of module */
cleanup_module(void)49 void cleanup_module(void)
50 {
51 return;
52 }
53