treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / include / asm / stat.h
blob3b4a62f5aeb0c3ead991ef95a91aee27ff4275e8
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright (C) 2012 ARM Ltd.
4 */
5 #ifndef __ASM_STAT_H
6 #define __ASM_STAT_H
8 #include <uapi/asm/stat.h>
10 #ifdef CONFIG_COMPAT
12 #include <linux/time.h>
13 #include <asm/compat.h>
16 * struct stat64 is needed for compat tasks only. Its definition is different
17 * from the generic struct stat64.
19 struct stat64 {
20 compat_u64 st_dev;
21 unsigned char __pad0[4];
23 #define STAT64_HAS_BROKEN_ST_INO 1
24 compat_ulong_t __st_ino;
25 compat_uint_t st_mode;
26 compat_uint_t st_nlink;
28 compat_ulong_t st_uid;
29 compat_ulong_t st_gid;
31 compat_u64 st_rdev;
32 unsigned char __pad3[4];
34 compat_s64 st_size;
35 compat_ulong_t st_blksize;
36 compat_u64 st_blocks; /* Number of 512-byte blocks allocated. */
38 compat_ulong_t st_atime;
39 compat_ulong_t st_atime_nsec;
41 compat_ulong_t st_mtime;
42 compat_ulong_t st_mtime_nsec;
44 compat_ulong_t st_ctime;
45 compat_ulong_t st_ctime_nsec;
47 compat_u64 st_ino;
50 #endif
51 #endif