Hi Carolyn,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Carolyn-Wyborny/Granular-VF-Trus...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
1e76a2ff317d0dd9db60b5d9bb6e8215c1513fa8
config: arc-allyesconfig (attached as .config)
compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:6:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function
'hclge_get_vf_config':
> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:2930:5:
error: 'struct ifla_vf_info' has no member named 'trusted'
2930
| ivf->trusted = vport->vf_info.trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ice/ice.h:12,
from drivers/net/ethernet/intel/ice/ice_main.c:9:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
> drivers/net/ethernet/intel/ice/ice_main.c:6815:22: error:
initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka
'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type
'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *,
int, _Bool)'} [-Werror=incompatible-pointer-types]
6815 |
.ndo_set_vf_trust = ice_set_vf_trust,
| ^~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/ice_main.c:6815:22: note: (near initialization for
'ice_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/intel/ice/ice.h:12,
from drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c: In function
'ice_get_vf_cfg':
> drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c:3789:5: error:
'struct ifla_vf_info' has no member named 'trusted'
3789 |
ivi->trusted = vf->trusted;
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/trace/events/xdp.h:8,
from include/linux/bpf_trace.h:5,
from drivers/net/ethernet/netronome/nfp/nfp_net_common.c:16:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
> drivers/net/ethernet/netronome/nfp/nfp_net_common.c:3655:22:
error: initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)'
{aka 'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer
type 'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct
net_device *, int, _Bool)'} [-Werror=incompatible-pointer-types]
3655 |
.ndo_set_vf_trust = nfp_app_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_common.c:3655:22: note: (near initialization
for 'nfp_net_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:4:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
> drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:270:22: error:
initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka
'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type
'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *,
int, _Bool)'} [-Werror=incompatible-pointer-types]
270 |
.ndo_set_vf_trust = nfp_app_set_vf_trust,
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c:270:22: note: (near initialization
for 'nfp_repr_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from include/linux/etherdevice.h:21,
from drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c:6:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c: In function
'nfp_app_get_vf_config':
> drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c:240:5: error:
'struct ifla_vf_info' has no member named 'trusted'
240 |
ivi->trusted = FIELD_GET(NFP_NET_VF_CFG_CTRL_TRUST, flags);
| ^~
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/broadcom/bnxt/bnxt.c:22:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
> drivers/net/ethernet/broadcom/bnxt/bnxt.c:11734:22: error:
initialization of 'int (*)(struct net_device *, int, vf_trust_flags_t)' {aka
'int (*)(struct net_device *, int, unsigned int)'} from incompatible pointer type
'int (*)(struct net_device *, int, bool)' {aka 'int (*)(struct net_device *,
int, _Bool)'} [-Werror=incompatible-pointer-types]
11734 |
.ndo_set_vf_trust = bnxt_set_vf_trust,
| ^~~~~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt.c:11734:22: note: (near initialization for
'bnxt_netdev_ops.ndo_set_vf_trust')
cc1: some warnings being treated as errors
--
In file included from include/linux/if_link.h:5,
from include/uapi/linux/netdevice.h:32,
from include/linux/netdevice.h:47,
from drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c:13:
include/uapi/linux/if_link.h:877:2: error: unknown type name 'nla_bitfield32'
877 | nla_bitfield32 flags;
| ^~~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c: In function
'bnxt_get_vf_config':
> drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c:196:5: error:
'struct ifla_vf_info' has no member named 'trusted'
196 |
ivi->trusted = bnxt_is_trusted_vf(bp, vf);
| ^~
#
https://github.com/0day-ci/linux/commit/4bb6e978a1d0ad9d75c7da88901c610af...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Carolyn-Wyborny/Granular-VF-Trust-Flags-for-SR-IOV/20200821-092637
git checkout 4bb6e978a1d0ad9d75c7da88901c610afa0ac3e4
vim +2930 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
6430f744a45adb Yufeng Mo 2019-10-08 2916
6430f744a45adb Yufeng Mo 2019-10-08 2917 static int hclge_get_vf_config(struct
hnae3_handle *handle, int vf,
6430f744a45adb Yufeng Mo 2019-10-08 2918 struct ifla_vf_info *ivf)
6430f744a45adb Yufeng Mo 2019-10-08 2919 {
6430f744a45adb Yufeng Mo 2019-10-08 2920 struct hclge_vport *vport =
hclge_get_vport(handle);
6430f744a45adb Yufeng Mo 2019-10-08 2921 struct hclge_dev *hdev = vport->back;
6430f744a45adb Yufeng Mo 2019-10-08 2922
6430f744a45adb Yufeng Mo 2019-10-08 2923 vport = hclge_get_vf_vport(hdev, vf);
6430f744a45adb Yufeng Mo 2019-10-08 2924 if (!vport)
6430f744a45adb Yufeng Mo 2019-10-08 2925 return -EINVAL;
6430f744a45adb Yufeng Mo 2019-10-08 2926
6430f744a45adb Yufeng Mo 2019-10-08 2927 ivf->vf = vf;
6430f744a45adb Yufeng Mo 2019-10-08 2928 ivf->linkstate =
vport->vf_info.link_state;
22044f95faa05c Jian Shen 2019-10-08 2929 ivf->spoofchk =
vport->vf_info.spoofchk;
e196ec75958e16 Jian Shen 2019-10-08 @2930 ivf->trusted =
vport->vf_info.trusted;
ee9e44248f52b6 Yonglong Liu 2019-10-08 2931 ivf->min_tx_rate = 0;
ee9e44248f52b6 Yonglong Liu 2019-10-08 2932 ivf->max_tx_rate =
vport->vf_info.max_tx_rate;
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2933 ivf->vlan =
vport->port_base_vlan_cfg.vlan_info.vlan_tag;
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2934 ivf->vlan_proto =
htons(vport->port_base_vlan_cfg.vlan_info.vlan_proto);
89b40c7fe2a8b3 Huazhong Tan 2019-12-19 2935 ivf->qos =
vport->port_base_vlan_cfg.vlan_info.qos;
6430f744a45adb Yufeng Mo 2019-10-08 2936 ether_addr_copy(ivf->mac,
vport->vf_info.mac);
6430f744a45adb Yufeng Mo 2019-10-08 2937
6430f744a45adb Yufeng Mo 2019-10-08 2938 return 0;
6430f744a45adb Yufeng Mo 2019-10-08 2939 }
6430f744a45adb Yufeng Mo 2019-10-08 2940
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org