]>
Commit | Line | Data |
---|---|---|
af4cd3fe BG |
1 | #ifndef _ASM_GENERIC_IOCTL_H |
2 | #define _ASM_GENERIC_IOCTL_H | |
3 | ||
8a1ab315 | 4 | #include <uapi/asm-generic/ioctl.h> |
af4cd3fe | 5 | |
d55875f5 HV |
6 | #ifdef __CHECKER__ |
7 | #define _IOC_TYPECHECK(t) (sizeof(t)) | |
8 | #else | |
af4cd3fe BG |
9 | /* provoke compile error for invalid uses of size argument */ |
10 | extern unsigned int __invalid_size_argument_for_IOC; | |
11 | #define _IOC_TYPECHECK(t) \ | |
12 | ((sizeof(t) == sizeof(t[1]) && \ | |
13 | sizeof(t) < (1 << _IOC_SIZEBITS)) ? \ | |
14 | sizeof(t) : __invalid_size_argument_for_IOC) | |
d55875f5 HV |
15 | #endif |
16 | ||
af4cd3fe | 17 | #endif /* _ASM_GENERIC_IOCTL_H */ |