]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/asm-generic/ioctl.h
rfkill: allocate static minor
[mirror_ubuntu-bionic-kernel.git] / include / asm-generic / ioctl.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
af4cd3fe
BG
2#ifndef _ASM_GENERIC_IOCTL_H
3#define _ASM_GENERIC_IOCTL_H
4
8a1ab315 5#include <uapi/asm-generic/ioctl.h>
af4cd3fe 6
d55875f5
HV
7#ifdef __CHECKER__
8#define _IOC_TYPECHECK(t) (sizeof(t))
9#else
af4cd3fe
BG
10/* provoke compile error for invalid uses of size argument */
11extern unsigned int __invalid_size_argument_for_IOC;
12#define _IOC_TYPECHECK(t) \
13 ((sizeof(t) == sizeof(t[1]) && \
14 sizeof(t) < (1 << _IOC_SIZEBITS)) ? \
15 sizeof(t) : __invalid_size_argument_for_IOC)
d55875f5
HV
16#endif
17
af4cd3fe 18#endif /* _ASM_GENERIC_IOCTL_H */