/*************************************************************************** * * Copyright (C) 2001 International Business Machines * All rights reserved. * * This file is part of the GPFS mmfslinux kernel module. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. The name of the author may not be used to endorse or promote products * derived from this software without specific prior written * permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * *************************************************************************** */ /* @(#)07 1.16 src/avs/fs/mmfs/ts/kernext/gpl-linux/Shark-gpl.h, mmfs, avs_rgpfs24, rgpfs240610b 9/9/04 10:19:51 */ /* * Portability layer equivalent of . * */ #ifndef _h_shark_gpl #define _h_shark_gpl /* Indicate portability source code */ #define GPFS_GPL //#include "linux_config.h" /* Try to ensure that this is the first file included in source code */ #ifdef _KERNEL #if defined(_LINUX_TYPES_H) || defined(_LINUX_KERNEL_H) || defined(_LINUX_MODULE_H) #error Shark-gpl.h must be included first; kernel file already seen #endif #else /* !_KERNEL */ #ifdef _FEATURES_H #error Shark-gpl.h must be included first; features.h already seen #endif #endif /* _KERNEL */ #ifdef _KERNEL /* errno needs to be predeclared for kernel code */ extern int errno; /* Include in kernel code for cxiTypes.h */ #include /* need statfs stuff (fsid_t) */ #include #endif /* _KERNEL */ #include /* Avoid various AIX specific header includes */ #define _H_BUF #define _H_XMEM #define _H_SLEEP #define _H_LOCKL #define _H_LOCK_DEFINE #ifdef _KERNEL /* Virtual memory page size. Used for aligning I/O buffers. */ #include /* PAGE_SIZE */ /* Note that the page size can be adjusted for the IA64 Linux kernel, * but we can't allow folks to do this with GPFS. */ #ifdef GPFS_ARCH_IA64 #ifndef CONFIG_IA64_PAGE_SIZE_16KB #error Linux kernel must use CONFIG_IA64_PAGE_SIZE_16KB with GPFS #endif #endif /* GPFS_ARCH_IA64 */ #endif /* _KERNEL */ #ifndef NOOP #define NOOP ((void)0) #endif #endif /* _h_shark_gpl */