blob: d17295b290fa806ef2fcf03989c1f199a336a9b8 [file] [log] [blame]
Brian Gerstaf4cd3f2006-01-09 20:52:18 -08001#ifndef _ASM_GENERIC_IOCTL_H
2#define _ASM_GENERIC_IOCTL_H
3
David Howells8a1ab312012-10-04 18:20:15 +01004#include <uapi/asm-generic/ioctl.h>
Brian Gerstaf4cd3f2006-01-09 20:52:18 -08005
Brian Gerstaf4cd3f2006-01-09 20:52:18 -08006/* provoke compile error for invalid uses of size argument */
7extern unsigned int __invalid_size_argument_for_IOC;
8#define _IOC_TYPECHECK(t) \
9 ((sizeof(t) == sizeof(t[1]) && \
10 sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
11 sizeof(t) : __invalid_size_argument_for_IOC)
Brian Gerstaf4cd3f2006-01-09 20:52:18 -080012#endif /* _ASM_GENERIC_IOCTL_H */