All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7513/7905] drivers/net/dsa/sja1105/sja1105_vl.c:447:21-22: ERROR: invalid reference to the index variable of the iterator on line 436
@ 2020-05-09 23:08 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2020-05-09 23:08 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 4356 bytes --]

CC: kbuild-all(a)lists.01.org
TO: Vladimir Oltean <vladimir.oltean@nxp.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   30e2206e11ce27ae910cc0dab21472429e400a87
commit: 834f8933d5ddd732274cb6050252bd1c7cc7349d [7513/7905] net: dsa: sja1105: implement tc-gate using time-triggered virtual links
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


coccinelle warnings: (new ones prefixed by >>)

>> drivers/net/dsa/sja1105/sja1105_vl.c:447:21-22: ERROR: invalid reference to the index variable of the iterator on line 436

# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=834f8933d5ddd732274cb6050252bd1c7cc7349d
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git remote update linux-next
git checkout 834f8933d5ddd732274cb6050252bd1c7cc7349d
vim +447 drivers/net/dsa/sja1105/sja1105_vl.c

834f8933d5ddd7 Vladimir Oltean 2020-05-05  413  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  414  /* Insert into the global gate list, sorted by gate action time. */
834f8933d5ddd7 Vladimir Oltean 2020-05-05  415  static int sja1105_insert_gate_entry(struct sja1105_gating_config *gating_cfg,
834f8933d5ddd7 Vladimir Oltean 2020-05-05  416  				     struct sja1105_rule *rule,
834f8933d5ddd7 Vladimir Oltean 2020-05-05  417  				     u8 gate_state, s64 entry_time,
834f8933d5ddd7 Vladimir Oltean 2020-05-05  418  				     struct netlink_ext_ack *extack)
834f8933d5ddd7 Vladimir Oltean 2020-05-05  419  {
834f8933d5ddd7 Vladimir Oltean 2020-05-05  420  	struct sja1105_gate_entry *e;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  421  	int rc;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  422  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  423  	e = kzalloc(sizeof(*e), GFP_KERNEL);
834f8933d5ddd7 Vladimir Oltean 2020-05-05  424  	if (!e)
834f8933d5ddd7 Vladimir Oltean 2020-05-05  425  		return -ENOMEM;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  426  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  427  	e->rule = rule;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  428  	e->gate_state = gate_state;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  429  	e->interval = entry_time;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  430  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  431  	if (list_empty(&gating_cfg->entries)) {
834f8933d5ddd7 Vladimir Oltean 2020-05-05  432  		list_add(&e->list, &gating_cfg->entries);
834f8933d5ddd7 Vladimir Oltean 2020-05-05  433  	} else {
834f8933d5ddd7 Vladimir Oltean 2020-05-05  434  		struct sja1105_gate_entry *p;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  435  
834f8933d5ddd7 Vladimir Oltean 2020-05-05 @436  		list_for_each_entry(p, &gating_cfg->entries, list) {
834f8933d5ddd7 Vladimir Oltean 2020-05-05  437  			if (p->interval == e->interval) {
834f8933d5ddd7 Vladimir Oltean 2020-05-05  438  				NL_SET_ERR_MSG_MOD(extack,
834f8933d5ddd7 Vladimir Oltean 2020-05-05  439  						   "Gate conflict");
834f8933d5ddd7 Vladimir Oltean 2020-05-05  440  				rc = -EBUSY;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  441  				goto err;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  442  			}
834f8933d5ddd7 Vladimir Oltean 2020-05-05  443  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  444  			if (e->interval < p->interval)
834f8933d5ddd7 Vladimir Oltean 2020-05-05  445  				break;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  446  		}
834f8933d5ddd7 Vladimir Oltean 2020-05-05 @447  		list_add(&e->list, p->list.prev);
834f8933d5ddd7 Vladimir Oltean 2020-05-05  448  	}
834f8933d5ddd7 Vladimir Oltean 2020-05-05  449  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  450  	gating_cfg->num_entries++;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  451  
834f8933d5ddd7 Vladimir Oltean 2020-05-05  452  	return 0;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  453  err:
834f8933d5ddd7 Vladimir Oltean 2020-05-05  454  	kfree(e);
834f8933d5ddd7 Vladimir Oltean 2020-05-05  455  	return rc;
834f8933d5ddd7 Vladimir Oltean 2020-05-05  456  }
834f8933d5ddd7 Vladimir Oltean 2020-05-05  457  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-09 23:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-09 23:08 [linux-next:master 7513/7905] drivers/net/dsa/sja1105/sja1105_vl.c:447:21-22: ERROR: invalid reference to the index variable of the iterator on line 436 kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.