diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cgroup-defs.h | 2 | ||||
-rw-r--r-- | include/linux/connector.h | 63 | ||||
-rw-r--r-- | include/linux/device.h | 2 | ||||
-rw-r--r-- | include/linux/hw_random.h | 2 | ||||
-rw-r--r-- | include/linux/lockdep.h | 2 | ||||
-rw-r--r-- | include/linux/mutex.h | 2 | ||||
-rw-r--r-- | include/linux/platform_device.h | 2 | ||||
-rw-r--r-- | include/linux/rwsem.h | 2 | ||||
-rw-r--r-- | include/linux/sched/task.h | 1 | ||||
-rw-r--r-- | include/linux/serial_core.h | 2 | ||||
-rw-r--r-- | include/trace/events/btrfs.h | 40 | ||||
-rw-r--r-- | include/uapi/asm-generic/unistd.h | 2 | ||||
-rw-r--r-- | include/uapi/linux/bpf.h | 2 | ||||
-rw-r--r-- | include/uapi/linux/btrfs_tree.h | 2 | ||||
-rw-r--r-- | include/uapi/rdma/rdma_user_ioctl_cmds.h | 2 |
15 files changed, 117 insertions, 11 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index c5311935239d..430e219e3aba 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h | |||
@@ -624,7 +624,7 @@ struct cftype { | |||
624 | 624 | ||
625 | /* | 625 | /* |
626 | * Control Group subsystem type. | 626 | * Control Group subsystem type. |
627 | * See Documentation/cgroup-v1/cgroups.rst for details | 627 | * See Documentation/admin-guide/cgroup-v1/cgroups.rst for details |
628 | */ | 628 | */ |
629 | struct cgroup_subsys { | 629 | struct cgroup_subsys { |
630 | struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css); | 630 | struct cgroup_subsys_state *(*css_alloc)(struct cgroup_subsys_state *parent_css); |
diff --git a/include/linux/connector.h b/include/linux/connector.h index 1d72ef76f24f..6b6c7396a584 100644 --- a/include/linux/connector.h +++ b/include/linux/connector.h | |||
@@ -55,10 +55,71 @@ struct cn_dev { | |||
55 | struct cn_queue_dev *cbdev; | 55 | struct cn_queue_dev *cbdev; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | /** | ||
59 | * cn_add_callback() - Registers new callback with connector core. | ||
60 | * | ||
61 | * @id: unique connector's user identifier. | ||
62 | * It must be registered in connector.h for legal | ||
63 | * in-kernel users. | ||
64 | * @name: connector's callback symbolic name. | ||
65 | * @callback: connector's callback. | ||
66 | * parameters are %cn_msg and the sender's credentials | ||
67 | */ | ||
58 | int cn_add_callback(struct cb_id *id, const char *name, | 68 | int cn_add_callback(struct cb_id *id, const char *name, |
59 | void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); | 69 | void (*callback)(struct cn_msg *, struct netlink_skb_parms *)); |
60 | void cn_del_callback(struct cb_id *); | 70 | /** |
71 | * cn_del_callback() - Unregisters new callback with connector core. | ||
72 | * | ||
73 | * @id: unique connector's user identifier. | ||
74 | */ | ||
75 | void cn_del_callback(struct cb_id *id); | ||
76 | |||
77 | |||
78 | /** | ||
79 | * cn_netlink_send_mult - Sends message to the specified groups. | ||
80 | * | ||
81 | * @msg: message header(with attached data). | ||
82 | * @len: Number of @msg to be sent. | ||
83 | * @portid: destination port. | ||
84 | * If non-zero the message will be sent to the given port, | ||
85 | * which should be set to the original sender. | ||
86 | * @group: destination group. | ||
87 | * If @portid and @group is zero, then appropriate group will | ||
88 | * be searched through all registered connector users, and | ||
89 | * message will be delivered to the group which was created | ||
90 | * for user with the same ID as in @msg. | ||
91 | * If @group is not zero, then message will be delivered | ||
92 | * to the specified group. | ||
93 | * @gfp_mask: GFP mask. | ||
94 | * | ||
95 | * It can be safely called from softirq context, but may silently | ||
96 | * fail under strong memory pressure. | ||
97 | * | ||
98 | * If there are no listeners for given group %-ESRCH can be returned. | ||
99 | */ | ||
61 | int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask); | 100 | int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask); |
101 | |||
102 | /** | ||
103 | * cn_netlink_send_mult - Sends message to the specified groups. | ||
104 | * | ||
105 | * @msg: message header(with attached data). | ||
106 | * @portid: destination port. | ||
107 | * If non-zero the message will be sent to the given port, | ||
108 | * which should be set to the original sender. | ||
109 | * @group: destination group. | ||
110 | * If @portid and @group is zero, then appropriate group will | ||
111 | * be searched through all registered connector users, and | ||
112 | * message will be delivered to the group which was created | ||
113 | * for user with the same ID as in @msg. | ||
114 | * If @group is not zero, then message will be delivered | ||
115 | * to the specified group. | ||
116 | * @gfp_mask: GFP mask. | ||
117 | * | ||
118 | * It can be safely called from softirq context, but may silently | ||
119 | * fail under strong memory pressure. | ||
120 | * | ||
121 | * If there are no listeners for given group %-ESRCH can be returned. | ||
122 | */ | ||
62 | int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask); | 123 | int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask); |
63 | 124 | ||
64 | int cn_queue_add_callback(struct cn_queue_dev *dev, const char *name, | 125 | int cn_queue_add_callback(struct cn_queue_dev *dev, const char *name, |
diff --git a/include/linux/device.h b/include/linux/device.h index 5eabfa0c4dee..c330b75c6c57 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -6,7 +6,7 @@ | |||
6 | * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de> | 6 | * Copyright (c) 2004-2009 Greg Kroah-Hartman <gregkh@suse.de> |
7 | * Copyright (c) 2008-2009 Novell Inc. | 7 | * Copyright (c) 2008-2009 Novell Inc. |
8 | * | 8 | * |
9 | * See Documentation/driver-model/ for more information. | 9 | * See Documentation/driver-api/driver-model/ for more information. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #ifndef _DEVICE_H_ | 12 | #ifndef _DEVICE_H_ |
diff --git a/include/linux/hw_random.h b/include/linux/hw_random.h index c0b93e0ff0c0..8e6dd908da21 100644 --- a/include/linux/hw_random.h +++ b/include/linux/hw_random.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | Hardware Random Number Generator | 2 | Hardware Random Number Generator |
3 | 3 | ||
4 | Please read Documentation/hw_random.txt for details on use. | 4 | Please read Documentation/admin-guide/hw_random.rst for details on use. |
5 | 5 | ||
6 | ---------------------------------------------------------- | 6 | ---------------------------------------------------------- |
7 | This software may be used and distributed according to the terms | 7 | This software may be used and distributed according to the terms |
diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h index 57baa27f238c..0b0d7259276d 100644 --- a/include/linux/lockdep.h +++ b/include/linux/lockdep.h | |||
@@ -5,7 +5,7 @@ | |||
5 | * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> | 5 | * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> |
6 | * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra | 6 | * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra |
7 | * | 7 | * |
8 | * see Documentation/locking/lockdep-design.txt for more details. | 8 | * see Documentation/locking/lockdep-design.rst for more details. |
9 | */ | 9 | */ |
10 | #ifndef __LINUX_LOCKDEP_H | 10 | #ifndef __LINUX_LOCKDEP_H |
11 | #define __LINUX_LOCKDEP_H | 11 | #define __LINUX_LOCKDEP_H |
diff --git a/include/linux/mutex.h b/include/linux/mutex.h index 3093dd162424..dcd03fee6e01 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h | |||
@@ -151,7 +151,7 @@ static inline bool mutex_is_locked(struct mutex *lock) | |||
151 | 151 | ||
152 | /* | 152 | /* |
153 | * See kernel/locking/mutex.c for detailed documentation of these APIs. | 153 | * See kernel/locking/mutex.c for detailed documentation of these APIs. |
154 | * Also see Documentation/locking/mutex-design.txt. | 154 | * Also see Documentation/locking/mutex-design.rst. |
155 | */ | 155 | */ |
156 | #ifdef CONFIG_DEBUG_LOCK_ALLOC | 156 | #ifdef CONFIG_DEBUG_LOCK_ALLOC |
157 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass); | 157 | extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass); |
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index beb25f277889..9bc36b589827 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> | 5 | * Copyright (c) 2001-2003 Patrick Mochel <mochel@osdl.org> |
6 | * | 6 | * |
7 | * See Documentation/driver-model/ for more information. | 7 | * See Documentation/driver-api/driver-model/ for more information. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #ifndef _PLATFORM_DEVICE_H_ | 10 | #ifndef _PLATFORM_DEVICE_H_ |
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h index e401358c4e7e..9d9c663987d8 100644 --- a/include/linux/rwsem.h +++ b/include/linux/rwsem.h | |||
@@ -160,7 +160,7 @@ extern void downgrade_write(struct rw_semaphore *sem); | |||
160 | * static then another method for expressing nested locking is | 160 | * static then another method for expressing nested locking is |
161 | * the explicit definition of lock class keys and the use of | 161 | * the explicit definition of lock class keys and the use of |
162 | * lockdep_set_class() at lock initialization time. | 162 | * lockdep_set_class() at lock initialization time. |
163 | * See Documentation/locking/lockdep-design.txt for more details.) | 163 | * See Documentation/locking/lockdep-design.rst for more details.) |
164 | */ | 164 | */ |
165 | extern void down_read_nested(struct rw_semaphore *sem, int subclass); | 165 | extern void down_read_nested(struct rw_semaphore *sem, int subclass); |
166 | extern void down_write_nested(struct rw_semaphore *sem, int subclass); | 166 | extern void down_write_nested(struct rw_semaphore *sem, int subclass); |
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index 109a0df5af39..0497091e40c1 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h | |||
@@ -89,6 +89,7 @@ extern void exit_files(struct task_struct *); | |||
89 | extern void exit_itimers(struct signal_struct *); | 89 | extern void exit_itimers(struct signal_struct *); |
90 | 90 | ||
91 | extern long _do_fork(struct kernel_clone_args *kargs); | 91 | extern long _do_fork(struct kernel_clone_args *kargs); |
92 | extern bool legacy_clone_args_valid(const struct kernel_clone_args *kargs); | ||
92 | extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *); | 93 | extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *); |
93 | struct task_struct *fork_idle(int); | 94 | struct task_struct *fork_idle(int); |
94 | struct mm_struct *copy_init_mm(void); | 95 | struct mm_struct *copy_init_mm(void); |
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 05b179015d6c..2b78cc734719 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -32,7 +32,7 @@ struct device; | |||
32 | 32 | ||
33 | /* | 33 | /* |
34 | * This structure describes all the operations that can be done on the | 34 | * This structure describes all the operations that can be done on the |
35 | * physical hardware. See Documentation/serial/driver.rst for details. | 35 | * physical hardware. See Documentation/driver-api/serial/driver.rst for details. |
36 | */ | 36 | */ |
37 | struct uart_ops { | 37 | struct uart_ops { |
38 | unsigned int (*tx_empty)(struct uart_port *); | 38 | unsigned int (*tx_empty)(struct uart_port *); |
diff --git a/include/trace/events/btrfs.h b/include/trace/events/btrfs.h index f9eff010fc7e..2f6a669408bb 100644 --- a/include/trace/events/btrfs.h +++ b/include/trace/events/btrfs.h | |||
@@ -29,6 +29,7 @@ struct btrfs_qgroup_extent_record; | |||
29 | struct btrfs_qgroup; | 29 | struct btrfs_qgroup; |
30 | struct extent_io_tree; | 30 | struct extent_io_tree; |
31 | struct prelim_ref; | 31 | struct prelim_ref; |
32 | struct btrfs_space_info; | ||
32 | 33 | ||
33 | TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS_NR); | 34 | TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS_NR); |
34 | TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS); | 35 | TRACE_DEFINE_ENUM(FLUSH_DELAYED_ITEMS); |
@@ -2091,6 +2092,45 @@ DEFINE_BTRFS_LOCK_EVENT(btrfs_try_tree_read_lock); | |||
2091 | DEFINE_BTRFS_LOCK_EVENT(btrfs_try_tree_write_lock); | 2092 | DEFINE_BTRFS_LOCK_EVENT(btrfs_try_tree_write_lock); |
2092 | DEFINE_BTRFS_LOCK_EVENT(btrfs_tree_read_lock_atomic); | 2093 | DEFINE_BTRFS_LOCK_EVENT(btrfs_tree_read_lock_atomic); |
2093 | 2094 | ||
2095 | DECLARE_EVENT_CLASS(btrfs__space_info_update, | ||
2096 | |||
2097 | TP_PROTO(struct btrfs_fs_info *fs_info, | ||
2098 | struct btrfs_space_info *sinfo, u64 old, s64 diff), | ||
2099 | |||
2100 | TP_ARGS(fs_info, sinfo, old, diff), | ||
2101 | |||
2102 | TP_STRUCT__entry_btrfs( | ||
2103 | __field( u64, type ) | ||
2104 | __field( u64, old ) | ||
2105 | __field( s64, diff ) | ||
2106 | ), | ||
2107 | |||
2108 | TP_fast_assign_btrfs(fs_info, | ||
2109 | __entry->type = sinfo->flags; | ||
2110 | __entry->old = old; | ||
2111 | __entry->diff = diff; | ||
2112 | ), | ||
2113 | TP_printk_btrfs("type=%s old=%llu diff=%lld", | ||
2114 | __print_flags(__entry->type, "|", BTRFS_GROUP_FLAGS), | ||
2115 | __entry->old, __entry->diff) | ||
2116 | ); | ||
2117 | |||
2118 | DEFINE_EVENT(btrfs__space_info_update, update_bytes_may_use, | ||
2119 | |||
2120 | TP_PROTO(struct btrfs_fs_info *fs_info, | ||
2121 | struct btrfs_space_info *sinfo, u64 old, s64 diff), | ||
2122 | |||
2123 | TP_ARGS(fs_info, sinfo, old, diff) | ||
2124 | ); | ||
2125 | |||
2126 | DEFINE_EVENT(btrfs__space_info_update, update_bytes_pinned, | ||
2127 | |||
2128 | TP_PROTO(struct btrfs_fs_info *fs_info, | ||
2129 | struct btrfs_space_info *sinfo, u64 old, s64 diff), | ||
2130 | |||
2131 | TP_ARGS(fs_info, sinfo, old, diff) | ||
2132 | ); | ||
2133 | |||
2094 | #endif /* _TRACE_BTRFS_H */ | 2134 | #endif /* _TRACE_BTRFS_H */ |
2095 | 2135 | ||
2096 | /* This part must be outside protection */ | 2136 | /* This part must be outside protection */ |
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index 9acfff0cd153..1be0e798e362 100644 --- a/include/uapi/asm-generic/unistd.h +++ b/include/uapi/asm-generic/unistd.h | |||
@@ -846,8 +846,10 @@ __SYSCALL(__NR_fsmount, sys_fsmount) | |||
846 | __SYSCALL(__NR_fspick, sys_fspick) | 846 | __SYSCALL(__NR_fspick, sys_fspick) |
847 | #define __NR_pidfd_open 434 | 847 | #define __NR_pidfd_open 434 |
848 | __SYSCALL(__NR_pidfd_open, sys_pidfd_open) | 848 | __SYSCALL(__NR_pidfd_open, sys_pidfd_open) |
849 | #ifdef __ARCH_WANT_SYS_CLONE3 | ||
849 | #define __NR_clone3 435 | 850 | #define __NR_clone3 435 |
850 | __SYSCALL(__NR_clone3, sys_clone3) | 851 | __SYSCALL(__NR_clone3, sys_clone3) |
852 | #endif | ||
851 | 853 | ||
852 | #undef __NR_syscalls | 854 | #undef __NR_syscalls |
853 | #define __NR_syscalls 436 | 855 | #define __NR_syscalls 436 |
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h index 6f68438aa4ed..82699845ef79 100644 --- a/include/uapi/linux/bpf.h +++ b/include/uapi/linux/bpf.h | |||
@@ -806,7 +806,7 @@ union bpf_attr { | |||
806 | * based on a user-provided identifier for all traffic coming from | 806 | * based on a user-provided identifier for all traffic coming from |
807 | * the tasks belonging to the related cgroup. See also the related | 807 | * the tasks belonging to the related cgroup. See also the related |
808 | * kernel documentation, available from the Linux sources in file | 808 | * kernel documentation, available from the Linux sources in file |
809 | * *Documentation/cgroup-v1/net_cls.rst*. | 809 | * *Documentation/admin-guide/cgroup-v1/net_cls.rst*. |
810 | * | 810 | * |
811 | * The Linux kernel has two versions for cgroups: there are | 811 | * The Linux kernel has two versions for cgroups: there are |
812 | * cgroups v1 and cgroups v2. Both are available to users, who can | 812 | * cgroups v1 and cgroups v2. Both are available to users, who can |
diff --git a/include/uapi/linux/btrfs_tree.h b/include/uapi/linux/btrfs_tree.h index 421239b98db2..34d5b34286fa 100644 --- a/include/uapi/linux/btrfs_tree.h +++ b/include/uapi/linux/btrfs_tree.h | |||
@@ -866,6 +866,8 @@ enum btrfs_raid_types { | |||
866 | #define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | \ | 866 | #define BTRFS_BLOCK_GROUP_RAID56_MASK (BTRFS_BLOCK_GROUP_RAID5 | \ |
867 | BTRFS_BLOCK_GROUP_RAID6) | 867 | BTRFS_BLOCK_GROUP_RAID6) |
868 | 868 | ||
869 | #define BTRFS_BLOCK_GROUP_RAID1_MASK (BTRFS_BLOCK_GROUP_RAID1) | ||
870 | |||
869 | /* | 871 | /* |
870 | * We need a bit for restriper to be able to tell when chunks of type | 872 | * We need a bit for restriper to be able to tell when chunks of type |
871 | * SINGLE are available. This "extended" profile format is used in | 873 | * SINGLE are available. This "extended" profile format is used in |
diff --git a/include/uapi/rdma/rdma_user_ioctl_cmds.h b/include/uapi/rdma/rdma_user_ioctl_cmds.h index 64c14cb0022f..b8bb285f6b2a 100644 --- a/include/uapi/rdma/rdma_user_ioctl_cmds.h +++ b/include/uapi/rdma/rdma_user_ioctl_cmds.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/types.h> | 36 | #include <linux/types.h> |
37 | #include <linux/ioctl.h> | 37 | #include <linux/ioctl.h> |
38 | 38 | ||
39 | /* Documentation/ioctl/ioctl-number.txt */ | 39 | /* Documentation/ioctl/ioctl-number.rst */ |
40 | #define RDMA_IOCTL_MAGIC 0x1b | 40 | #define RDMA_IOCTL_MAGIC 0x1b |
41 | #define RDMA_VERBS_IOCTL \ | 41 | #define RDMA_VERBS_IOCTL \ |
42 | _IOWR(RDMA_IOCTL_MAGIC, 1, struct ib_uverbs_ioctl_hdr) | 42 | _IOWR(RDMA_IOCTL_MAGIC, 1, struct ib_uverbs_ioctl_hdr) |