diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-30 04:13:15 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-30 04:13:15 -0400 |
| commit | c88b94a9f43cecdeae4fa3d30cadd9a3f604372f (patch) | |
| tree | 113aea97fed1f08e0b5c9603c43fe1e147b68474 /include/linux | |
| parent | 38c6aa2175c35358d01c29266000d26c78af9e36 (diff) | |
| parent | acb1872577b346bd15ab3a3f8dff780d6cca4b70 (diff) | |
Merge 4.18-rc7 into staging-next
We want the staging changes in here for testing and merge issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/blk-mq.h | 14 | ||||
| -rw-r--r-- | include/linux/bpf-cgroup.h | 1 | ||||
| -rw-r--r-- | include/linux/bpfilter.h | 6 | ||||
| -rw-r--r-- | include/linux/delayacct.h | 2 | ||||
| -rw-r--r-- | include/linux/eventfd.h | 1 | ||||
| -rw-r--r-- | include/linux/filter.h | 6 | ||||
| -rw-r--r-- | include/linux/fs.h | 1 | ||||
| -rw-r--r-- | include/linux/fsl/guts.h | 1 | ||||
| -rw-r--r-- | include/linux/if_bridge.h | 4 | ||||
| -rw-r--r-- | include/linux/igmp.h | 2 | ||||
| -rw-r--r-- | include/linux/intel-iommu.h | 1 | ||||
| -rw-r--r-- | include/linux/marvell_phy.h | 2 | ||||
| -rw-r--r-- | include/linux/mlx5/driver.h | 18 | ||||
| -rw-r--r-- | include/linux/mm.h | 20 | ||||
| -rw-r--r-- | include/linux/pci.h | 2 | ||||
| -rw-r--r-- | include/linux/ring_buffer.h | 1 | ||||
| -rw-r--r-- | include/linux/sched/task.h | 2 | ||||
| -rw-r--r-- | include/linux/skbuff.h | 10 | ||||
| -rw-r--r-- | include/linux/syscalls.h | 1 |
19 files changed, 75 insertions, 20 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index e3147eb74222..ca3f2c2edd85 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
| @@ -287,6 +287,20 @@ void blk_mq_update_nr_hw_queues(struct blk_mq_tag_set *set, int nr_hw_queues); | |||
| 287 | 287 | ||
| 288 | void blk_mq_quiesce_queue_nowait(struct request_queue *q); | 288 | void blk_mq_quiesce_queue_nowait(struct request_queue *q); |
| 289 | 289 | ||
| 290 | /** | ||
| 291 | * blk_mq_mark_complete() - Set request state to complete | ||
| 292 | * @rq: request to set to complete state | ||
| 293 | * | ||
| 294 | * Returns true if request state was successfully set to complete. If | ||
| 295 | * successful, the caller is responsibile for seeing this request is ended, as | ||
| 296 | * blk_mq_complete_request will not work again. | ||
| 297 | */ | ||
| 298 | static inline bool blk_mq_mark_complete(struct request *rq) | ||
| 299 | { | ||
| 300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) == | ||
| 301 | MQ_RQ_IN_FLIGHT; | ||
| 302 | } | ||
| 303 | |||
| 290 | /* | 304 | /* |
| 291 | * Driver command data is immediately after the request. So subtract request | 305 | * Driver command data is immediately after the request. So subtract request |
| 292 | * size to get back to the original request, add request size to get the PDU. | 306 | * size to get back to the original request, add request size to get the PDU. |
diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h index 79795c5fa7c3..d50c2f0a655a 100644 --- a/include/linux/bpf-cgroup.h +++ b/include/linux/bpf-cgroup.h | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | #ifndef _BPF_CGROUP_H | 2 | #ifndef _BPF_CGROUP_H |
| 3 | #define _BPF_CGROUP_H | 3 | #define _BPF_CGROUP_H |
| 4 | 4 | ||
| 5 | #include <linux/errno.h> | ||
| 5 | #include <linux/jump_label.h> | 6 | #include <linux/jump_label.h> |
| 6 | #include <uapi/linux/bpf.h> | 7 | #include <uapi/linux/bpf.h> |
| 7 | 8 | ||
diff --git a/include/linux/bpfilter.h b/include/linux/bpfilter.h index 687b1760bb9f..f02cee0225d4 100644 --- a/include/linux/bpfilter.h +++ b/include/linux/bpfilter.h | |||
| @@ -5,10 +5,10 @@ | |||
| 5 | #include <uapi/linux/bpfilter.h> | 5 | #include <uapi/linux/bpfilter.h> |
| 6 | 6 | ||
| 7 | struct sock; | 7 | struct sock; |
| 8 | int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char *optval, | 8 | int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval, |
| 9 | unsigned int optlen); | 9 | unsigned int optlen); |
| 10 | int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char *optval, | 10 | int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval, |
| 11 | int *optlen); | 11 | int __user *optlen); |
| 12 | extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname, | 12 | extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname, |
| 13 | char __user *optval, | 13 | char __user *optval, |
| 14 | unsigned int optlen, bool is_set); | 14 | unsigned int optlen, bool is_set); |
diff --git a/include/linux/delayacct.h b/include/linux/delayacct.h index e6c0448ebcc7..31c865d1842e 100644 --- a/include/linux/delayacct.h +++ b/include/linux/delayacct.h | |||
| @@ -124,7 +124,7 @@ static inline void delayacct_blkio_start(void) | |||
| 124 | 124 | ||
| 125 | static inline void delayacct_blkio_end(struct task_struct *p) | 125 | static inline void delayacct_blkio_end(struct task_struct *p) |
| 126 | { | 126 | { |
| 127 | if (current->delays) | 127 | if (p->delays) |
| 128 | __delayacct_blkio_end(p); | 128 | __delayacct_blkio_end(p); |
| 129 | delayacct_clear_flag(DELAYACCT_PF_BLKIO); | 129 | delayacct_clear_flag(DELAYACCT_PF_BLKIO); |
| 130 | } | 130 | } |
diff --git a/include/linux/eventfd.h b/include/linux/eventfd.h index 7094718b653b..ffcc7724ca21 100644 --- a/include/linux/eventfd.h +++ b/include/linux/eventfd.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | 11 | ||
| 12 | #include <linux/fcntl.h> | 12 | #include <linux/fcntl.h> |
| 13 | #include <linux/wait.h> | 13 | #include <linux/wait.h> |
| 14 | #include <linux/err.h> | ||
| 14 | 15 | ||
| 15 | /* | 16 | /* |
| 16 | * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining | 17 | * CAREFUL: Check include/uapi/asm-generic/fcntl.h when defining |
diff --git a/include/linux/filter.h b/include/linux/filter.h index 300baad62c88..c73dd7396886 100644 --- a/include/linux/filter.h +++ b/include/linux/filter.h | |||
| @@ -765,8 +765,8 @@ static inline bool bpf_dump_raw_ok(void) | |||
| 765 | struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, | 765 | struct bpf_prog *bpf_patch_insn_single(struct bpf_prog *prog, u32 off, |
| 766 | const struct bpf_insn *patch, u32 len); | 766 | const struct bpf_insn *patch, u32 len); |
| 767 | 767 | ||
| 768 | static inline int __xdp_generic_ok_fwd_dev(struct sk_buff *skb, | 768 | static inline int xdp_ok_fwd_dev(const struct net_device *fwd, |
| 769 | struct net_device *fwd) | 769 | unsigned int pktlen) |
| 770 | { | 770 | { |
| 771 | unsigned int len; | 771 | unsigned int len; |
| 772 | 772 | ||
| @@ -774,7 +774,7 @@ static inline int __xdp_generic_ok_fwd_dev(struct sk_buff *skb, | |||
| 774 | return -ENETDOWN; | 774 | return -ENETDOWN; |
| 775 | 775 | ||
| 776 | len = fwd->mtu + fwd->hard_header_len + VLAN_HLEN; | 776 | len = fwd->mtu + fwd->hard_header_len + VLAN_HLEN; |
| 777 | if (skb->len > len) | 777 | if (pktlen > len) |
| 778 | return -EMSGSIZE; | 778 | return -EMSGSIZE; |
| 779 | 779 | ||
| 780 | return 0; | 780 | return 0; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index d78d146a98da..805bf22898cf 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -2420,6 +2420,7 @@ extern struct file *filp_open(const char *, int, umode_t); | |||
| 2420 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, | 2420 | extern struct file *file_open_root(struct dentry *, struct vfsmount *, |
| 2421 | const char *, int, umode_t); | 2421 | const char *, int, umode_t); |
| 2422 | extern struct file * dentry_open(const struct path *, int, const struct cred *); | 2422 | extern struct file * dentry_open(const struct path *, int, const struct cred *); |
| 2423 | extern struct file *filp_clone_open(struct file *); | ||
| 2423 | extern int filp_close(struct file *, fl_owner_t id); | 2424 | extern int filp_close(struct file *, fl_owner_t id); |
| 2424 | 2425 | ||
| 2425 | extern struct filename *getname_flags(const char __user *, int, int *); | 2426 | extern struct filename *getname_flags(const char __user *, int, int *); |
diff --git a/include/linux/fsl/guts.h b/include/linux/fsl/guts.h index 3efa3b861d44..941b11811f85 100644 --- a/include/linux/fsl/guts.h +++ b/include/linux/fsl/guts.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #define __FSL_GUTS_H__ | 16 | #define __FSL_GUTS_H__ |
| 17 | 17 | ||
| 18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
| 19 | #include <linux/io.h> | ||
| 19 | 20 | ||
| 20 | /** | 21 | /** |
| 21 | * Global Utility Registers. | 22 | * Global Utility Registers. |
diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index 7843b98e1c6e..c20c7e197d07 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h | |||
| @@ -105,13 +105,13 @@ static inline bool br_vlan_enabled(const struct net_device *dev) | |||
| 105 | 105 | ||
| 106 | static inline int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid) | 106 | static inline int br_vlan_get_pvid(const struct net_device *dev, u16 *p_pvid) |
| 107 | { | 107 | { |
| 108 | return -1; | 108 | return -EINVAL; |
| 109 | } | 109 | } |
| 110 | 110 | ||
| 111 | static inline int br_vlan_get_info(const struct net_device *dev, u16 vid, | 111 | static inline int br_vlan_get_info(const struct net_device *dev, u16 vid, |
| 112 | struct bridge_vlan_info *p_vinfo) | 112 | struct bridge_vlan_info *p_vinfo) |
| 113 | { | 113 | { |
| 114 | return -1; | 114 | return -EINVAL; |
| 115 | } | 115 | } |
| 116 | #endif | 116 | #endif |
| 117 | 117 | ||
diff --git a/include/linux/igmp.h b/include/linux/igmp.h index f8231854b5d6..119f53941c12 100644 --- a/include/linux/igmp.h +++ b/include/linux/igmp.h | |||
| @@ -109,6 +109,8 @@ struct ip_mc_list { | |||
| 109 | extern int ip_check_mc_rcu(struct in_device *dev, __be32 mc_addr, __be32 src_addr, u8 proto); | 109 | extern int ip_check_mc_rcu(struct in_device *dev, __be32 mc_addr, __be32 src_addr, u8 proto); |
| 110 | extern int igmp_rcv(struct sk_buff *); | 110 | extern int igmp_rcv(struct sk_buff *); |
| 111 | extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr); | 111 | extern int ip_mc_join_group(struct sock *sk, struct ip_mreqn *imr); |
| 112 | extern int ip_mc_join_group_ssm(struct sock *sk, struct ip_mreqn *imr, | ||
| 113 | unsigned int mode); | ||
| 112 | extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr); | 114 | extern int ip_mc_leave_group(struct sock *sk, struct ip_mreqn *imr); |
| 113 | extern void ip_mc_drop_socket(struct sock *sk); | 115 | extern void ip_mc_drop_socket(struct sock *sk); |
| 114 | extern int ip_mc_source(int add, int omode, struct sock *sk, | 116 | extern int ip_mc_source(int add, int omode, struct sock *sk, |
diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h index 1df940196ab2..ef169d67df92 100644 --- a/include/linux/intel-iommu.h +++ b/include/linux/intel-iommu.h | |||
| @@ -121,6 +121,7 @@ | |||
| 121 | #define ecap_srs(e) ((e >> 31) & 0x1) | 121 | #define ecap_srs(e) ((e >> 31) & 0x1) |
| 122 | #define ecap_ers(e) ((e >> 30) & 0x1) | 122 | #define ecap_ers(e) ((e >> 30) & 0x1) |
| 123 | #define ecap_prs(e) ((e >> 29) & 0x1) | 123 | #define ecap_prs(e) ((e >> 29) & 0x1) |
| 124 | #define ecap_broken_pasid(e) ((e >> 28) & 0x1) | ||
| 124 | #define ecap_dis(e) ((e >> 27) & 0x1) | 125 | #define ecap_dis(e) ((e >> 27) & 0x1) |
| 125 | #define ecap_nest(e) ((e >> 26) & 0x1) | 126 | #define ecap_nest(e) ((e >> 26) & 0x1) |
| 126 | #define ecap_mts(e) ((e >> 25) & 0x1) | 127 | #define ecap_mts(e) ((e >> 25) & 0x1) |
diff --git a/include/linux/marvell_phy.h b/include/linux/marvell_phy.h index 4f5f8c21e283..1eb6f244588d 100644 --- a/include/linux/marvell_phy.h +++ b/include/linux/marvell_phy.h | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | */ | 27 | */ |
| 28 | #define MARVELL_PHY_ID_88E6390 0x01410f90 | 28 | #define MARVELL_PHY_ID_88E6390 0x01410f90 |
| 29 | 29 | ||
| 30 | #define MARVELL_PHY_FAMILY_ID(id) ((id) >> 4) | ||
| 31 | |||
| 30 | /* struct phy_device dev_flags definitions */ | 32 | /* struct phy_device dev_flags definitions */ |
| 31 | #define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001 | 33 | #define MARVELL_PHY_M1145_FLAGS_RESISTANCE 0x00000001 |
| 32 | #define MARVELL_PHY_M1118_DNS323_LEDS 0x00000002 | 34 | #define MARVELL_PHY_M1118_DNS323_LEDS 0x00000002 |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 80cbb7fdce4a..83957920653a 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
| @@ -358,6 +358,7 @@ struct mlx5_frag_buf_ctrl { | |||
| 358 | struct mlx5_frag_buf frag_buf; | 358 | struct mlx5_frag_buf frag_buf; |
| 359 | u32 sz_m1; | 359 | u32 sz_m1; |
| 360 | u32 frag_sz_m1; | 360 | u32 frag_sz_m1; |
| 361 | u32 strides_offset; | ||
| 361 | u8 log_sz; | 362 | u8 log_sz; |
| 362 | u8 log_stride; | 363 | u8 log_stride; |
| 363 | u8 log_frag_strides; | 364 | u8 log_frag_strides; |
| @@ -983,14 +984,22 @@ static inline u32 mlx5_base_mkey(const u32 key) | |||
| 983 | return key & 0xffffff00u; | 984 | return key & 0xffffff00u; |
| 984 | } | 985 | } |
| 985 | 986 | ||
| 986 | static inline void mlx5_fill_fbc(u8 log_stride, u8 log_sz, | 987 | static inline void mlx5_fill_fbc_offset(u8 log_stride, u8 log_sz, |
| 987 | struct mlx5_frag_buf_ctrl *fbc) | 988 | u32 strides_offset, |
| 989 | struct mlx5_frag_buf_ctrl *fbc) | ||
| 988 | { | 990 | { |
| 989 | fbc->log_stride = log_stride; | 991 | fbc->log_stride = log_stride; |
| 990 | fbc->log_sz = log_sz; | 992 | fbc->log_sz = log_sz; |
| 991 | fbc->sz_m1 = (1 << fbc->log_sz) - 1; | 993 | fbc->sz_m1 = (1 << fbc->log_sz) - 1; |
| 992 | fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; | 994 | fbc->log_frag_strides = PAGE_SHIFT - fbc->log_stride; |
| 993 | fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; | 995 | fbc->frag_sz_m1 = (1 << fbc->log_frag_strides) - 1; |
| 996 | fbc->strides_offset = strides_offset; | ||
| 997 | } | ||
| 998 | |||
| 999 | static inline void mlx5_fill_fbc(u8 log_stride, u8 log_sz, | ||
| 1000 | struct mlx5_frag_buf_ctrl *fbc) | ||
| 1001 | { | ||
| 1002 | mlx5_fill_fbc_offset(log_stride, log_sz, 0, fbc); | ||
| 994 | } | 1003 | } |
| 995 | 1004 | ||
| 996 | static inline void mlx5_core_init_cq_frag_buf(struct mlx5_frag_buf_ctrl *fbc, | 1005 | static inline void mlx5_core_init_cq_frag_buf(struct mlx5_frag_buf_ctrl *fbc, |
| @@ -1004,7 +1013,10 @@ static inline void mlx5_core_init_cq_frag_buf(struct mlx5_frag_buf_ctrl *fbc, | |||
| 1004 | static inline void *mlx5_frag_buf_get_wqe(struct mlx5_frag_buf_ctrl *fbc, | 1013 | static inline void *mlx5_frag_buf_get_wqe(struct mlx5_frag_buf_ctrl *fbc, |
| 1005 | u32 ix) | 1014 | u32 ix) |
| 1006 | { | 1015 | { |
| 1007 | unsigned int frag = (ix >> fbc->log_frag_strides); | 1016 | unsigned int frag; |
| 1017 | |||
| 1018 | ix += fbc->strides_offset; | ||
| 1019 | frag = ix >> fbc->log_frag_strides; | ||
| 1008 | 1020 | ||
| 1009 | return fbc->frag_buf.frags[frag].buf + | 1021 | return fbc->frag_buf.frags[frag].buf + |
| 1010 | ((fbc->frag_sz_m1 & ix) << fbc->log_stride); | 1022 | ((fbc->frag_sz_m1 & ix) << fbc->log_stride); |
diff --git a/include/linux/mm.h b/include/linux/mm.h index a0fbb9ffe380..7ba6d356d18f 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
| @@ -155,7 +155,9 @@ extern int overcommit_kbytes_handler(struct ctl_table *, int, void __user *, | |||
| 155 | * mmap() functions). | 155 | * mmap() functions). |
| 156 | */ | 156 | */ |
| 157 | 157 | ||
| 158 | extern struct kmem_cache *vm_area_cachep; | 158 | struct vm_area_struct *vm_area_alloc(struct mm_struct *); |
| 159 | struct vm_area_struct *vm_area_dup(struct vm_area_struct *); | ||
| 160 | void vm_area_free(struct vm_area_struct *); | ||
| 159 | 161 | ||
| 160 | #ifndef CONFIG_MMU | 162 | #ifndef CONFIG_MMU |
| 161 | extern struct rb_root nommu_region_tree; | 163 | extern struct rb_root nommu_region_tree; |
| @@ -450,6 +452,20 @@ struct vm_operations_struct { | |||
| 450 | unsigned long addr); | 452 | unsigned long addr); |
| 451 | }; | 453 | }; |
| 452 | 454 | ||
| 455 | static inline void vma_init(struct vm_area_struct *vma, struct mm_struct *mm) | ||
| 456 | { | ||
| 457 | static const struct vm_operations_struct dummy_vm_ops = {}; | ||
| 458 | |||
| 459 | vma->vm_mm = mm; | ||
| 460 | vma->vm_ops = &dummy_vm_ops; | ||
| 461 | INIT_LIST_HEAD(&vma->anon_vma_chain); | ||
| 462 | } | ||
| 463 | |||
| 464 | static inline void vma_set_anonymous(struct vm_area_struct *vma) | ||
| 465 | { | ||
| 466 | vma->vm_ops = NULL; | ||
| 467 | } | ||
| 468 | |||
| 453 | struct mmu_gather; | 469 | struct mmu_gather; |
| 454 | struct inode; | 470 | struct inode; |
| 455 | 471 | ||
| @@ -2132,7 +2148,7 @@ extern int __meminit __early_pfn_to_nid(unsigned long pfn, | |||
| 2132 | struct mminit_pfnnid_cache *state); | 2148 | struct mminit_pfnnid_cache *state); |
| 2133 | #endif | 2149 | #endif |
| 2134 | 2150 | ||
| 2135 | #ifdef CONFIG_HAVE_MEMBLOCK | 2151 | #if defined(CONFIG_HAVE_MEMBLOCK) && !defined(CONFIG_FLAT_NODE_MEM_MAP) |
| 2136 | void zero_resv_unavail(void); | 2152 | void zero_resv_unavail(void); |
| 2137 | #else | 2153 | #else |
| 2138 | static inline void zero_resv_unavail(void) {} | 2154 | static inline void zero_resv_unavail(void) {} |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 340029b2fb38..abd5d5e17aee 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -1240,6 +1240,8 @@ int pci_register_io_range(struct fwnode_handle *fwnode, phys_addr_t addr, | |||
| 1240 | unsigned long pci_address_to_pio(phys_addr_t addr); | 1240 | unsigned long pci_address_to_pio(phys_addr_t addr); |
| 1241 | phys_addr_t pci_pio_to_address(unsigned long pio); | 1241 | phys_addr_t pci_pio_to_address(unsigned long pio); |
| 1242 | int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr); | 1242 | int pci_remap_iospace(const struct resource *res, phys_addr_t phys_addr); |
| 1243 | int devm_pci_remap_iospace(struct device *dev, const struct resource *res, | ||
| 1244 | phys_addr_t phys_addr); | ||
| 1243 | void pci_unmap_iospace(struct resource *res); | 1245 | void pci_unmap_iospace(struct resource *res); |
| 1244 | void __iomem *devm_pci_remap_cfgspace(struct device *dev, | 1246 | void __iomem *devm_pci_remap_cfgspace(struct device *dev, |
| 1245 | resource_size_t offset, | 1247 | resource_size_t offset, |
diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index b72ebdff0b77..003d09ab308d 100644 --- a/include/linux/ring_buffer.h +++ b/include/linux/ring_buffer.h | |||
| @@ -165,6 +165,7 @@ void ring_buffer_record_enable(struct ring_buffer *buffer); | |||
| 165 | void ring_buffer_record_off(struct ring_buffer *buffer); | 165 | void ring_buffer_record_off(struct ring_buffer *buffer); |
| 166 | void ring_buffer_record_on(struct ring_buffer *buffer); | 166 | void ring_buffer_record_on(struct ring_buffer *buffer); |
| 167 | int ring_buffer_record_is_on(struct ring_buffer *buffer); | 167 | int ring_buffer_record_is_on(struct ring_buffer *buffer); |
| 168 | int ring_buffer_record_is_set_on(struct ring_buffer *buffer); | ||
| 168 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); | 169 | void ring_buffer_record_disable_cpu(struct ring_buffer *buffer, int cpu); |
| 169 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); | 170 | void ring_buffer_record_enable_cpu(struct ring_buffer *buffer, int cpu); |
| 170 | 171 | ||
diff --git a/include/linux/sched/task.h b/include/linux/sched/task.h index 5be31eb7b266..108ede99e533 100644 --- a/include/linux/sched/task.h +++ b/include/linux/sched/task.h | |||
| @@ -75,7 +75,7 @@ extern long _do_fork(unsigned long, unsigned long, unsigned long, int __user *, | |||
| 75 | extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *); | 75 | extern long do_fork(unsigned long, unsigned long, unsigned long, int __user *, int __user *); |
| 76 | struct task_struct *fork_idle(int); | 76 | struct task_struct *fork_idle(int); |
| 77 | extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); | 77 | extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); |
| 78 | extern long kernel_wait4(pid_t, int *, int, struct rusage *); | 78 | extern long kernel_wait4(pid_t, int __user *, int, struct rusage *); |
| 79 | 79 | ||
| 80 | extern void free_task(struct task_struct *tsk); | 80 | extern void free_task(struct task_struct *tsk); |
| 81 | 81 | ||
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 164cdedf6012..610a201126ee 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -630,6 +630,7 @@ typedef unsigned char *sk_buff_data_t; | |||
| 630 | * @hash: the packet hash | 630 | * @hash: the packet hash |
| 631 | * @queue_mapping: Queue mapping for multiqueue devices | 631 | * @queue_mapping: Queue mapping for multiqueue devices |
| 632 | * @xmit_more: More SKBs are pending for this queue | 632 | * @xmit_more: More SKBs are pending for this queue |
| 633 | * @pfmemalloc: skbuff was allocated from PFMEMALLOC reserves | ||
| 633 | * @ndisc_nodetype: router type (from link layer) | 634 | * @ndisc_nodetype: router type (from link layer) |
| 634 | * @ooo_okay: allow the mapping of a socket to a queue to be changed | 635 | * @ooo_okay: allow the mapping of a socket to a queue to be changed |
| 635 | * @l4_hash: indicate hash is a canonical 4-tuple hash over transport | 636 | * @l4_hash: indicate hash is a canonical 4-tuple hash over transport |
| @@ -735,7 +736,7 @@ struct sk_buff { | |||
| 735 | peeked:1, | 736 | peeked:1, |
| 736 | head_frag:1, | 737 | head_frag:1, |
| 737 | xmit_more:1, | 738 | xmit_more:1, |
| 738 | __unused:1; /* one bit hole */ | 739 | pfmemalloc:1; |
| 739 | 740 | ||
| 740 | /* fields enclosed in headers_start/headers_end are copied | 741 | /* fields enclosed in headers_start/headers_end are copied |
| 741 | * using a single memcpy() in __copy_skb_header() | 742 | * using a single memcpy() in __copy_skb_header() |
| @@ -754,31 +755,30 @@ struct sk_buff { | |||
| 754 | 755 | ||
| 755 | __u8 __pkt_type_offset[0]; | 756 | __u8 __pkt_type_offset[0]; |
| 756 | __u8 pkt_type:3; | 757 | __u8 pkt_type:3; |
| 757 | __u8 pfmemalloc:1; | ||
| 758 | __u8 ignore_df:1; | 758 | __u8 ignore_df:1; |
| 759 | |||
| 760 | __u8 nf_trace:1; | 759 | __u8 nf_trace:1; |
| 761 | __u8 ip_summed:2; | 760 | __u8 ip_summed:2; |
| 762 | __u8 ooo_okay:1; | 761 | __u8 ooo_okay:1; |
| 762 | |||
| 763 | __u8 l4_hash:1; | 763 | __u8 l4_hash:1; |
| 764 | __u8 sw_hash:1; | 764 | __u8 sw_hash:1; |
| 765 | __u8 wifi_acked_valid:1; | 765 | __u8 wifi_acked_valid:1; |
| 766 | __u8 wifi_acked:1; | 766 | __u8 wifi_acked:1; |
| 767 | |||
| 768 | __u8 no_fcs:1; | 767 | __u8 no_fcs:1; |
| 769 | /* Indicates the inner headers are valid in the skbuff. */ | 768 | /* Indicates the inner headers are valid in the skbuff. */ |
| 770 | __u8 encapsulation:1; | 769 | __u8 encapsulation:1; |
| 771 | __u8 encap_hdr_csum:1; | 770 | __u8 encap_hdr_csum:1; |
| 772 | __u8 csum_valid:1; | 771 | __u8 csum_valid:1; |
| 772 | |||
| 773 | __u8 csum_complete_sw:1; | 773 | __u8 csum_complete_sw:1; |
| 774 | __u8 csum_level:2; | 774 | __u8 csum_level:2; |
| 775 | __u8 csum_not_inet:1; | 775 | __u8 csum_not_inet:1; |
| 776 | |||
| 777 | __u8 dst_pending_confirm:1; | 776 | __u8 dst_pending_confirm:1; |
| 778 | #ifdef CONFIG_IPV6_NDISC_NODETYPE | 777 | #ifdef CONFIG_IPV6_NDISC_NODETYPE |
| 779 | __u8 ndisc_nodetype:2; | 778 | __u8 ndisc_nodetype:2; |
| 780 | #endif | 779 | #endif |
| 781 | __u8 ipvs_property:1; | 780 | __u8 ipvs_property:1; |
| 781 | |||
| 782 | __u8 inner_protocol_type:1; | 782 | __u8 inner_protocol_type:1; |
| 783 | __u8 remcsum_offload:1; | 783 | __u8 remcsum_offload:1; |
| 784 | #ifdef CONFIG_NET_SWITCHDEV | 784 | #ifdef CONFIG_NET_SWITCHDEV |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index a368a68cb667..5c1a0933768e 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | #ifndef _LINUX_SYSCALLS_H | 11 | #ifndef _LINUX_SYSCALLS_H |
| 12 | #define _LINUX_SYSCALLS_H | 12 | #define _LINUX_SYSCALLS_H |
| 13 | 13 | ||
| 14 | struct __aio_sigset; | ||
| 14 | struct epoll_event; | 15 | struct epoll_event; |
| 15 | struct iattr; | 16 | struct iattr; |
| 16 | struct inode; | 17 | struct inode; |
