diff options
author | David S. Miller <davem@davemloft.net> | 2018-03-23 11:24:57 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-23 11:31:58 -0400 |
commit | 03fe2debbb2771fb90881e4ce8109b09cf772a5c (patch) | |
tree | fbaf8738296b2e9dcba81c6daef2d515b6c4948c /include/linux | |
parent | 6686c459e1449a3ee5f3fd313b0a559ace7a700e (diff) | |
parent | f36b7534b83357cf52e747905de6d65b4f7c2512 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Fun set of conflict resolutions here...
For the mac80211 stuff, these were fortunately just parallel
adds. Trivially resolved.
In drivers/net/phy/phy.c we had a bug fix in 'net' that moved the
function phy_disable_interrupts() earlier in the file, whilst in
'net-next' the phy_error() call from this function was removed.
In net/ipv4/xfrm4_policy.c, David Ahern's changes to remove the
'rt_table_id' member of rtable collided with a bug fix in 'net' that
added a new struct member "rt_mtu_locked" which needs to be copied
over here.
The mlxsw driver conflict consisted of net-next separating
the span code and definitions into separate files, whilst
a 'net' bug fix made some changes to that moved code.
The mlx5 infiniband conflict resolution was quite non-trivial,
the RDMA tree's merge commit was used as a guide here, and
here are their notes:
====================
Due to bug fixes found by the syzkaller bot and taken into the for-rc
branch after development for the 4.17 merge window had already started
being taken into the for-next branch, there were fairly non-trivial
merge issues that would need to be resolved between the for-rc branch
and the for-next branch. This merge resolves those conflicts and
provides a unified base upon which ongoing development for 4.17 can
be based.
Conflicts:
drivers/infiniband/hw/mlx5/main.c - Commit 42cea83f9524
(IB/mlx5: Fix cleanup order on unload) added to for-rc and
commit b5ca15ad7e61 (IB/mlx5: Add proper representors support)
add as part of the devel cycle both needed to modify the
init/de-init functions used by mlx5. To support the new
representors, the new functions added by the cleanup patch
needed to be made non-static, and the init/de-init list
added by the representors patch needed to be modified to
match the init/de-init list changes made by the cleanup
patch.
Updates:
drivers/infiniband/hw/mlx5/mlx5_ib.h - Update function
prototypes added by representors patch to reflect new function
names as changed by cleanup patch
drivers/infiniband/hw/mlx5/ib_rep.c - Update init/de-init
stage list to match new order from cleanup patch
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/cgroup-defs.h | 4 | ||||
-rw-r--r-- | include/linux/compat.h | 30 | ||||
-rw-r--r-- | include/linux/fs.h | 1 | ||||
-rw-r--r-- | include/linux/if_tun.h | 4 | ||||
-rw-r--r-- | include/linux/if_vlan.h | 66 | ||||
-rw-r--r-- | include/linux/irqchip/arm-gic-v3.h | 1 | ||||
-rw-r--r-- | include/linux/irqchip/arm-gic.h | 1 | ||||
-rw-r--r-- | include/linux/memblock.h | 1 | ||||
-rw-r--r-- | include/linux/mlx5/driver.h | 4 | ||||
-rw-r--r-- | include/linux/net.h | 1 | ||||
-rw-r--r-- | include/linux/netfilter/x_tables.h | 2 | ||||
-rw-r--r-- | include/linux/of_pci.h | 17 | ||||
-rw-r--r-- | include/linux/percpu-refcount.h | 18 | ||||
-rw-r--r-- | include/linux/phy.h | 5 | ||||
-rw-r--r-- | include/linux/rhashtable.h | 4 | ||||
-rw-r--r-- | include/linux/skbuff.h | 22 | ||||
-rw-r--r-- | include/linux/tty.h | 1 | ||||
-rw-r--r-- | include/linux/u64_stats_sync.h | 22 | ||||
-rw-r--r-- | include/linux/usb/quirks.h | 3 | ||||
-rw-r--r-- | include/linux/workqueue.h | 1 |
20 files changed, 172 insertions, 36 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 9f242b876fde..f8e76d01a5ad 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h | |||
@@ -755,13 +755,13 @@ struct sock_cgroup_data { | |||
755 | * updaters and return part of the previous pointer as the prioidx or | 755 | * updaters and return part of the previous pointer as the prioidx or |
756 | * classid. Such races are short-lived and the result isn't critical. | 756 | * classid. Such races are short-lived and the result isn't critical. |
757 | */ | 757 | */ |
758 | static inline u16 sock_cgroup_prioidx(struct sock_cgroup_data *skcd) | 758 | static inline u16 sock_cgroup_prioidx(const struct sock_cgroup_data *skcd) |
759 | { | 759 | { |
760 | /* fallback to 1 which is always the ID of the root cgroup */ | 760 | /* fallback to 1 which is always the ID of the root cgroup */ |
761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; | 761 | return (skcd->is_data & 1) ? skcd->prioidx : 1; |
762 | } | 762 | } |
763 | 763 | ||
764 | static inline u32 sock_cgroup_classid(struct sock_cgroup_data *skcd) | 764 | static inline u32 sock_cgroup_classid(const struct sock_cgroup_data *skcd) |
765 | { | 765 | { |
766 | /* fallback to 0 which is the unconfigured default classid */ | 766 | /* fallback to 0 which is the unconfigured default classid */ |
767 | return (skcd->is_data & 1) ? skcd->classid : 0; | 767 | return (skcd->is_data & 1) ? skcd->classid : 0; |
diff --git a/include/linux/compat.h b/include/linux/compat.h index 8a9643857c4a..16c3027074a2 100644 --- a/include/linux/compat.h +++ b/include/linux/compat.h | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/if.h> | 17 | #include <linux/if.h> |
18 | #include <linux/fs.h> | 18 | #include <linux/fs.h> |
19 | #include <linux/aio_abi.h> /* for aio_context_t */ | 19 | #include <linux/aio_abi.h> /* for aio_context_t */ |
20 | #include <linux/uaccess.h> | ||
20 | #include <linux/unistd.h> | 21 | #include <linux/unistd.h> |
21 | 22 | ||
22 | #include <asm/compat.h> | 23 | #include <asm/compat.h> |
@@ -229,13 +230,13 @@ typedef struct compat_siginfo { | |||
229 | short int _addr_lsb; /* Valid LSB of the reported address. */ | 230 | short int _addr_lsb; /* Valid LSB of the reported address. */ |
230 | /* used when si_code=SEGV_BNDERR */ | 231 | /* used when si_code=SEGV_BNDERR */ |
231 | struct { | 232 | struct { |
232 | short _dummy_bnd; | 233 | compat_uptr_t _dummy_bnd; |
233 | compat_uptr_t _lower; | 234 | compat_uptr_t _lower; |
234 | compat_uptr_t _upper; | 235 | compat_uptr_t _upper; |
235 | } _addr_bnd; | 236 | } _addr_bnd; |
236 | /* used when si_code=SEGV_PKUERR */ | 237 | /* used when si_code=SEGV_PKUERR */ |
237 | struct { | 238 | struct { |
238 | short _dummy_pkey; | 239 | compat_uptr_t _dummy_pkey; |
239 | u32 _pkey; | 240 | u32 _pkey; |
240 | } _addr_pkey; | 241 | } _addr_pkey; |
241 | }; | 242 | }; |
@@ -550,8 +551,29 @@ asmlinkage long compat_sys_settimeofday(struct compat_timeval __user *tv, | |||
550 | asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp); | 551 | asmlinkage long compat_sys_adjtimex(struct compat_timex __user *utp); |
551 | 552 | ||
552 | extern int get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat); | 553 | extern int get_compat_sigset(sigset_t *set, const compat_sigset_t __user *compat); |
553 | extern int put_compat_sigset(compat_sigset_t __user *compat, | 554 | |
554 | const sigset_t *set, unsigned int size); | 555 | /* |
556 | * Defined inline such that size can be compile time constant, which avoids | ||
557 | * CONFIG_HARDENED_USERCOPY complaining about copies from task_struct | ||
558 | */ | ||
559 | static inline int | ||
560 | put_compat_sigset(compat_sigset_t __user *compat, const sigset_t *set, | ||
561 | unsigned int size) | ||
562 | { | ||
563 | /* size <= sizeof(compat_sigset_t) <= sizeof(sigset_t) */ | ||
564 | #ifdef __BIG_ENDIAN | ||
565 | compat_sigset_t v; | ||
566 | switch (_NSIG_WORDS) { | ||
567 | case 4: v.sig[7] = (set->sig[3] >> 32); v.sig[6] = set->sig[3]; | ||
568 | case 3: v.sig[5] = (set->sig[2] >> 32); v.sig[4] = set->sig[2]; | ||
569 | case 2: v.sig[3] = (set->sig[1] >> 32); v.sig[2] = set->sig[1]; | ||
570 | case 1: v.sig[1] = (set->sig[0] >> 32); v.sig[0] = set->sig[0]; | ||
571 | } | ||
572 | return copy_to_user(compat, &v, size) ? -EFAULT : 0; | ||
573 | #else | ||
574 | return copy_to_user(compat, set, size) ? -EFAULT : 0; | ||
575 | #endif | ||
576 | } | ||
555 | 577 | ||
556 | asmlinkage long compat_sys_migrate_pages(compat_pid_t pid, | 578 | asmlinkage long compat_sys_migrate_pages(compat_pid_t pid, |
557 | compat_ulong_t maxnode, const compat_ulong_t __user *old_nodes, | 579 | compat_ulong_t maxnode, const compat_ulong_t __user *old_nodes, |
diff --git a/include/linux/fs.h b/include/linux/fs.h index 79c413985305..c6baf767619e 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1317,6 +1317,7 @@ extern int send_sigurg(struct fown_struct *fown); | |||
1317 | #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ | 1317 | #define SB_I_CGROUPWB 0x00000001 /* cgroup-aware writeback enabled */ |
1318 | #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ | 1318 | #define SB_I_NOEXEC 0x00000002 /* Ignore executables on this fs */ |
1319 | #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ | 1319 | #define SB_I_NODEV 0x00000004 /* Ignore devices on this fs */ |
1320 | #define SB_I_MULTIROOT 0x00000008 /* Multiple roots to the dentry tree */ | ||
1320 | 1321 | ||
1321 | /* sb->s_iflags to limit user namespace mounts */ | 1322 | /* sb->s_iflags to limit user namespace mounts */ |
1322 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ | 1323 | #define SB_I_USERNS_VISIBLE 0x00000010 /* fstype already mounted */ |
diff --git a/include/linux/if_tun.h b/include/linux/if_tun.h index c5b0a75a7812..fd00170b494f 100644 --- a/include/linux/if_tun.h +++ b/include/linux/if_tun.h | |||
@@ -25,6 +25,7 @@ struct ptr_ring *tun_get_tx_ring(struct file *file); | |||
25 | bool tun_is_xdp_buff(void *ptr); | 25 | bool tun_is_xdp_buff(void *ptr); |
26 | void *tun_xdp_to_ptr(void *ptr); | 26 | void *tun_xdp_to_ptr(void *ptr); |
27 | void *tun_ptr_to_xdp(void *ptr); | 27 | void *tun_ptr_to_xdp(void *ptr); |
28 | void tun_ptr_free(void *ptr); | ||
28 | #else | 29 | #else |
29 | #include <linux/err.h> | 30 | #include <linux/err.h> |
30 | #include <linux/errno.h> | 31 | #include <linux/errno.h> |
@@ -50,5 +51,8 @@ static inline void *tun_ptr_to_xdp(void *ptr) | |||
50 | { | 51 | { |
51 | return NULL; | 52 | return NULL; |
52 | } | 53 | } |
54 | static inline void tun_ptr_free(void *ptr) | ||
55 | { | ||
56 | } | ||
53 | #endif /* CONFIG_TUN */ | 57 | #endif /* CONFIG_TUN */ |
54 | #endif /* __IF_TUN_H */ | 58 | #endif /* __IF_TUN_H */ |
diff --git a/include/linux/if_vlan.h b/include/linux/if_vlan.h index 5e6a2d4dc366..c4a1cff9c768 100644 --- a/include/linux/if_vlan.h +++ b/include/linux/if_vlan.h | |||
@@ -300,30 +300,34 @@ static inline bool vlan_hw_offload_capable(netdev_features_t features, | |||
300 | } | 300 | } |
301 | 301 | ||
302 | /** | 302 | /** |
303 | * __vlan_insert_tag - regular VLAN tag inserting | 303 | * __vlan_insert_inner_tag - inner VLAN tag inserting |
304 | * @skb: skbuff to tag | 304 | * @skb: skbuff to tag |
305 | * @vlan_proto: VLAN encapsulation protocol | 305 | * @vlan_proto: VLAN encapsulation protocol |
306 | * @vlan_tci: VLAN TCI to insert | 306 | * @vlan_tci: VLAN TCI to insert |
307 | * @mac_len: MAC header length including outer vlan headers | ||
307 | * | 308 | * |
308 | * Inserts the VLAN tag into @skb as part of the payload | 309 | * Inserts the VLAN tag into @skb as part of the payload at offset mac_len |
309 | * Returns error if skb_cow_head failes. | 310 | * Returns error if skb_cow_head failes. |
310 | * | 311 | * |
311 | * Does not change skb->protocol so this function can be used during receive. | 312 | * Does not change skb->protocol so this function can be used during receive. |
312 | */ | 313 | */ |
313 | static inline int __vlan_insert_tag(struct sk_buff *skb, | 314 | static inline int __vlan_insert_inner_tag(struct sk_buff *skb, |
314 | __be16 vlan_proto, u16 vlan_tci) | 315 | __be16 vlan_proto, u16 vlan_tci, |
316 | unsigned int mac_len) | ||
315 | { | 317 | { |
316 | struct vlan_ethhdr *veth; | 318 | struct vlan_ethhdr *veth; |
317 | 319 | ||
318 | if (skb_cow_head(skb, VLAN_HLEN) < 0) | 320 | if (skb_cow_head(skb, VLAN_HLEN) < 0) |
319 | return -ENOMEM; | 321 | return -ENOMEM; |
320 | 322 | ||
321 | veth = skb_push(skb, VLAN_HLEN); | 323 | skb_push(skb, VLAN_HLEN); |
322 | 324 | ||
323 | /* Move the mac addresses to the beginning of the new header. */ | 325 | /* Move the mac header sans proto to the beginning of the new header. */ |
324 | memmove(skb->data, skb->data + VLAN_HLEN, 2 * ETH_ALEN); | 326 | memmove(skb->data, skb->data + VLAN_HLEN, mac_len - ETH_TLEN); |
325 | skb->mac_header -= VLAN_HLEN; | 327 | skb->mac_header -= VLAN_HLEN; |
326 | 328 | ||
329 | veth = (struct vlan_ethhdr *)(skb->data + mac_len - ETH_HLEN); | ||
330 | |||
327 | /* first, the ethernet type */ | 331 | /* first, the ethernet type */ |
328 | veth->h_vlan_proto = vlan_proto; | 332 | veth->h_vlan_proto = vlan_proto; |
329 | 333 | ||
@@ -334,12 +338,30 @@ static inline int __vlan_insert_tag(struct sk_buff *skb, | |||
334 | } | 338 | } |
335 | 339 | ||
336 | /** | 340 | /** |
337 | * vlan_insert_tag - regular VLAN tag inserting | 341 | * __vlan_insert_tag - regular VLAN tag inserting |
338 | * @skb: skbuff to tag | 342 | * @skb: skbuff to tag |
339 | * @vlan_proto: VLAN encapsulation protocol | 343 | * @vlan_proto: VLAN encapsulation protocol |
340 | * @vlan_tci: VLAN TCI to insert | 344 | * @vlan_tci: VLAN TCI to insert |
341 | * | 345 | * |
342 | * Inserts the VLAN tag into @skb as part of the payload | 346 | * Inserts the VLAN tag into @skb as part of the payload |
347 | * Returns error if skb_cow_head failes. | ||
348 | * | ||
349 | * Does not change skb->protocol so this function can be used during receive. | ||
350 | */ | ||
351 | static inline int __vlan_insert_tag(struct sk_buff *skb, | ||
352 | __be16 vlan_proto, u16 vlan_tci) | ||
353 | { | ||
354 | return __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); | ||
355 | } | ||
356 | |||
357 | /** | ||
358 | * vlan_insert_inner_tag - inner VLAN tag inserting | ||
359 | * @skb: skbuff to tag | ||
360 | * @vlan_proto: VLAN encapsulation protocol | ||
361 | * @vlan_tci: VLAN TCI to insert | ||
362 | * @mac_len: MAC header length including outer vlan headers | ||
363 | * | ||
364 | * Inserts the VLAN tag into @skb as part of the payload at offset mac_len | ||
343 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. | 365 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. |
344 | * | 366 | * |
345 | * Following the skb_unshare() example, in case of error, the calling function | 367 | * Following the skb_unshare() example, in case of error, the calling function |
@@ -347,12 +369,14 @@ static inline int __vlan_insert_tag(struct sk_buff *skb, | |||
347 | * | 369 | * |
348 | * Does not change skb->protocol so this function can be used during receive. | 370 | * Does not change skb->protocol so this function can be used during receive. |
349 | */ | 371 | */ |
350 | static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | 372 | static inline struct sk_buff *vlan_insert_inner_tag(struct sk_buff *skb, |
351 | __be16 vlan_proto, u16 vlan_tci) | 373 | __be16 vlan_proto, |
374 | u16 vlan_tci, | ||
375 | unsigned int mac_len) | ||
352 | { | 376 | { |
353 | int err; | 377 | int err; |
354 | 378 | ||
355 | err = __vlan_insert_tag(skb, vlan_proto, vlan_tci); | 379 | err = __vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, mac_len); |
356 | if (err) { | 380 | if (err) { |
357 | dev_kfree_skb_any(skb); | 381 | dev_kfree_skb_any(skb); |
358 | return NULL; | 382 | return NULL; |
@@ -361,6 +385,26 @@ static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | |||
361 | } | 385 | } |
362 | 386 | ||
363 | /** | 387 | /** |
388 | * vlan_insert_tag - regular VLAN tag inserting | ||
389 | * @skb: skbuff to tag | ||
390 | * @vlan_proto: VLAN encapsulation protocol | ||
391 | * @vlan_tci: VLAN TCI to insert | ||
392 | * | ||
393 | * Inserts the VLAN tag into @skb as part of the payload | ||
394 | * Returns a VLAN tagged skb. If a new skb is created, @skb is freed. | ||
395 | * | ||
396 | * Following the skb_unshare() example, in case of error, the calling function | ||
397 | * doesn't have to worry about freeing the original skb. | ||
398 | * | ||
399 | * Does not change skb->protocol so this function can be used during receive. | ||
400 | */ | ||
401 | static inline struct sk_buff *vlan_insert_tag(struct sk_buff *skb, | ||
402 | __be16 vlan_proto, u16 vlan_tci) | ||
403 | { | ||
404 | return vlan_insert_inner_tag(skb, vlan_proto, vlan_tci, ETH_HLEN); | ||
405 | } | ||
406 | |||
407 | /** | ||
364 | * vlan_insert_tag_set_proto - regular VLAN tag inserting | 408 | * vlan_insert_tag_set_proto - regular VLAN tag inserting |
365 | * @skb: skbuff to tag | 409 | * @skb: skbuff to tag |
366 | * @vlan_proto: VLAN encapsulation protocol | 410 | * @vlan_proto: VLAN encapsulation protocol |
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index c00c4c33e432..b26eccc78fb1 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h | |||
@@ -503,6 +503,7 @@ | |||
503 | 503 | ||
504 | #define ICH_HCR_EN (1 << 0) | 504 | #define ICH_HCR_EN (1 << 0) |
505 | #define ICH_HCR_UIE (1 << 1) | 505 | #define ICH_HCR_UIE (1 << 1) |
506 | #define ICH_HCR_NPIE (1 << 3) | ||
506 | #define ICH_HCR_TC (1 << 10) | 507 | #define ICH_HCR_TC (1 << 10) |
507 | #define ICH_HCR_TALL0 (1 << 11) | 508 | #define ICH_HCR_TALL0 (1 << 11) |
508 | #define ICH_HCR_TALL1 (1 << 12) | 509 | #define ICH_HCR_TALL1 (1 << 12) |
diff --git a/include/linux/irqchip/arm-gic.h b/include/linux/irqchip/arm-gic.h index d3453ee072fc..68d8b1f73682 100644 --- a/include/linux/irqchip/arm-gic.h +++ b/include/linux/irqchip/arm-gic.h | |||
@@ -84,6 +84,7 @@ | |||
84 | 84 | ||
85 | #define GICH_HCR_EN (1 << 0) | 85 | #define GICH_HCR_EN (1 << 0) |
86 | #define GICH_HCR_UIE (1 << 1) | 86 | #define GICH_HCR_UIE (1 << 1) |
87 | #define GICH_HCR_NPIE (1 << 3) | ||
87 | 88 | ||
88 | #define GICH_LR_VIRTUALID (0x3ff << 0) | 89 | #define GICH_LR_VIRTUALID (0x3ff << 0) |
89 | #define GICH_LR_PHYSID_CPUID_SHIFT (10) | 90 | #define GICH_LR_PHYSID_CPUID_SHIFT (10) |
diff --git a/include/linux/memblock.h b/include/linux/memblock.h index 8be5077efb5f..f92ea7783652 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h | |||
@@ -187,7 +187,6 @@ int memblock_search_pfn_nid(unsigned long pfn, unsigned long *start_pfn, | |||
187 | unsigned long *end_pfn); | 187 | unsigned long *end_pfn); |
188 | void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn, | 188 | void __next_mem_pfn_range(int *idx, int nid, unsigned long *out_start_pfn, |
189 | unsigned long *out_end_pfn, int *out_nid); | 189 | unsigned long *out_end_pfn, int *out_nid); |
190 | unsigned long memblock_next_valid_pfn(unsigned long pfn, unsigned long max_pfn); | ||
191 | 190 | ||
192 | /** | 191 | /** |
193 | * for_each_mem_pfn_range - early memory pfn range iterator | 192 | * for_each_mem_pfn_range - early memory pfn range iterator |
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 4814cad7456e..cded85ab6fe4 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h | |||
@@ -462,8 +462,8 @@ struct mlx5_core_srq { | |||
462 | struct mlx5_core_rsc_common common; /* must be first */ | 462 | struct mlx5_core_rsc_common common; /* must be first */ |
463 | u32 srqn; | 463 | u32 srqn; |
464 | int max; | 464 | int max; |
465 | int max_gs; | 465 | size_t max_gs; |
466 | int max_avail_gather; | 466 | size_t max_avail_gather; |
467 | int wqe_shift; | 467 | int wqe_shift; |
468 | void (*event) (struct mlx5_core_srq *, enum mlx5_event); | 468 | void (*event) (struct mlx5_core_srq *, enum mlx5_event); |
469 | 469 | ||
diff --git a/include/linux/net.h b/include/linux/net.h index 000d1aada74f..2248a052061d 100644 --- a/include/linux/net.h +++ b/include/linux/net.h | |||
@@ -222,6 +222,7 @@ enum { | |||
222 | int sock_wake_async(struct socket_wq *sk_wq, int how, int band); | 222 | int sock_wake_async(struct socket_wq *sk_wq, int how, int band); |
223 | int sock_register(const struct net_proto_family *fam); | 223 | int sock_register(const struct net_proto_family *fam); |
224 | void sock_unregister(int family); | 224 | void sock_unregister(int family); |
225 | bool sock_is_registered(int family); | ||
225 | int __sock_create(struct net *net, int family, int type, int proto, | 226 | int __sock_create(struct net *net, int family, int type, int proto, |
226 | struct socket **res, int kern); | 227 | struct socket **res, int kern); |
227 | int sock_create(int family, int type, int proto, struct socket **res); | 228 | int sock_create(int family, int type, int proto, struct socket **res); |
diff --git a/include/linux/netfilter/x_tables.h b/include/linux/netfilter/x_tables.h index 1313b35c3ab7..14529511c4b8 100644 --- a/include/linux/netfilter/x_tables.h +++ b/include/linux/netfilter/x_tables.h | |||
@@ -285,6 +285,8 @@ unsigned int *xt_alloc_entry_offsets(unsigned int size); | |||
285 | bool xt_find_jump_offset(const unsigned int *offsets, | 285 | bool xt_find_jump_offset(const unsigned int *offsets, |
286 | unsigned int target, unsigned int size); | 286 | unsigned int target, unsigned int size); |
287 | 287 | ||
288 | int xt_check_proc_name(const char *name, unsigned int size); | ||
289 | |||
288 | int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto, | 290 | int xt_check_match(struct xt_mtchk_param *, unsigned int size, u_int8_t proto, |
289 | bool inv_proto); | 291 | bool inv_proto); |
290 | int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto, | 292 | int xt_check_target(struct xt_tgchk_param *, unsigned int size, u_int8_t proto, |
diff --git a/include/linux/of_pci.h b/include/linux/of_pci.h index 88865e0ebf4d..091033a6b836 100644 --- a/include/linux/of_pci.h +++ b/include/linux/of_pci.h | |||
@@ -13,7 +13,6 @@ struct device_node; | |||
13 | struct device_node *of_pci_find_child_device(struct device_node *parent, | 13 | struct device_node *of_pci_find_child_device(struct device_node *parent, |
14 | unsigned int devfn); | 14 | unsigned int devfn); |
15 | int of_pci_get_devfn(struct device_node *np); | 15 | int of_pci_get_devfn(struct device_node *np); |
16 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); | ||
17 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); | 16 | int of_pci_parse_bus_range(struct device_node *node, struct resource *res); |
18 | int of_get_pci_domain_nr(struct device_node *node); | 17 | int of_get_pci_domain_nr(struct device_node *node); |
19 | int of_pci_get_max_link_speed(struct device_node *node); | 18 | int of_pci_get_max_link_speed(struct device_node *node); |
@@ -34,12 +33,6 @@ static inline int of_pci_get_devfn(struct device_node *np) | |||
34 | } | 33 | } |
35 | 34 | ||
36 | static inline int | 35 | static inline int |
37 | of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) | ||
38 | { | ||
39 | return 0; | ||
40 | } | ||
41 | |||
42 | static inline int | ||
43 | of_pci_parse_bus_range(struct device_node *node, struct resource *res) | 36 | of_pci_parse_bus_range(struct device_node *node, struct resource *res) |
44 | { | 37 | { |
45 | return -EINVAL; | 38 | return -EINVAL; |
@@ -67,6 +60,16 @@ of_pci_get_max_link_speed(struct device_node *node) | |||
67 | static inline void of_pci_check_probe_only(void) { } | 60 | static inline void of_pci_check_probe_only(void) { } |
68 | #endif | 61 | #endif |
69 | 62 | ||
63 | #if IS_ENABLED(CONFIG_OF_IRQ) | ||
64 | int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); | ||
65 | #else | ||
66 | static inline int | ||
67 | of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) | ||
68 | { | ||
69 | return 0; | ||
70 | } | ||
71 | #endif | ||
72 | |||
70 | #if defined(CONFIG_OF_ADDRESS) | 73 | #if defined(CONFIG_OF_ADDRESS) |
71 | int of_pci_get_host_bridge_resources(struct device_node *dev, | 74 | int of_pci_get_host_bridge_resources(struct device_node *dev, |
72 | unsigned char busno, unsigned char bus_max, | 75 | unsigned char busno, unsigned char bus_max, |
diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h index 864d167a1073..009cdf3d65b6 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h | |||
@@ -30,10 +30,14 @@ | |||
30 | * calls io_destroy() or the process exits. | 30 | * calls io_destroy() or the process exits. |
31 | * | 31 | * |
32 | * In the aio code, kill_ioctx() is called when we wish to destroy a kioctx; it | 32 | * In the aio code, kill_ioctx() is called when we wish to destroy a kioctx; it |
33 | * calls percpu_ref_kill(), then hlist_del_rcu() and synchronize_rcu() to remove | 33 | * removes the kioctx from the proccess's table of kioctxs and kills percpu_ref. |
34 | * the kioctx from the proccess's list of kioctxs - after that, there can't be | 34 | * After that, there can't be any new users of the kioctx (from lookup_ioctx()) |
35 | * any new users of the kioctx (from lookup_ioctx()) and it's then safe to drop | 35 | * and it's then safe to drop the initial ref with percpu_ref_put(). |
36 | * the initial ref with percpu_ref_put(). | 36 | * |
37 | * Note that the free path, free_ioctx(), needs to go through explicit call_rcu() | ||
38 | * to synchronize with RCU protected lookup_ioctx(). percpu_ref operations don't | ||
39 | * imply RCU grace periods of any kind and if a user wants to combine percpu_ref | ||
40 | * with RCU protection, it must be done explicitly. | ||
37 | * | 41 | * |
38 | * Code that does a two stage shutdown like this often needs some kind of | 42 | * Code that does a two stage shutdown like this often needs some kind of |
39 | * explicit synchronization to ensure the initial refcount can only be dropped | 43 | * explicit synchronization to ensure the initial refcount can only be dropped |
@@ -113,8 +117,10 @@ void percpu_ref_reinit(struct percpu_ref *ref); | |||
113 | * Must be used to drop the initial ref on a percpu refcount; must be called | 117 | * Must be used to drop the initial ref on a percpu refcount; must be called |
114 | * precisely once before shutdown. | 118 | * precisely once before shutdown. |
115 | * | 119 | * |
116 | * Puts @ref in non percpu mode, then does a call_rcu() before gathering up the | 120 | * Switches @ref into atomic mode before gathering up the percpu counters |
117 | * percpu counters and dropping the initial ref. | 121 | * and dropping the initial ref. |
122 | * | ||
123 | * There are no implied RCU grace periods between kill and release. | ||
118 | */ | 124 | */ |
119 | static inline void percpu_ref_kill(struct percpu_ref *ref) | 125 | static inline void percpu_ref_kill(struct percpu_ref *ref) |
120 | { | 126 | { |
diff --git a/include/linux/phy.h b/include/linux/phy.h index 5a9b1753fdc5..f0b5870a6d40 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h | |||
@@ -984,6 +984,10 @@ static inline int genphy_no_soft_reset(struct phy_device *phydev) | |||
984 | { | 984 | { |
985 | return 0; | 985 | return 0; |
986 | } | 986 | } |
987 | int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, | ||
988 | u16 regnum); | ||
989 | int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum, | ||
990 | u16 regnum, u16 val); | ||
987 | 991 | ||
988 | /* Clause 45 PHY */ | 992 | /* Clause 45 PHY */ |
989 | int genphy_c45_restart_aneg(struct phy_device *phydev); | 993 | int genphy_c45_restart_aneg(struct phy_device *phydev); |
@@ -1020,7 +1024,6 @@ int phy_driver_register(struct phy_driver *new_driver, struct module *owner); | |||
1020 | int phy_drivers_register(struct phy_driver *new_driver, int n, | 1024 | int phy_drivers_register(struct phy_driver *new_driver, int n, |
1021 | struct module *owner); | 1025 | struct module *owner); |
1022 | void phy_state_machine(struct work_struct *work); | 1026 | void phy_state_machine(struct work_struct *work); |
1023 | void phy_change(struct phy_device *phydev); | ||
1024 | void phy_change_work(struct work_struct *work); | 1027 | void phy_change_work(struct work_struct *work); |
1025 | void phy_mac_interrupt(struct phy_device *phydev); | 1028 | void phy_mac_interrupt(struct phy_device *phydev); |
1026 | void phy_start_machine(struct phy_device *phydev); | 1029 | void phy_start_machine(struct phy_device *phydev); |
diff --git a/include/linux/rhashtable.h b/include/linux/rhashtable.h index c9df2527e0cd..668a21f04b09 100644 --- a/include/linux/rhashtable.h +++ b/include/linux/rhashtable.h | |||
@@ -766,8 +766,10 @@ slow_path: | |||
766 | if (!key || | 766 | if (!key || |
767 | (params.obj_cmpfn ? | 767 | (params.obj_cmpfn ? |
768 | params.obj_cmpfn(&arg, rht_obj(ht, head)) : | 768 | params.obj_cmpfn(&arg, rht_obj(ht, head)) : |
769 | rhashtable_compare(&arg, rht_obj(ht, head)))) | 769 | rhashtable_compare(&arg, rht_obj(ht, head)))) { |
770 | pprev = &head->next; | ||
770 | continue; | 771 | continue; |
772 | } | ||
771 | 773 | ||
772 | data = rht_obj(ht, head); | 774 | data = rht_obj(ht, head); |
773 | 775 | ||
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index d8340e6e8814..47082f54ec1f 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -4040,6 +4040,12 @@ static inline bool skb_is_gso_v6(const struct sk_buff *skb) | |||
4040 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; | 4040 | return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6; |
4041 | } | 4041 | } |
4042 | 4042 | ||
4043 | /* Note: Should be called only if skb_is_gso(skb) is true */ | ||
4044 | static inline bool skb_is_gso_sctp(const struct sk_buff *skb) | ||
4045 | { | ||
4046 | return skb_shinfo(skb)->gso_type & SKB_GSO_SCTP; | ||
4047 | } | ||
4048 | |||
4043 | static inline void skb_gso_reset(struct sk_buff *skb) | 4049 | static inline void skb_gso_reset(struct sk_buff *skb) |
4044 | { | 4050 | { |
4045 | skb_shinfo(skb)->gso_size = 0; | 4051 | skb_shinfo(skb)->gso_size = 0; |
@@ -4047,6 +4053,22 @@ static inline void skb_gso_reset(struct sk_buff *skb) | |||
4047 | skb_shinfo(skb)->gso_type = 0; | 4053 | skb_shinfo(skb)->gso_type = 0; |
4048 | } | 4054 | } |
4049 | 4055 | ||
4056 | static inline void skb_increase_gso_size(struct skb_shared_info *shinfo, | ||
4057 | u16 increment) | ||
4058 | { | ||
4059 | if (WARN_ON_ONCE(shinfo->gso_size == GSO_BY_FRAGS)) | ||
4060 | return; | ||
4061 | shinfo->gso_size += increment; | ||
4062 | } | ||
4063 | |||
4064 | static inline void skb_decrease_gso_size(struct skb_shared_info *shinfo, | ||
4065 | u16 decrement) | ||
4066 | { | ||
4067 | if (WARN_ON_ONCE(shinfo->gso_size == GSO_BY_FRAGS)) | ||
4068 | return; | ||
4069 | shinfo->gso_size -= decrement; | ||
4070 | } | ||
4071 | |||
4050 | void __skb_warn_lro_forwarding(const struct sk_buff *skb); | 4072 | void __skb_warn_lro_forwarding(const struct sk_buff *skb); |
4051 | 4073 | ||
4052 | static inline bool skb_warn_if_lro(const struct sk_buff *skb) | 4074 | static inline bool skb_warn_if_lro(const struct sk_buff *skb) |
diff --git a/include/linux/tty.h b/include/linux/tty.h index 0a6c71e0ad01..47f8af22f216 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -364,6 +364,7 @@ struct tty_file_private { | |||
364 | #define TTY_PTY_LOCK 16 /* pty private */ | 364 | #define TTY_PTY_LOCK 16 /* pty private */ |
365 | #define TTY_NO_WRITE_SPLIT 17 /* Preserve write boundaries to driver */ | 365 | #define TTY_NO_WRITE_SPLIT 17 /* Preserve write boundaries to driver */ |
366 | #define TTY_HUPPED 18 /* Post driver->hangup() */ | 366 | #define TTY_HUPPED 18 /* Post driver->hangup() */ |
367 | #define TTY_HUPPING 19 /* Hangup in progress */ | ||
367 | #define TTY_LDISC_HALTED 22 /* Line discipline is halted */ | 368 | #define TTY_LDISC_HALTED 22 /* Line discipline is halted */ |
368 | 369 | ||
369 | /* Values for tty->flow_change */ | 370 | /* Values for tty->flow_change */ |
diff --git a/include/linux/u64_stats_sync.h b/include/linux/u64_stats_sync.h index 5bdbd9f49395..07ee0f84a46c 100644 --- a/include/linux/u64_stats_sync.h +++ b/include/linux/u64_stats_sync.h | |||
@@ -90,6 +90,28 @@ static inline void u64_stats_update_end(struct u64_stats_sync *syncp) | |||
90 | #endif | 90 | #endif |
91 | } | 91 | } |
92 | 92 | ||
93 | static inline unsigned long | ||
94 | u64_stats_update_begin_irqsave(struct u64_stats_sync *syncp) | ||
95 | { | ||
96 | unsigned long flags = 0; | ||
97 | |||
98 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | ||
99 | local_irq_save(flags); | ||
100 | write_seqcount_begin(&syncp->seq); | ||
101 | #endif | ||
102 | return flags; | ||
103 | } | ||
104 | |||
105 | static inline void | ||
106 | u64_stats_update_end_irqrestore(struct u64_stats_sync *syncp, | ||
107 | unsigned long flags) | ||
108 | { | ||
109 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | ||
110 | write_seqcount_end(&syncp->seq); | ||
111 | local_irq_restore(flags); | ||
112 | #endif | ||
113 | } | ||
114 | |||
93 | static inline void u64_stats_update_begin_raw(struct u64_stats_sync *syncp) | 115 | static inline void u64_stats_update_begin_raw(struct u64_stats_sync *syncp) |
94 | { | 116 | { |
95 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) | 117 | #if BITS_PER_LONG==32 && defined(CONFIG_SMP) |
diff --git a/include/linux/usb/quirks.h b/include/linux/usb/quirks.h index f1fcec2fd5f8..b7a99ce56bc9 100644 --- a/include/linux/usb/quirks.h +++ b/include/linux/usb/quirks.h | |||
@@ -63,4 +63,7 @@ | |||
63 | */ | 63 | */ |
64 | #define USB_QUIRK_DISCONNECT_SUSPEND BIT(12) | 64 | #define USB_QUIRK_DISCONNECT_SUSPEND BIT(12) |
65 | 65 | ||
66 | /* Device needs a pause after every control message. */ | ||
67 | #define USB_QUIRK_DELAY_CTRL_MSG BIT(13) | ||
68 | |||
66 | #endif /* __LINUX_USB_QUIRKS_H */ | 69 | #endif /* __LINUX_USB_QUIRKS_H */ |
diff --git a/include/linux/workqueue.h b/include/linux/workqueue.h index bc0cda180c8b..0c3301421c57 100644 --- a/include/linux/workqueue.h +++ b/include/linux/workqueue.h | |||
@@ -456,7 +456,6 @@ extern int schedule_on_each_cpu(work_func_t func); | |||
456 | int execute_in_process_context(work_func_t fn, struct execute_work *); | 456 | int execute_in_process_context(work_func_t fn, struct execute_work *); |
457 | 457 | ||
458 | extern bool flush_work(struct work_struct *work); | 458 | extern bool flush_work(struct work_struct *work); |
459 | extern bool cancel_work(struct work_struct *work); | ||
460 | extern bool cancel_work_sync(struct work_struct *work); | 459 | extern bool cancel_work_sync(struct work_struct *work); |
461 | 460 | ||
462 | extern bool flush_delayed_work(struct delayed_work *dwork); | 461 | extern bool flush_delayed_work(struct delayed_work *dwork); |