[mmotm:master 432/471] kernel/sched/rt.c:1451:39: sparse: incorrect type in initializer (different address spaces)

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

 



tree:   git://git.cmpxchg.org/linux-mmotm.git master
head:   f6bf2766c2091cbf8ffcc2c5009875dbdb678282
commit: 4a46dca81e38ce94eb5c2ba6f35d6e4bf4c86664 [432/471] scheduler: replace __get_cpu_var with this_cpu_ptr
reproduce: make C=1 CF=-D__CHECK_ENDIAN__


sparse warnings: (new ones prefixed by >>)

>> kernel/sched/rt.c:1451:39: sparse: incorrect type in initializer (different address spaces)
   kernel/sched/rt.c:1451:39:    expected void const [noderef] <asn:3>*__vpp_verify
   kernel/sched/rt.c:1451:39:    got struct cpumask *<noident>
   kernel/sched/rt.c:1484:9: sparse: incompatible types in comparison expression (different address spaces)

vim +1451 kernel/sched/rt.c

  1435		if (!has_pushable_tasks(rq))
  1436			return NULL;
  1437	
  1438		plist_for_each_entry(p, head, pushable_tasks) {
  1439			if (pick_rt_task(rq, p, cpu))
  1440				return p;
  1441		}
  1442	
  1443		return NULL;
  1444	}
  1445	
  1446	static DEFINE_PER_CPU(cpumask_var_t, local_cpu_mask);
  1447	
  1448	static int find_lowest_rq(struct task_struct *task)
  1449	{
  1450		struct sched_domain *sd;
> 1451		struct cpumask *lowest_mask = this_cpu_ptr(local_cpu_mask);
  1452		int this_cpu = smp_processor_id();
  1453		int cpu      = task_cpu(task);
  1454	
  1455		/* Make sure the mask is initialized first */
  1456		if (unlikely(!lowest_mask))
  1457			return -1;
  1458	
  1459		if (task->nr_cpus_allowed == 1)

---
0-DAY kernel build testing backend              Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild                 Intel Corporation

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]