// SPDX-License-Identifier: LGPL-2.1 /* * Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved. */ #ifndef __XFS_H__ #define __XFS_H__ #if defined(__linux__) #include #else # error unknown platform... have fun porting! #endif /* * make sure that any user of the xfs headers has a 64bit off_t type */ extern int xfs_assert_largefile[sizeof(off_t)-8]; /* * sparse kernel source annotations */ #ifndef __user #define __user #endif /* * kernel struct packing shortcut */ #ifndef __packed #define __packed __attribute__((packed)) #endif #ifndef BUILD_BUG_ON #define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) #endif #include #include #endif /* __XFS_H__ */