]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: LGPL-2.1 |
1bdd986b NS |
2 | /* |
3 | * Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved. | |
1bdd986b NS |
4 | */ |
5 | #ifndef __XFS_H__ | |
6 | #define __XFS_H__ | |
7 | ||
dcabd4e7 CH |
8 | #if defined(__linux__) |
9 | #include <xfs/linux.h> | |
dcabd4e7 CH |
10 | #else |
11 | # error unknown platform... have fun porting! | |
12 | #endif | |
13 | ||
7fda99a0 FJ |
14 | /* |
15 | * make sure that any user of the xfs headers has a 64bit off_t type | |
16 | */ | |
17 | extern int xfs_assert_largefile[sizeof(off_t)-8]; | |
18 | ||
dcabd4e7 CH |
19 | /* |
20 | * sparse kernel source annotations | |
21 | */ | |
22 | #ifndef __user | |
23 | #define __user | |
24 | #endif | |
25 | ||
34f7aca6 CH |
26 | /* |
27 | * kernel struct packing shortcut | |
28 | */ | |
29 | #ifndef __packed | |
30 | #define __packed __attribute__((packed)) | |
31 | #endif | |
32 | ||
fc60b66d ES |
33 | #ifndef BUILD_BUG_ON |
34 | #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) | |
35 | #endif | |
36 | ||
f8d94331 CH |
37 | #include <xfs/xfs_types.h> |
38 | #include <xfs/xfs_fs.h> | |
1bdd986b NS |
39 | |
40 | #endif /* __XFS_H__ */ |