source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/gpl-linux/cfiles.c @ 223

Last change on this file since 223 was 16, checked in by rock, 17 years ago
File size: 3.6 KB
Line 
1/***************************************************************************
2 *
3 * Copyright (C) 2001 International Business Machines
4 * All rights reserved.
5 *
6 * This file is part of the GPFS mmfslinux kernel module.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 *  1. Redistributions of source code must retain the above copyright notice,
13 *     this list of conditions and the following disclaimer.
14 *  2. Redistributions in binary form must reproduce the above copyright
15 *     notice, this list of conditions and the following disclaimer in the
16 *     documentation and/or other materials provided with the distribution.
17 *  3. The name of the author may not be used to endorse or promote products
18 *     derived from this software without specific prior written
19 *     permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
30 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 *************************************************************************** */
33/* @(#)88       1.22  src/avs/fs/mmfs/ts/kernext/gpl-linux/cfiles.c, mmfs, avs_rgpfs24, rgpfs24s003a 5/26/06 09:42:26 */
34/* This file is included by cfiles_<kernopts>.c
35 * It is a list of c files that make up the mmfslinux
36 * module.  The cfiles_<kernopts>.c file includes the
37 * <linux/config.h> that is on the local machine and redefines
38 * the kernel config options.  It then includes this file.
39 * 
40 * The reason for this is so we can build a module for an alternate
41 * kernel config.
42 */ 
43#ifndef KBUILD_MODNAME
44#define KBUILD_MODNAME mmfslinux
45#endif
46
47#ifndef GPFS_ARCH_X86_64
48#define __KERNEL_SYSCALLS__
49#endif
50
51#include "block.c"
52#include "dir.c"
53#include "kx.c"
54#include "mmap.c"
55#include "ss.c"
56#include "super.c"
57#include "inode.c"
58#include "file.c"
59#include "cxiVFSStats.c"
60#include "cxiSystem.c"
61#include "cxiIOBuffer.c"
62#include "gplInit.c"
63#ifdef DMAPI
64#include "dmapi.c"
65#endif
66
67#include "opsdeclare.c"
68#include "gpl-ksyms.c"
69#include "acl.c"
70
71/* Define variables to be exported based on kernel configuration.
72   These can then be detected via "nm" in order to verify that the
73   module that is to be loaded matches the running kernel. */
74
75#if defined(CONFIG_HIGHMEM)
76# if defined(CONFIG_HIGHMEM4G)
77    int GPFS_CONFIG_HIGHMEM4G = 1;
78    EXPORT_SYMBOL(GPFS_CONFIG_HIGHMEM4G);
79# endif
80# if defined(CONFIG_HIGHMEM64G)
81    int GPFS_CONFIG_HIGHMEM64G = 1;
82    EXPORT_SYMBOL(GPFS_CONFIG_HIGHMEM64G);
83# endif
84#endif
85
86#if defined(CONFIG_SMP)
87  int GPFS_CONFIG_SMP = 1;
88  EXPORT_SYMBOL(GPFS_CONFIG_SMP);
89#endif
90
91#if defined(GPFS_ARCH_IA64)
92  int GPFS_CONFIG_IA64 = 1;
93  EXPORT_SYMBOL(GPFS_CONFIG_IA64);
94#endif
95
96/* Compiled for different PAGE_OFFSETs */
97#if defined(CONFIG_1GB)
98  int GPFS_CONFIG_1GB = 1;
99  EXPORT_SYMBOL(GPFS_CONFIG_1GB);
100#elif defined(CONFIG_2GB)
101  int GPFS_CONFIG_2GB = 1;
102  EXPORT_SYMBOL(GPFS_CONFIG_2GB);
103#elif defined(CONFIG_3GB)
104  int GPFS_CONFIG_3GB = 1;
105  EXPORT_SYMBOL(GPFS_CONFIG_3GB);
106#endif
Note: See TracBrowser for help on using the repository browser.