From: kernel test robot <lkp@intel.com>
To: Mugunthan V N <mugunthanvnm@ti.com>
Cc: oe-kbuild-all@lists.linux.dev, vigneshr@ti.com, nm@ti.com,
Udit Kumar <u-kumar1@ti.com>,
Siddharth Vadapalli <s-vadapalli@ti.com>
Subject: [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)'
Date: Fri, 14 Jul 2023 01:31:46 +0800 [thread overview]
Message-ID: <202307140132.Dmt3wwRF-lkp@intel.com> (raw)
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
reply other threads:[~2023-07-13 17:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202307140132.Dmt3wwRF-lkp@intel.com \
--to=lkp@intel.com \
--cc=mugunthanvnm@ti.com \
--cc=nm@ti.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=s-vadapalli@ti.com \
--cc=u-kumar1@ti.com \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.