[PATCH 14/17] rt-tests: rt-numa: Fix comparison of different signedness

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

 



Fix comparison of integer expressions of different signedness

Signed-off-by: John Kacur <jkacur@xxxxxxxxxx>
---
 src/lib/rt-numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/rt-numa.c b/src/lib/rt-numa.c
index 1b09cff8d948..548365f50cc4 100644
--- a/src/lib/rt-numa.c
+++ b/src/lib/rt-numa.c
@@ -52,7 +52,7 @@ int get_available_cpus(struct bitmask *cpumask)
 
 int cpu_for_thread_sp(int thread_num, int max_cpus, struct bitmask *cpumask)
 {
-	unsigned int m, cpu, i, num_cpus;
+	int m, cpu, i, num_cpus;
 
 	num_cpus = numa_bitmask_weight(cpumask);
 
-- 
2.40.1





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux