Message ID | 20200904230924.9971-1-grygorii.strashko@ti.com |
---|---|
Headers | show |
Series | net: ethernet: ti: ale: add static configuration | expand |
On Sat, 5 Sep 2020 02:09:23 +0300 Grygorii Strashko wrote: > The ALE VLAN entries are too much differ between different TI CPSW ALE > versions. So, handling them using flags, defines and get/set functions > became over-complicated. > > This patch introduces tables to describe the ALE VLAN entries fields, which > are different between TI CPSW ALE versions, and new get/set access > functions. It also allows to detect incorrect access to not available ALL > entry fields. When building with W=1 C=1: drivers/net/ethernet/ti/cpsw_ale.c:179:28: warning: symbol 'vlan_entry_cpsw' was not declared. Should it be static? drivers/net/ethernet/ti/cpsw_ale.c:187:28: warning: symbol 'vlan_entry_nu' was not declared. Should it be static? drivers/net/ethernet/ti/cpsw_ale.c:63: warning: Function parameter or member 'num_bits' not described in 'ale_entry_fld'
On Sat, 5 Sep 2020 02:09:24 +0300 Grygorii Strashko wrote: > The TI J721E (CPSW9g) ALE version is similar, in general, to Sitara AM3/4/5 > CPSW ALE, but has more extended functions and different ALE VLAN entry > format. > > This patch adds support for for multi port TI J721E (CPSW9g) ALE variant. and: drivers/net/ethernet/ti/cpsw_ale.c:195:28: warning: symbol 'vlan_entry_k3_cpswxg' was not declared. Should it be static?
Hi Jakub, On 05/09/2020 03:10, Jakub Kicinski wrote: > On Sat, 5 Sep 2020 02:09:24 +0300 Grygorii Strashko wrote: >> The TI J721E (CPSW9g) ALE version is similar, in general, to Sitara AM3/4/5 >> CPSW ALE, but has more extended functions and different ALE VLAN entry >> format. >> >> This patch adds support for for multi port TI J721E (CPSW9g) ALE variant. > > and: > > drivers/net/ethernet/ti/cpsw_ale.c:195:28: warning: symbol 'vlan_entry_k3_cpswxg' was not declared. Should it be static? > Thank you for your report, I've posted v2. I've had to install latest sparse version (0.6.2) manually to make it work properly.