lkml.org 
[lkml]   [2022]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [tip:sched/core 27/28] kernel/sched/topology.c:2284:39: sparse: sparse: incorrect type in assignment (different address spaces)
From
Hello Mel,

On 2/17/2022 6:28 AM, kernel test robot wrote:
> [..snip..]
> 2282 /* Set span based on the first NUMA domain. */
> 2283 top = sd;
>> 2284 top_p = top->parent;
> 2285 while (top_p && !(top_p->flags & SD_NUMA)) {
>> 2286 top = top->parent;
> 2287 top_p = top->parent;
> 2288 }
> 2289 imb_span = top_p ? top_p->span_weight : sd->span_weight;

I was looking into this sparse warning when I noticed
that the variable "top" is actually redundant - "sd"
and "top_p" can suffice for the computation "top" is
involved in. I've created a patch to fix this warning
and remove the redundant variable top while at it.
https://lore.kernel.org/lkml/20220218162743.1134-1-kprateek.nayak@amd.com/
--
Thanks and Regards,
Prateek


\
 
 \ /
  Last update: 2022-02-18 17:43    [W:1.215 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site