diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-11 22:25:40 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-21 03:26:31 +0300 |
commit | 55b899aa3e7d0dc02ff9075b883d29eb2d0cb49a (patch) | |
tree | f2069c7b5534bd619235fc8a35a68fdb2833bba0 /include/linux/syscall_user_dispatch_types.h | |
parent | 959d8dc8046186ffea5410f51fcb309880f0dfaa (diff) | |
download | linux-55b899aa3e7d0dc02ff9075b883d29eb2d0cb49a.tar.xz |
syscall_user_dispatch.h: split out *_types.h
thread_info.h pulls in a lot of junk that sched.h that we don't need; in
particular, this helps to kill the printk.h dependency.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/syscall_user_dispatch_types.h')
-rw-r--r-- | include/linux/syscall_user_dispatch_types.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/syscall_user_dispatch_types.h b/include/linux/syscall_user_dispatch_types.h new file mode 100644 index 000000000000..3be36b06c7d7 --- /dev/null +++ b/include/linux/syscall_user_dispatch_types.h @@ -0,0 +1,22 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _SYSCALL_USER_DISPATCH_TYPES_H +#define _SYSCALL_USER_DISPATCH_TYPES_H + +#include <linux/types.h> + +#ifdef CONFIG_GENERIC_ENTRY + +struct syscall_user_dispatch { + char __user *selector; + unsigned long offset; + unsigned long len; + bool on_dispatch; +}; + +#else + +struct syscall_user_dispatch {}; + +#endif + +#endif /* _SYSCALL_USER_DISPATCH_TYPES_H */ |