tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: de62e075613ad8d1b4979186b1962e3ae58156f2
commit: 346c4d648c7ba01c5e3266f07d05d9f314ab3227 [212/290] net: hns3: fix VF ID issue for
setting VF VLAN
config: sparc-allyesconfig (attached as .config)
compiler: sparc64-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
git checkout 346c4d648c7ba01c5e3266f07d05d9f314ab3227
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/sparc/include/asm/pgtable_64.h:1123,
from arch/sparc/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/asm-generic/pgtable.h: In function
'pud_none_or_trans_huge_or_dev_or_clear_bad':
include/asm-generic/pgtable.h:920:52: error: implicit declaration of function
'pud_devmap' [-Werror=implicit-function-declaration]
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
In file included from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/linux/mm.h: At top level:
include/linux/mm.h:572:19: error: static declaration of 'pud_devmap' follows
non-static declaration
572 | static inline int pud_devmap(pud_t pud)
| ^~~~~~~~~~
In file included from arch/sparc/include/asm/pgtable_64.h:1123,
from arch/sparc/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from include/linux/bvec.h:13,
from include/linux/skbuff.h:17,
from include/linux/if_ether.h:19,
from include/linux/etherdevice.h:20,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/asm-generic/pgtable.h:920:52: note: previous implicit declaration of
'pud_devmap' was here
920 | if (pud_none(pudval) || pud_trans_huge(pudval) || pud_devmap(pudval))
| ^~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function
'hclge_set_vf_vlan_filter':
> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8270:10:
error: implicit declaration of function 'hclge_get_vf_vport'; did you mean
'hclge_get_vport'? [-Werror=implicit-function-declaration]
8270 | vport =
hclge_get_vf_vport(hdev, vfid);
| ^~~~~~~~~~~~~~~~~~
| hclge_get_vport
> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8270:8:
warning: assignment to 'struct hclge_vport *' from 'int' makes pointer
from integer without a cast [-Wint-conversion]
8270 | vport =
hclge_get_vf_vport(hdev, vfid);
| ^
cc1: some warnings being treated as errors
vim +8270 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
8257
8258 static int hclge_set_vf_vlan_filter(struct hnae3_handle *handle, int vfid,
8259 u16 vlan, u8 qos, __be16 proto)
8260 {
8261 struct hclge_vport *vport = hclge_get_vport(handle);
8262 struct hclge_dev *hdev = vport->back;
8263 struct hclge_vlan_info vlan_info;
8264 u16 state;
8265 int ret;
8266
8267 if (hdev->pdev->revision == 0x20)
8268 return -EOPNOTSUPP;
8269
8270 vport = hclge_get_vf_vport(hdev, vfid);
8271 if
(!vport)
8272 return -EINVAL;
8273
8274 /* qos is a 3 bits value, so can not be bigger than 7 */
8275 if (vlan > VLAN_N_VID - 1 || qos > 7)
8276 return -EINVAL;
8277 if (proto != htons(ETH_P_8021Q))
8278 return -EPROTONOSUPPORT;
8279
8280 state = hclge_get_port_base_vlan_state(vport,
8281 vport->port_base_vlan_cfg.state,
8282 vlan);
8283 if (state == HNAE3_PORT_BASE_VLAN_NOCHANGE)
8284 return 0;
8285
8286 vlan_info.vlan_tag = vlan;
8287 vlan_info.qos = qos;
8288 vlan_info.vlan_proto = ntohs(proto);
8289
8290 if (!test_bit(HCLGE_VPORT_STATE_ALIVE, &vport->state)) {
8291 return hclge_update_port_base_vlan_cfg(vport, state,
8292 &vlan_info);
8293 } else {
8294 ret = hclge_push_vf_port_base_vlan_info(&hdev->vport[0],
8295 vport->vport_id, state,
8296 vlan, qos,
8297 ntohs(proto));
8298 return ret;
8299 }
8300 }
8301
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org