* [ti:ti-linux-6.1.y-wip 8/13] drivers/net/ethernet/ti/cpsw.c:1191:35: error: initialization of 'int (*)(struct net_device *, struct ifreq *, int)' from incompatible pointer type 'int (*)(struct net_device *, struct ifreq *, void *, int)'
@ 2023-07-13 17:31 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-07-13 17:31 UTC (permalink / raw)
To: Mugunthan V N
Cc: oe-kbuild-all, vigneshr, nm, Udit Kumar, Siddharth Vadapalli
tree: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git ti-linux-6.1.y-wip
head: 65bcc3fe777617e7f0d4d0e120e2e88d0f4ef646
commit: e9fcaf938bb8303e89133b4e71fb28bb35e77eb4 [8/13] HACK: drivers: net: cpsw: add support for switch ioctl
config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230714/202307140132.Dmt3wwRF-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230714/202307140132.Dmt3wwRF-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307140132.Dmt3wwRF-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/ethernet/ti/cpsw.c: In function 'cpsw_ndo_start_xmit':
drivers/net/ethernet/ti/cpsw.c:913:22: warning: variable 'len' set but not used [-Wunused-but-set-variable]
913 | unsigned int len;
| ^~~
drivers/net/ethernet/ti/cpsw.c: At top level:
>> drivers/net/ethernet/ti/cpsw.c:1191:35: error: initialization of 'int (*)(struct net_device *, struct ifreq *, int)' from incompatible pointer type 'int (*)(struct net_device *, struct ifreq *, void *, int)' [-Werror=incompatible-pointer-types]
1191 | .ndo_eth_ioctl = cpsw_ndo_ioctl_legacy,
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/ti/cpsw.c:1191:35: note: (near initialization for 'cpsw_netdev_ops.ndo_eth_ioctl')
cc1: some warnings being treated as errors
vim +1191 drivers/net/ethernet/ti/cpsw.c
1185
1186 static const struct net_device_ops cpsw_netdev_ops = {
1187 .ndo_open = cpsw_ndo_open,
1188 .ndo_stop = cpsw_ndo_stop,
1189 .ndo_start_xmit = cpsw_ndo_start_xmit,
1190 .ndo_set_mac_address = cpsw_ndo_set_mac_address,
> 1191 .ndo_eth_ioctl = cpsw_ndo_ioctl_legacy,
1192 .ndo_validate_addr = eth_validate_addr,
1193 .ndo_tx_timeout = cpsw_ndo_tx_timeout,
1194 .ndo_set_rx_mode = cpsw_ndo_set_rx_mode,
1195 .ndo_set_tx_maxrate = cpsw_ndo_set_tx_maxrate,
1196 #ifdef CONFIG_NET_POLL_CONTROLLER
1197 .ndo_poll_controller = cpsw_ndo_poll_controller,
1198 #endif
1199 .ndo_vlan_rx_add_vid = cpsw_ndo_vlan_rx_add_vid,
1200 .ndo_vlan_rx_kill_vid = cpsw_ndo_vlan_rx_kill_vid,
1201 .ndo_setup_tc = cpsw_ndo_setup_tc,
1202 .ndo_bpf = cpsw_ndo_bpf,
1203 .ndo_xdp_xmit = cpsw_ndo_xdp_xmit,
1204 };
1205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-13 17:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-13 17:31 [ti:ti-linux-6.1.y-wip 8/13] drivers/net/ethernet/ti/cpsw.c:1191:35: error: initialization of 'int (*)(struct net_device *, struct ifreq *, int)' from incompatible pointer type 'int (*)(struct net_device *, struct ifreq *, void *, int)' 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.