MIPS: ath25: use generic dma noncoherent ops
[linux-2.6-block.git] / arch / mips / include / asm / compat-signal.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
431dc804
RB
2#ifndef __ASM_COMPAT_SIGNAL_H
3#define __ASM_COMPAT_SIGNAL_H
4
5#include <linux/bug.h>
6#include <linux/compat.h>
7#include <linux/compiler.h>
8
151fd6ac
RB
9#include <asm/signal.h>
10#include <asm/siginfo.h>
11
7c0f6ba6 12#include <linux/uaccess.h>
4c156994 13
431dc804
RB
14static inline int __copy_conv_sigset_to_user(compat_sigset_t __user *d,
15 const sigset_t *s)
16{
7bea578b
AV
17 BUILD_BUG_ON(sizeof(*d) != sizeof(*s));
18 BUILD_BUG_ON(_NSIG_WORDS != 2);
431dc804 19
7bea578b 20 return put_compat_sigset(d, s, sizeof(*d));
431dc804
RB
21}
22
23static inline int __copy_conv_sigset_from_user(sigset_t *d,
24 const compat_sigset_t __user *s)
25{
7bea578b 26 return get_compat_sigset(d, s);
431dc804
RB
27}
28
29#endif /* __ASM_COMPAT_SIGNAL_H */