* [intel-linux-intel-lts:5.4/yocto 5/10] drivers/net/ethernet/intel/igc/igc_ethtool.c:1656:7: error: dereferencing pointer to incomplete type 'struct ethtool_fp'
@ 2021-02-26 11:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-26 11:50 UTC (permalink / raw
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 4957 bytes --]
tree: https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: c36197cedf3d07bcc8007612c0afe3a9b61bcd4e
commit: eab3a2cb258924f16019ba8f90b45392cbd55829 [5/10] igc: Add support for tuning frame preemption via ethtool
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-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
# https://github.com/intel/linux-intel-lts/commit/eab3a2cb258924f16019ba8f90b45392cbd55829
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout eab3a2cb258924f16019ba8f90b45392cbd55829
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the intel-linux-intel-lts/5.4/yocto HEAD c36197cedf3d07bcc8007612c0afe3a9b61bcd4e builds fine.
It only hurts bisectibility.
All error/warnings (new ones prefixed by >>):
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1652:15: warning: 'struct ethtool_fp' declared inside parameter list will not be visible outside of this definition or declaration
1652 | struct ethtool_fp *fpcmd)
| ^~~~~~~~~~
drivers/net/ethernet/intel/igc/igc_ethtool.c: In function 'igc_ethtool_get_preempt':
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1656:7: error: dereferencing pointer to incomplete type 'struct ethtool_fp'
1656 | fpcmd->enabled = adapter->frame_preemption_active;
| ^~
drivers/net/ethernet/intel/igc/igc_ethtool.c: At top level:
drivers/net/ethernet/intel/igc/igc_ethtool.c:1663:15: warning: 'struct ethtool_fp' declared inside parameter list will not be visible outside of this definition or declaration
1663 | struct ethtool_fp *fpcmd,
| ^~~~~~~~~~
drivers/net/ethernet/intel/igc/igc_ethtool.c: In function 'igc_ethtool_set_preempt':
drivers/net/ethernet/intel/igc/igc_ethtool.c:1669:11: error: dereferencing pointer to incomplete type 'struct ethtool_fp'
1669 | if (fpcmd->add_frag_size < 68 || fpcmd->add_frag_size > 260) {
| ^~
drivers/net/ethernet/intel/igc/igc_ethtool.c: At top level:
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1994:3: error: 'const struct ethtool_ops' has no member named 'get_preempt'
1994 | .get_preempt = igc_ethtool_get_preempt,
| ^~~~~~~~~~~
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1994:18: error: initialization of 'int (*)(struct net_device *, struct ethtool_dump *)' from incompatible pointer type 'int (*)(struct net_device *, struct ethtool_fp *)' [-Werror=incompatible-pointer-types]
1994 | .get_preempt = igc_ethtool_get_preempt,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/igc/igc_ethtool.c:1994:18: note: (near initialization for 'igc_ethtool_ops.get_dump_flag')
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1995:3: error: 'const struct ethtool_ops' has no member named 'set_preempt'
1995 | .set_preempt = igc_ethtool_set_preempt,
| ^~~~~~~~~~~
>> drivers/net/ethernet/intel/igc/igc_ethtool.c:1995:18: error: initialization of 'int (*)(struct net_device *, struct ethtool_dump *, void *)' from incompatible pointer type 'int (*)(struct net_device *, struct ethtool_fp *, struct netlink_ext_ack *)' [-Werror=incompatible-pointer-types]
1995 | .set_preempt = igc_ethtool_set_preempt,
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/intel/igc/igc_ethtool.c:1995:18: note: (near initialization for 'igc_ethtool_ops.get_dump_data')
cc1: some warnings being treated as errors
--
drivers/net/ethernet/intel/igc/igc_tsn.c: In function 'igc_tsn_enable_offload':
>> drivers/net/ethernet/intel/igc/igc_tsn.c:104:19: error: implicit declaration of function 'ethtool_frag_size_to_mult' [-Werror=implicit-function-declaration]
104 | frag_size_mult = ethtool_frag_size_to_mult(adapter->add_frag_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1656 drivers/net/ethernet/intel/igc/igc_ethtool.c
1650
1651 static int igc_ethtool_get_preempt(struct net_device *netdev,
> 1652 struct ethtool_fp *fpcmd)
1653 {
1654 struct igc_adapter *adapter = netdev_priv(netdev);
1655
> 1656 fpcmd->enabled = adapter->frame_preemption_active;
1657 fpcmd->add_frag_size = adapter->add_frag_size;
1658
1659 return 0;
1660 }
1661
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 63326 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-26 11:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-26 11:50 [intel-linux-intel-lts:5.4/yocto 5/10] drivers/net/ethernet/intel/igc/igc_ethtool.c:1656:7: error: dereferencing pointer to incomplete type 'struct ethtool_fp' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.