Hi DENG,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on net-next/master]
[also build test ERROR on net/master linus/master v5.7-rc1 next-20200413]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/DENG-Qingfang/net-dsa-mt7530-fix...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
7f80ccfe996871ca69648efee74a60ae7ad0dcd9
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/net/dsa/mt7530.c:23:
> drivers/net/dsa/mt7530.h:181:29: error: expected ',' or
'}' before ';' token
181 | MT7530_VLAN_EG_DISABLED = 0;
| ^
drivers/net/dsa/mt7530.c: In function 'mt7530_port_set_vlan_unaware':
> drivers/net/dsa/mt7530.c:851:17: error:
'MT7530_VLAN_EG_CONSISTENT' undeclared (first use in this function); did you mean
'MT7530_VLAN_TRANSPARENT'?
851 |
PVC_EG_TAG(MT7530_VLAN_EG_CONSISTENT));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.h:175:29: note: in definition of macro 'PVC_EG_TAG'
175 | #define PVC_EG_TAG(x) (((x) & 0x7) << 8)
| ^
drivers/net/dsa/mt7530.c:851:17: note: each undeclared identifier is reported only once
for each function it appears in
851 | PVC_EG_TAG(MT7530_VLAN_EG_CONSISTENT));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.h:175:29: note: in definition of macro 'PVC_EG_TAG'
175 | #define PVC_EG_TAG(x) (((x) & 0x7) << 8)
| ^
drivers/net/dsa/mt7530.c: In function 'mt7530_setup':
drivers/net/dsa/mt7530.c:1388:18: error: 'MT7530_VLAN_EG_CONSISTENT' undeclared
(first use in this function); did you mean 'MT7530_VLAN_TRANSPARENT'?
1388 | PVC_EG_TAG(MT7530_VLAN_EG_CONSISTENT));
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.h:175:29: note: in definition of macro 'PVC_EG_TAG'
175 | #define PVC_EG_TAG(x) (((x) & 0x7) << 8)
| ^
vim +181 drivers/net/dsa/mt7530.h
179
180 enum mt7530_vlan_port_eg_tag {
181 MT7530_VLAN_EG_DISABLED = 0;
182 MT7530_VLAN_EG_CONSISTENT = 1;
183 };
184
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org