summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-05-02 22:14:21 -0400
committerDavid S. Miller <davem@davemloft.net>2019-05-02 22:14:21 -0400
commitff24e4980a68d83090a02fda081741a410fe8eef (patch)
tree4d874dfcaf2bb8c3abc2446af9447a983402c0ae /lib
parent26f146ed971c0e4a264ce525d7a66a71ef73690d (diff)
parentea9866793d1e925b4d320eaea409263b2a568f38 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Three trivial overlapping conflicts. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Kconfig.debug1
-rw-r--r--lib/test_vmalloc.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7117ac61174e..8ed7d276fe7d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1937,6 +1937,7 @@ config TEST_KMOD
1937 depends on m 1937 depends on m
1938 depends on BLOCK && (64BIT || LBDAF) # for XFS, BTRFS 1938 depends on BLOCK && (64BIT || LBDAF) # for XFS, BTRFS
1939 depends on NETDEVICES && NET_CORE && INET # for TUN 1939 depends on NETDEVICES && NET_CORE && INET # for TUN
1940 depends on BLOCK
1940 select TEST_LKM 1941 select TEST_LKM
1941 select XFS_FS 1942 select XFS_FS
1942 select TUN 1943 select TUN
diff --git a/lib/test_vmalloc.c b/lib/test_vmalloc.c
index 83cdcaa82bf6..f832b095afba 100644
--- a/lib/test_vmalloc.c
+++ b/lib/test_vmalloc.c
@@ -383,14 +383,14 @@ static void shuffle_array(int *arr, int n)
383static int test_func(void *private) 383static int test_func(void *private)
384{ 384{
385 struct test_driver *t = private; 385 struct test_driver *t = private;
386 cpumask_t newmask = CPU_MASK_NONE;
387 int random_array[ARRAY_SIZE(test_case_array)]; 386 int random_array[ARRAY_SIZE(test_case_array)];
388 int index, i, j, ret; 387 int index, i, j, ret;
389 ktime_t kt; 388 ktime_t kt;
390 u64 delta; 389 u64 delta;
391 390
392 cpumask_set_cpu(t->cpu, &newmask); 391 ret = set_cpus_allowed_ptr(current, cpumask_of(t->cpu));
393 set_cpus_allowed_ptr(current, &newmask); 392 if (ret < 0)
393 pr_err("Failed to set affinity to %d CPU\n", t->cpu);
394 394
395 for (i = 0; i < ARRAY_SIZE(test_case_array); i++) 395 for (i = 0; i < ARRAY_SIZE(test_case_array); i++)
396 random_array[i] = i; 396 random_array[i] = i;