CC: [email protected]
CC: [email protected]
TO: Bibby Hsieh <[email protected]>
CC: Wolfram Sang <[email protected]>
CC: Marek Szyprowski <[email protected]>
CC: "Hsin-Yi Wang" <[email protected]>
CC: Matthias Brugger <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   d6d09a6942050f21b065a134169002b4d6b701ef
commit: 5a7b95fb993ec399c8a685552aa6a8fc995c40bd i2c: core: support bus 
regulator controlling in adapter
date:   3 months ago
:::::: branch date: 17 hours ago
:::::: commit date: 3 months ago
config: nds32-randconfig-m031-20210818 (attached as .config)
compiler: nds32le-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]>

smatch warnings:
drivers/gpu/drm/drm_dp_mst_topology.c:1571 __topology_ref_save() warn: 
statement has no effect 3

vim +1571 drivers/gpu/drm/drm_dp_mst_topology.c

12a280c7286857 Lyude Paul  2019-06-20  1564  
12a280c7286857 Lyude Paul  2019-06-20  1565  static noinline void
12a280c7286857 Lyude Paul  2019-06-20  1566  __topology_ref_save(struct 
drm_dp_mst_topology_mgr *mgr,
12a280c7286857 Lyude Paul  2019-06-20  1567                 struct 
drm_dp_mst_topology_ref_history *history,
12a280c7286857 Lyude Paul  2019-06-20  1568                 enum 
drm_dp_mst_topology_ref_type type)
ebcc0e6b509108 Lyude Paul  2019-01-10  1569  {
12a280c7286857 Lyude Paul  2019-06-20  1570     struct 
drm_dp_mst_topology_ref_entry *entry = NULL;
12a280c7286857 Lyude Paul  2019-06-20 @1571     depot_stack_handle_t backtrace;
12a280c7286857 Lyude Paul  2019-06-20  1572     ulong 
stack_entries[STACK_DEPTH];
12a280c7286857 Lyude Paul  2019-06-20  1573     uint n;
12a280c7286857 Lyude Paul  2019-06-20  1574     int i;
ebcc0e6b509108 Lyude Paul  2019-01-10  1575  
12a280c7286857 Lyude Paul  2019-06-20  1576     n = 
stack_trace_save(stack_entries, ARRAY_SIZE(stack_entries), 1);
12a280c7286857 Lyude Paul  2019-06-20  1577     backtrace = 
stack_depot_save(stack_entries, n, GFP_KERNEL);
12a280c7286857 Lyude Paul  2019-06-20  1578     if (!backtrace)
12a280c7286857 Lyude Paul  2019-06-20  1579             return;
12a280c7286857 Lyude Paul  2019-06-20  1580  
12a280c7286857 Lyude Paul  2019-06-20  1581     /* Try to find an existing 
entry for this backtrace */
12a280c7286857 Lyude Paul  2019-06-20  1582     for (i = 0; i < history->len; 
i++) {
12a280c7286857 Lyude Paul  2019-06-20  1583             if 
(history->entries[i].backtrace == backtrace) {
12a280c7286857 Lyude Paul  2019-06-20  1584                     entry = 
&history->entries[i];
12a280c7286857 Lyude Paul  2019-06-20  1585                     break;
12a280c7286857 Lyude Paul  2019-06-20  1586             }
ad7f8a1f9ced7f Dave Airlie 2014-06-05  1587     }
ad7f8a1f9ced7f Dave Airlie 2014-06-05  1588  
12a280c7286857 Lyude Paul  2019-06-20  1589     /* Otherwise add one */
12a280c7286857 Lyude Paul  2019-06-20  1590     if (!entry) {
12a280c7286857 Lyude Paul  2019-06-20  1591             struct 
drm_dp_mst_topology_ref_entry *new;
12a280c7286857 Lyude Paul  2019-06-20  1592             int new_len = 
history->len + 1;
12a280c7286857 Lyude Paul  2019-06-20  1593  
12a280c7286857 Lyude Paul  2019-06-20  1594             new = 
krealloc(history->entries, sizeof(*new) * new_len,
12a280c7286857 Lyude Paul  2019-06-20  1595                            
GFP_KERNEL);
12a280c7286857 Lyude Paul  2019-06-20  1596             if (!new)
12a280c7286857 Lyude Paul  2019-06-20  1597                     return;
12a280c7286857 Lyude Paul  2019-06-20  1598  
12a280c7286857 Lyude Paul  2019-06-20  1599             entry = 
&new[history->len];
12a280c7286857 Lyude Paul  2019-06-20  1600             history->len = new_len;
12a280c7286857 Lyude Paul  2019-06-20  1601             history->entries = new;
12a280c7286857 Lyude Paul  2019-06-20  1602  
12a280c7286857 Lyude Paul  2019-06-20  1603             entry->backtrace = 
backtrace;
12a280c7286857 Lyude Paul  2019-06-20  1604             entry->type = type;
12a280c7286857 Lyude Paul  2019-06-20  1605             entry->count = 0;
ad7f8a1f9ced7f Dave Airlie 2014-06-05  1606     }
12a280c7286857 Lyude Paul  2019-06-20  1607     entry->count++;
12a280c7286857 Lyude Paul  2019-06-20  1608     entry->ts_nsec = ktime_get_ns();
ad7f8a1f9ced7f Dave Airlie 2014-06-05  1609  }
ad7f8a1f9ced7f Dave Airlie 2014-06-05  1610  

:::::: The code at line 1571 was first introduced by commit
:::::: 12a280c7286857119cf0d88c487f695e3a1c0912 drm/dp_mst: Add topology ref 
history tracking for debugging

:::::: TO: Lyude Paul <[email protected]>
:::::: CC: Lyude Paul <[email protected]>

---
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