Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
All of the conflicts were cases of overlapping changes. In net/core/devlink.c, we have to make care that the resouce size_params have become a struct member rather than a pointer to such an object. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -1491,12 +1491,12 @@ void debug_dma_alloc_coherent(struct device *dev, size_t size,
|
||||
if (unlikely(virt == NULL))
|
||||
return;
|
||||
|
||||
entry = dma_entry_alloc();
|
||||
if (!entry)
|
||||
/* handle vmalloc and linear addresses */
|
||||
if (!is_vmalloc_addr(virt) && !virt_addr_valid(virt))
|
||||
return;
|
||||
|
||||
/* handle vmalloc and linear addresses */
|
||||
if (!is_vmalloc_addr(virt) && !virt_to_page(virt))
|
||||
entry = dma_entry_alloc();
|
||||
if (!entry)
|
||||
return;
|
||||
|
||||
entry->type = dma_debug_coherent;
|
||||
@@ -1528,7 +1528,7 @@ void debug_dma_free_coherent(struct device *dev, size_t size,
|
||||
};
|
||||
|
||||
/* handle vmalloc and linear addresses */
|
||||
if (!is_vmalloc_addr(virt) && !virt_to_page(virt))
|
||||
if (!is_vmalloc_addr(virt) && !virt_addr_valid(virt))
|
||||
return;
|
||||
|
||||
if (is_vmalloc_addr(virt))
|
||||
|
13
lib/idr.c
13
lib/idr.c
@@ -36,8 +36,8 @@ int idr_alloc_u32(struct idr *idr, void *ptr, u32 *nextid,
|
||||
{
|
||||
struct radix_tree_iter iter;
|
||||
void __rcu **slot;
|
||||
int base = idr->idr_base;
|
||||
int id = *nextid;
|
||||
unsigned int base = idr->idr_base;
|
||||
unsigned int id = *nextid;
|
||||
|
||||
if (WARN_ON_ONCE(radix_tree_is_internal_node(ptr)))
|
||||
return -EINVAL;
|
||||
@@ -204,10 +204,11 @@ int idr_for_each(const struct idr *idr,
|
||||
|
||||
radix_tree_for_each_slot(slot, &idr->idr_rt, &iter, 0) {
|
||||
int ret;
|
||||
unsigned long id = iter.index + base;
|
||||
|
||||
if (WARN_ON_ONCE(iter.index > INT_MAX))
|
||||
if (WARN_ON_ONCE(id > INT_MAX))
|
||||
break;
|
||||
ret = fn(iter.index + base, rcu_dereference_raw(*slot), data);
|
||||
ret = fn(id, rcu_dereference_raw(*slot), data);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
@@ -230,8 +231,8 @@ void *idr_get_next(struct idr *idr, int *nextid)
|
||||
{
|
||||
struct radix_tree_iter iter;
|
||||
void __rcu **slot;
|
||||
int base = idr->idr_base;
|
||||
int id = *nextid;
|
||||
unsigned long base = idr->idr_base;
|
||||
unsigned long id = *nextid;
|
||||
|
||||
id = (id < base) ? 0 : id - base;
|
||||
slot = radix_tree_iter_find(&idr->idr_rt, &iter, id);
|
||||
|
@@ -24,10 +24,11 @@
|
||||
#include <linux/if_vlan.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/highmem.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
/* General test specific settings */
|
||||
#define MAX_SUBTESTS 3
|
||||
#define MAX_TESTRUNS 10000
|
||||
#define MAX_TESTRUNS 1000
|
||||
#define MAX_DATA 128
|
||||
#define MAX_INSNS 512
|
||||
#define MAX_K 0xffffFFFF
|
||||
@@ -6582,6 +6583,7 @@ static __init int test_bpf(void)
|
||||
struct bpf_prog *fp;
|
||||
int err;
|
||||
|
||||
cond_resched();
|
||||
if (exclude_test(i))
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user