File tree Expand file tree Collapse file tree 7 files changed +40
-37
lines changed Expand file tree Collapse file tree 7 files changed +40
-37
lines changed Original file line number Diff line number Diff line change 19
19
struct stat {
20
20
unsigned st_dev ;
21
21
long st_pad1 [3 ]; /* Reserved for network id */
22
- ino_t st_ino ;
23
- mode_t st_mode ;
22
+ __kernel_ino_t st_ino ;
23
+ __kernel_mode_t st_mode ;
24
24
__u32 st_nlink ;
25
- uid_t st_uid ;
26
- gid_t st_gid ;
25
+ __kernel_uid_t st_uid ;
26
+ __kernel_gid_t st_gid ;
27
27
unsigned st_rdev ;
28
28
long st_pad2 [2 ];
29
29
long st_size ;
@@ -55,11 +55,11 @@ struct stat64 {
55
55
56
56
unsigned long long st_ino ;
57
57
58
- mode_t st_mode ;
58
+ __kernel_mode_t st_mode ;
59
59
__u32 st_nlink ;
60
60
61
- uid_t st_uid ;
62
- gid_t st_gid ;
61
+ __kernel_uid_t st_uid ;
62
+ __kernel_gid_t st_gid ;
63
63
64
64
unsigned long st_rdev ;
65
65
unsigned long st_pad1 [3 ]; /* Reserved for st_rdev expansion */
@@ -96,11 +96,11 @@ struct stat {
96
96
97
97
unsigned long st_ino ;
98
98
99
- mode_t st_mode ;
99
+ __kernel_mode_t st_mode ;
100
100
__u32 st_nlink ;
101
101
102
- uid_t st_uid ;
103
- gid_t st_gid ;
102
+ __kernel_uid_t st_uid ;
103
+ __kernel_gid_t st_gid ;
104
104
105
105
unsigned int st_rdev ;
106
106
unsigned int st_pad1 [3 ]; /* Reserved for st_rdev expansion */
Original file line number Diff line number Diff line change @@ -29,16 +29,16 @@ struct __old_kernel_stat {
29
29
30
30
struct stat {
31
31
unsigned long st_dev ;
32
- ino_t st_ino ;
32
+ __kernel_ino_t st_ino ;
33
33
#ifdef __powerpc64__
34
34
unsigned long st_nlink ;
35
- mode_t st_mode ;
35
+ __kernel_mode_t st_mode ;
36
36
#else
37
- mode_t st_mode ;
37
+ __kernel_mode_t st_mode ;
38
38
unsigned short st_nlink ;
39
39
#endif
40
- uid_t st_uid ;
41
- gid_t st_gid ;
40
+ __kernel_uid_t st_uid ;
41
+ __kernel_gid_t st_gid ;
42
42
unsigned long st_rdev ;
43
43
long st_size ;
44
44
unsigned long st_blksize ;
Original file line number Diff line number Diff line change 8
8
/* 64 bit sparc */
9
9
struct stat {
10
10
unsigned int st_dev ;
11
- ino_t st_ino ;
12
- mode_t st_mode ;
11
+ __kernel_ino_t st_ino ;
12
+ __kernel_mode_t st_mode ;
13
13
short st_nlink ;
14
- uid_t st_uid ;
15
- gid_t st_gid ;
14
+ __kernel_uid_t st_uid ;
15
+ __kernel_gid_t st_gid ;
16
16
unsigned int st_rdev ;
17
17
long st_size ;
18
18
long st_atime ;
@@ -51,8 +51,8 @@ struct stat64 {
51
51
/* 32 bit sparc */
52
52
struct stat {
53
53
unsigned short st_dev ;
54
- ino_t st_ino ;
55
- mode_t st_mode ;
54
+ __kernel_ino_t st_ino ;
55
+ __kernel_mode_t st_mode ;
56
56
short st_nlink ;
57
57
unsigned short st_uid ;
58
58
unsigned short st_gid ;
Original file line number Diff line number Diff line change 52
52
53
53
#ifndef __KERNEL__
54
54
#include <linux/types.h>
55
- #include <stdlib.h>
56
55
57
56
struct agp_version {
58
57
__u16 major ;
@@ -64,10 +63,10 @@ typedef struct _agp_info {
64
63
__u32 bridge_id ; /* bridge vendor/device */
65
64
__u32 agp_mode ; /* mode info of bridge */
66
65
unsigned long aper_base ;/* base of aperture */
67
- size_t aper_size ; /* size of aperture */
68
- size_t pg_total ; /* max pages (swap + system) */
69
- size_t pg_system ; /* max pages (system) */
70
- size_t pg_used ; /* current pages used */
66
+ __kernel_size_t aper_size ; /* size of aperture */
67
+ __kernel_size_t pg_total ; /* max pages (swap + system) */
68
+ __kernel_size_t pg_system ; /* max pages (system) */
69
+ __kernel_size_t pg_used ; /* current pages used */
71
70
} agp_info ;
72
71
73
72
typedef struct _agp_setup {
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+ #ifndef _STDBOOL_H
3
+ #define _STDBOOL_H
4
+
5
+ #error "Please do not include <stdbool.h> from exported headers"
6
+
7
+ #endif /* _STDBOOL_H */
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+ #ifndef _STDLIB_H
3
+ #define _STDLIB_H
4
+
5
+ #error "Please do not include <stdlib.h> from exported headers"
6
+
7
+ #endif /* _STDLIB_H */
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ UAPI_CFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
15
15
# USERCFLAGS might contain sysroot location for CC.
16
16
UAPI_CFLAGS += $(USERCFLAGS )
17
17
18
- override c_flags = $(UAPI_CFLAGS ) -Wp,-MMD,$(depfile ) -I$( objtree ) /usr/include
18
+ override c_flags = $(UAPI_CFLAGS ) -Wp,-MMD,$(depfile ) -I $( obj ) -I $( srctree ) /usr/dummy- include
19
19
20
20
# The following are excluded for now because they fail to build.
21
21
#
@@ -65,21 +65,11 @@ no-header-test += asm/sigcontext.h
65
65
no-header-test += linux/if_bonding.h
66
66
endif
67
67
68
- ifeq ($(SRCARCH ) ,mips)
69
- no-header-test += asm/stat.h
70
- endif
71
-
72
68
ifeq ($(SRCARCH ) ,powerpc)
73
- no-header-test += asm/stat.h
74
- no-header-test += linux/bpf_perf_event.h
75
- endif
76
-
77
- ifeq ($(SRCARCH ) ,riscv)
78
69
no-header-test += linux/bpf_perf_event.h
79
70
endif
80
71
81
72
ifeq ($(SRCARCH ) ,sparc)
82
- no-header-test += asm/stat.h
83
73
no-header-test += asm/uctx.h
84
74
no-header-test += asm/fbio.h
85
75
endif
You can’t perform that action at this time.
0 commit comments