drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / compat-signal.h
blobc3b7a2550d1d482a6fc79eb29b9e02037ef679a4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_COMPAT_SIGNAL_H
3 #define __ASM_COMPAT_SIGNAL_H
5 #include <linux/bug.h>
6 #include <linux/compat.h>
7 #include <linux/compiler.h>
9 #include <asm/signal.h>
10 #include <asm/siginfo.h>
12 #include <linux/uaccess.h>
14 static inline int __copy_conv_sigset_to_user(compat_sigset_t __user *d,
15 const sigset_t *s)
17 BUILD_BUG_ON(sizeof(*d) != sizeof(*s));
18 BUILD_BUG_ON(_NSIG_WORDS != 2);
20 return put_compat_sigset(d, s, sizeof(*d));
23 static inline int __copy_conv_sigset_from_user(sigset_t *d,
24 const compat_sigset_t __user *s)
26 return get_compat_sigset(d, s);
29 #endif /* __ASM_COMPAT_SIGNAL_H */