CC: [email protected]
CC: [email protected]
TO: Petr Machata <[email protected]>

tree:   https://github.com/jpirko/linux_mlxsw petrm_soft_counters
head:   a88cf58e4f95bb2bf8142e1c9e2c853e20d17298
commit: a88cf58e4f95bb2bf8142e1c9e2c853e20d17298 [11/11] wip
:::::: branch date: 24 hours ago
:::::: commit date: 24 hours ago
config: microblaze-randconfig-m031-20211210 
(https://download.01.org/0day-ci/archive/20211212/[email protected]/config)
compiler: microblaze-linux-gcc (GCC) 11.2.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]>

New smatch warnings:
net/core/dev.c:8555 netdev_offload_xstats_get_stats() error: we previously 
assumed 'stats' could be null (see line 8551)

Old smatch warnings:
arch/microblaze/include/asm/thread_info.h:91 current_thread_info() error: 
uninitialized symbol 'sp'.
net/core/dev.c:6922 napi_disable() error: uninitialized symbol 'new'.

vim +/stats +8555 net/core/dev.c

38ca0aa04554a9 Petr Machata 2021-12-09  8530  
453f3cd9e64f05 Petr Machata 2021-10-29  8531    struct 
netdev_notifier_offload_xstats_rd report_delta = {};
453f3cd9e64f05 Petr Machata 2021-10-29  8532    struct 
netdev_notifier_offload_xstats_info info = {
453f3cd9e64f05 Petr Machata 2021-10-29  8533            .info.dev = dev,
453f3cd9e64f05 Petr Machata 2021-10-29  8534            .info.extack = extack,
453f3cd9e64f05 Petr Machata 2021-10-29  8535            .cmd = 
NETDEV_OFFLOAD_XSTATS_CMD_REPORT_DELTA,
a88cf58e4f95bb Petr Machata 2021-12-10  8536            .type = type,
a88cf58e4f95bb Petr Machata 2021-12-10  8537            .report_delta = 
&report_delta,
453f3cd9e64f05 Petr Machata 2021-10-29  8538    };
38ca0aa04554a9 Petr Machata 2021-12-09  8539    struct rtnl_link_stats64 *stats;
453f3cd9e64f05 Petr Machata 2021-10-29  8540    int rc;
453f3cd9e64f05 Petr Machata 2021-10-29  8541  
38ca0aa04554a9 Petr Machata 2021-12-09  8542    stats = 
netdev_offload_xstats_get_ptr(dev, type);
a88cf58e4f95bb Petr Machata 2021-12-10  8543    WARN_ON(!stats);
d35d00a6d28ff7 Petr Machata 2021-11-12  8544  
453f3cd9e64f05 Petr Machata 2021-10-29  8545    rc = 
call_netdevice_notifiers_info(NETDEV_OFFLOAD_XSTATS_CMD,
453f3cd9e64f05 Petr Machata 2021-10-29  8546                                    
   &info.info);
453f3cd9e64f05 Petr Machata 2021-10-29  8547  
453f3cd9e64f05 Petr Machata 2021-10-29  8548    /* Cache whatever we got, even 
if there was an error, otherwise the
453f3cd9e64f05 Petr Machata 2021-10-29  8549     * successful stats retrievals 
would get lost.
453f3cd9e64f05 Petr Machata 2021-10-29  8550     */
0839ffb5b56fb6 Petr Machata 2021-11-26 @8551    if (stats)
38ca0aa04554a9 Petr Machata 2021-12-09  8552            
netdev_link_stats64_add(stats, &report_delta.stats);
38ca0aa04554a9 Petr Machata 2021-12-09  8553  
38ca0aa04554a9 Petr Machata 2021-12-09  8554    if (p_stats)
38ca0aa04554a9 Petr Machata 2021-12-09 @8555            *p_stats = *stats;
38ca0aa04554a9 Petr Machata 2021-12-09  8556    *p_used = report_delta.used;
453f3cd9e64f05 Petr Machata 2021-10-29  8557  
453f3cd9e64f05 Petr Machata 2021-10-29  8558    return notifier_to_errno(rc);
a8a72b09197b26 Petr Machata 2021-10-22  8559  }
a88cf58e4f95bb Petr Machata 2021-12-10  8560  

:::::: The code at line 8555 was first introduced by commit
:::::: 38ca0aa04554a994a5ab769f0c07b37484b5f4c9 wip

:::::: TO: Petr Machata <[email protected]>
:::::: CC: Petr Machata <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to