[ARM] fix sharp zaurus c-3000 compile failure without CONFIG_FB_PXA
[linux-2.6/linux-mips.git] / fs / xfs / xfs_macros.h
blob0a9307514a48879035f42cd8e1ed3f0ffe2df9d7
1 /*
2 * Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
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.
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.
12 * Further, this software is distributed without any warranty that it is
13 * free of the rightful claim of any third person regarding infringement
14 * or the like. Any license provided herein, whether implied or
15 * otherwise, applies only to this software file. Patent licenses, if
16 * any, provided herein do not apply to combinations of this program with
17 * other software, or any other product whatsoever.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write the Free Software Foundation, Inc., 59
21 * Temple Place - Suite 330, Boston MA 02111-1307, USA.
23 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
24 * Mountain View, CA 94043, or:
26 * http://www.sgi.com
28 * For further information regarding this notice, see:
30 * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
32 #ifndef __XFS_MACROS_H__
33 #define __XFS_MACROS_H__
36 * Set for debug kernels and simulation
37 * These replacements save space.
38 * Used in xfs_macros.c.
40 #define XFS_WANT_SPACE_C \
41 (!defined(_STANDALONE) && defined(DEBUG))
44 * Set for debug simulation and kernel builds, but not for standalone.
45 * These replacements do not save space.
46 * Used in xfs_macros.c.
48 #define XFS_WANT_FUNCS_C \
49 (!defined(_STANDALONE) && defined(DEBUG))
52 * Corresponding names used in .h files.
54 #define XFS_WANT_SPACE (XFS_WANT_SPACE_C && !defined(XFS_MACRO_C))
55 #define XFS_WANT_FUNCS (XFS_WANT_FUNCS_C && !defined(XFS_MACRO_C))
58 * These are the macros that get turned into functions to save space.
60 #define XFSSO_NULLSTARTBLOCK 1
61 #define XFSSO_XFS_AGB_TO_DADDR 1
62 #define XFSSO_XFS_AGB_TO_FSB 1
63 #define XFSSO_XFS_AGINO_TO_INO 1
64 #define XFSSO_XFS_ALLOC_BLOCK_MINRECS 1
65 #define XFSSO_XFS_ATTR_SF_NEXTENTRY 1
66 #define XFSSO_XFS_BMAP_BLOCK_DMAXRECS 1
67 #define XFSSO_XFS_BMAP_BLOCK_IMAXRECS 1
68 #define XFSSO_XFS_BMAP_BLOCK_IMINRECS 1
69 #define XFSSO_XFS_BMAP_INIT 1
70 #define XFSSO_XFS_BMAP_PTR_IADDR 1
71 #define XFSSO_XFS_BMAP_SANITY_CHECK 1
72 #define XFSSO_XFS_BMAPI_AFLAG 1
73 #define XFSSO_XFS_CFORK_SIZE 1
74 #define XFSSO_XFS_DA_COOKIE_BNO 1
75 #define XFSSO_XFS_DA_COOKIE_ENTRY 1
76 #define XFSSO_XFS_DADDR_TO_AGBNO 1
77 #define XFSSO_XFS_DADDR_TO_FSB 1
78 #define XFSSO_XFS_DFORK_PTR 1
79 #define XFSSO_XFS_DIR_SF_GET_DIRINO 1
80 #define XFSSO_XFS_DIR_SF_NEXTENTRY 1
81 #define XFSSO_XFS_DIR_SF_PUT_DIRINO 1
82 #define XFSSO_XFS_FILBLKS_MIN 1
83 #define XFSSO_XFS_FSB_SANITY_CHECK 1
84 #define XFSSO_XFS_FSB_TO_DADDR 1
85 #define XFSSO_XFS_FSB_TO_DB 1
86 #define XFSSO_XFS_IALLOC_INODES 1
87 #define XFSSO_XFS_IFORK_ASIZE 1
88 #define XFSSO_XFS_IFORK_DSIZE 1
89 #define XFSSO_XFS_IFORK_FORMAT 1
90 #define XFSSO_XFS_IFORK_NEXT_SET 1
91 #define XFSSO_XFS_IFORK_NEXTENTS 1
92 #define XFSSO_XFS_IFORK_PTR 1
93 #define XFSSO_XFS_ILOG_FBROOT 1
94 #define XFSSO_XFS_ILOG_FEXT 1
95 #define XFSSO_XFS_INO_MASK 1
96 #define XFSSO_XFS_INO_TO_FSB 1
97 #define XFSSO_XFS_INODE_CLEAR_READ_AHEAD 1
98 #define XFSSO_XFS_MIN_FREELIST 1
99 #define XFSSO_XFS_SB_GOOD_VERSION 1
100 #define XFSSO_XFS_SB_VERSION_HASNLINK 1
101 #define XFSSO_XLOG_GRANT_ADD_SPACE 1
102 #define XFSSO_XLOG_GRANT_SUB_SPACE 1
104 #endif /* __XFS_MACROS_H__ */