[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e15fd1ac-d3f2-d6e7-19db-be7d3f80d67c@amd.com>
Date: Fri, 18 Feb 2022 22:12:36 +0530
From: "Nayak, KPrateek (K Prateek)" <kprateek.nayak@....com>
To: Mel Gorman <mgorman@...e.de>
Cc: kbuild-all@...ts.01.org, kernel test robot <lkp@...el.com>,
linux-kernel@...r.kernel.org, x86@...nel.org,
Peter Zijlstra <peterz@...radead.org>,
"Gautham R. Shenoy" <gautham.shenoy@....com>
Subject: Re: [tip:sched/core 27/28] kernel/sched/topology.c:2284:39: sparse:
sparse: incorrect type in assignment (different address spaces)
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
Powered by blists - more mailing lists