[folded-merged] vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix
has been removed from the -mm tree.  Its filename was
     vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix.patch

This patch was dropped because it was folded into vmalloc-add-test-driver-to-analyse-vmalloc-allocator.patch

------------------------------------------------------
From: Uladzislau Rezki <urezki@xxxxxxxxx>
Subject: vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix

I see that the build fails on 32 bit systems. For example i have got two
messages from the robot about ARCH=m68k and ARCH=arm.

Link: http://lkml.kernel.org/r/20190106214839.ffvjvmrn52uqog7k@pc636

Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/test_vmalloc.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

--- a/lib/test_vmalloc.c~vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix
+++ a/lib/test_vmalloc.c
@@ -348,7 +348,7 @@ static struct test_case_desc test_case_a
 struct test_case_data {
 	int test_failed;
 	int test_passed;
-	s64 time;
+	u64 time;
 };
 
 /* Split it to get rid of: WARNING: line over 80 characters */
@@ -387,6 +387,7 @@ static int test_func(void *private)
 	int random_array[ARRAY_SIZE(test_case_array)];
 	int index, i, j, ret;
 	ktime_t kt;
+	u64 delta;
 
 	cpumask_set_cpu(t->cpu, &newmask);
 	set_cpus_allowed_ptr(current, &newmask);
@@ -424,8 +425,10 @@ static int test_func(void *private)
 		/*
 		 * Take an average time that test took.
 		 */
-		per_cpu_test_data[t->cpu][index].time =
-			ktime_us_delta(ktime_get(), kt) / test_repeat_count;
+		delta = (u64) ktime_us_delta(ktime_get(), kt);
+		do_div(delta, (u32) test_repeat_count);
+
+		per_cpu_test_data[t->cpu][index].time = delta;
 	}
 	t->stop = get_cycles();
 
_

Patches currently in -mm which might be from urezki@xxxxxxxxx are

vmalloc-export-__vmalloc_node_range-for-config_test_vmalloc_module.patch
vmalloc-add-test-driver-to-analyse-vmalloc-allocator.patch
vmalloc-add-test-driver-to-analyse-vmalloc-allocator-fix-2.patch
selftests-vm-add-script-helper-for-config_test_vmalloc_module.patch
mm-vmalloc-fix-kernel-bug-at-mm-vmallocc-512.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux