[16] | 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 | /* @(#)80 1.4 src/avs/fs/mmfs/ts/kernext/gpl-linux/ibmInitWrap.C, mmfs, avs_rgpfs24, rgpfs24s008a 11/17/06 10:14:58 */ |
---|
| 34 | /* |
---|
| 35 | * This file is used for building the mmfs module for 2.4 kernels |
---|
| 36 | * so that the correct kernel release information is incorporated |
---|
| 37 | * into the module, avoiding force loading the module. |
---|
| 38 | */ |
---|
| 39 | |
---|
| 40 | #include <linux/version.h> |
---|
| 41 | #include <cxiSystem.h> |
---|
| 42 | #include <cxiTypes.h> |
---|
| 43 | |
---|
| 44 | #ifdef MODULE |
---|
| 45 | extern "C" const char __gpfs_kernel_version[] __attribute__ \ |
---|
| 46 | ((section(".modinfo"))) = "kernel_version=" UTS_RELEASE; |
---|
| 47 | extern "C" const char __gpfs_license[] __attribute__ \ |
---|
| 48 | ((section(".modinfo"))) = "license=GPL"; |
---|
| 49 | extern "C" const char __gpfs_author[] __attribute__ \ |
---|
| 50 | ((section(".modinfo"))) = "author=IBM <gpfs@us.ibm.com>"; |
---|
| 51 | extern "C" const char __gpfs_description[] __attribute__ \ |
---|
| 52 | ((section(".modinfo"))) = "description=GPFS kernel module"; |
---|
| 53 | #else /* ! MODULE */ |
---|
| 54 | extern "C" int portability_init(void); |
---|
| 55 | extern "C" void portability_cleanup(void); |
---|
| 56 | #endif /* MODULE */ |
---|
| 57 | |
---|