CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Valentin Schneider <[email protected]>

Hi Valentin,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on tip/sched/core]
[also build test WARNING on tip/master linux/master linus/master v5.11-rc6 
next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    
https://github.com/0day-ci/linux/commits/Valentin-Schneider/sched-topology-Get-rid-of-overlapping-groups/20210204-000142
base:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
075a28439d0c8eb6d3c799e1eed24bb9bc7750cd
:::::: branch date: 3 hours ago
:::::: commit date: 3 hours ago
config: s390-randconfig-m031-20210204 (attached as .config)
compiler: s390-linux-gcc (GCC) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
kernel/sched/topology.c:1012 find_node_domain() error: uninitialized symbol 
'parent'.

vim +/parent +1012 kernel/sched/topology.c

8c0334697dc37e Lauro Ramos Venancio 2017-04-13   984  
02d81c8f49452e Valentin Schneider   2021-02-03   985  static struct 
sched_domain *find_node_domain(struct sched_domain *sd)
02d81c8f49452e Valentin Schneider   2021-02-03   986  {
02d81c8f49452e Valentin Schneider   2021-02-03   987    struct sched_domain 
*parent;
02d81c8f49452e Valentin Schneider   2021-02-03   988  
02d81c8f49452e Valentin Schneider   2021-02-03   989    BUG_ON(!(sd->flags & 
SD_NUMA));
02d81c8f49452e Valentin Schneider   2021-02-03   990  
02d81c8f49452e Valentin Schneider   2021-02-03   991    /* Get to the level 
above NODE */
02d81c8f49452e Valentin Schneider   2021-02-03   992    while (sd && sd->child) 
{
02d81c8f49452e Valentin Schneider   2021-02-03   993            parent = sd;
02d81c8f49452e Valentin Schneider   2021-02-03   994            sd = sd->child;
02d81c8f49452e Valentin Schneider   2021-02-03   995  
02d81c8f49452e Valentin Schneider   2021-02-03   996            if (!(sd->flags 
& SD_NUMA))
02d81c8f49452e Valentin Schneider   2021-02-03   997                    break;
02d81c8f49452e Valentin Schneider   2021-02-03   998    }
02d81c8f49452e Valentin Schneider   2021-02-03   999    /*
02d81c8f49452e Valentin Schneider   2021-02-03  1000     * We're going to 
create cross topology level sched_group_capacity
02d81c8f49452e Valentin Schneider   2021-02-03  1001     * references. This can 
only work if the domains resulting from said
02d81c8f49452e Valentin Schneider   2021-02-03  1002     * levels won't be 
degenerated, as we need said sgc to be periodically
02d81c8f49452e Valentin Schneider   2021-02-03  1003     * updated: it needs to 
be attached to the local group of a domain
02d81c8f49452e Valentin Schneider   2021-02-03  1004     * that didn't get 
degenerated.
02d81c8f49452e Valentin Schneider   2021-02-03  1005     *
02d81c8f49452e Valentin Schneider   2021-02-03  1006     * Of course, groups 
aren't available yet, so we can't call the usual
02d81c8f49452e Valentin Schneider   2021-02-03  1007     * sd_degenerate(). 
Checking domain spans is the closest we get.
02d81c8f49452e Valentin Schneider   2021-02-03  1008     * Start from NODE's 
parent, and keep going up until we get a domain
02d81c8f49452e Valentin Schneider   2021-02-03  1009     * we're sure won't be 
degenerated.
02d81c8f49452e Valentin Schneider   2021-02-03  1010     */
02d81c8f49452e Valentin Schneider   2021-02-03  1011    while (sd->parent &&
02d81c8f49452e Valentin Schneider   2021-02-03 @1012           
cpumask_equal(sched_domain_span(sd), sched_domain_span(parent))) {
02d81c8f49452e Valentin Schneider   2021-02-03  1013            sd = parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1014            parent = 
sd->parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1015    }
02d81c8f49452e Valentin Schneider   2021-02-03  1016  
02d81c8f49452e Valentin Schneider   2021-02-03  1017    return parent;
02d81c8f49452e Valentin Schneider   2021-02-03  1018  }
02d81c8f49452e Valentin Schneider   2021-02-03  1019  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to