CC: kbuild-...@lists.01.org CC: linux-ker...@vger.kernel.org TO: Vladimir Oltean <vladimir.olt...@nxp.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8ab774587903771821b59471cc723bba6d893942 commit: 6dfd23d35e75098ac61a605f6c591ce42e95cdcb net: dsa: sja1105: delete vlan delta save/restore logic date: 4 months ago :::::: branch date: 16 hours ago :::::: commit date: 4 months ago config: i386-randconfig-m021-20211022 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> New smatch warnings: drivers/net/dsa/sja1105/sja1105_main.c:2146 sja1105_vlan_add() warn: should '(((1))) << port' be a 64 bit type? Old smatch warnings: drivers/net/dsa/sja1105/sja1105_main.c:49 sja1105_port_allow_traffic() warn: should '(((1))) << to' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:57 sja1105_can_forward() warn: should '((((1))) << to)' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:173 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:185 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:194 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:203 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:209 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:216 sja1105_init_mii_settings() warn: is 'table->entries' large enough for 'struct sja1105_xmii_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:443 sja1105_init_l2_forwarding() warn: should '(((1))) << upstream' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:444 sja1105_init_l2_forwarding() warn: should '(((1))) << upstream' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:529 sja1105_init_l2_forwarding_params() warn: is 'table->entries' large enough for 'struct sja1105_l2_forwarding_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:702 sja1105_init_general_params() warn: is 'table->entries' large enough for 'struct sja1105_general_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:730 sja1105_init_avb_params() warn: is 'table->entries' large enough for 'struct sja1105_avb_params_entry'? 0 drivers/net/dsa/sja1105/sja1105_main.c:1197 sja1105_find_static_fdb_entry() warn: should '((((1))) << port)' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1315 sja1105et_fdb_add() warn: should '((((1))) << port)' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1317 sja1105et_fdb_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1325 sja1105et_fdb_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1411 sja1105pqrs_fdb_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1419 sja1105pqrs_fdb_add() warn: should '((((1))) << port)' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1424 sja1105pqrs_fdb_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1474 sja1105pqrs_fdb_del() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1558 sja1105_fdb_dump() warn: should '((((1))) << port)' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1610 sja1105_manage_flood_domains() warn: should '(((1))) << to' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:1612 sja1105_manage_flood_domains() warn: should '(((1))) << to' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:2147 sja1105_vlan_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:2151 sja1105_vlan_add() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:2417 sja1105_mgmt_xmit() warn: should '(((1))) << port' be a 64 bit type? drivers/net/dsa/sja1105/sja1105_main.c:2735 sja1105_port_mcast_flood() warn: should '(((1))) << to' be a 64 bit type? vim +2146 drivers/net/dsa/sja1105/sja1105_main.c 6666cebc5e306f Vladimir Oltean 2019-05-02 2123 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2124 static int sja1105_vlan_add(struct sja1105_private *priv, int port, u16 vid, 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2125 u16 flags) 6666cebc5e306f Vladimir Oltean 2019-05-02 2126 { 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2127 struct sja1105_vlan_lookup_entry *vlan; 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2128 struct sja1105_table *table; 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2129 int match, rc; ec5ae61076d07b Vladimir Oltean 2020-05-12 2130 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2131 table = &priv->static_config.tables[BLK_IDX_VLAN_LOOKUP]; ec5ae61076d07b Vladimir Oltean 2020-05-12 2132 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2133 match = sja1105_is_vlan_configured(priv, vid); 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2134 if (match < 0) { 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2135 rc = sja1105_table_resize(table, table->entry_count + 1); 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2136 if (rc) 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2137 return rc; 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2138 match = table->entry_count - 1; b38e659de966a1 Vladimir Oltean 2021-05-24 2139 } b38e659de966a1 Vladimir Oltean 2021-05-24 2140 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2141 /* Assign pointer after the resize (it's new memory) */ 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2142 vlan = table->entries; ec5ae61076d07b Vladimir Oltean 2020-05-12 2143 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2144 vlan[match].type_entry = SJA1110_VLAN_D_TAG; 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2145 vlan[match].vlanid = vid; 6dfd23d35e7509 Vladimir Oltean 2021-07-26 @2146 vlan[match].vlan_bc |= BIT(port); 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2147 vlan[match].vmemb_port |= BIT(port); 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2148 if (flags & BRIDGE_VLAN_INFO_UNTAGGED) 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2149 vlan[match].tag_port &= ~BIT(port); 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2150 else 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2151 vlan[match].tag_port |= BIT(port); ec5ae61076d07b Vladimir Oltean 2020-05-12 2152 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2153 return sja1105_dynamic_config_write(priv, BLK_IDX_VLAN_LOOKUP, vid, 6dfd23d35e7509 Vladimir Oltean 2021-07-26 2154 &vlan[match], true); 5899ee367ab3fe Vladimir Oltean 2020-09-10 2155 } 5899ee367ab3fe Vladimir Oltean 2020-09-10 2156 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip
_______________________________________________ kbuild mailing list -- kbuild@lists.01.org To unsubscribe send an email to kbuild-le...@lists.01.org