tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-4.19
head: da0ab6f9b4814a4a16e1999273d7dbd1a348314b
commit: 8d8bd352b9fe3f9dc4e67930a5b26074f06a4d67 [42/61] net: qualcomm: rmnet: Update
rmnet device MTU based on real device
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-4.19
git checkout 8d8bd352b9fe3f9dc4e67930a5b26074f06a4d67
# save the attached .config to linux build tree
make W=1 ARCH=i386
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/uapi/linux/neighbour.h:6,
from include/linux/netdevice.h:50,
from include/linux/etherdevice.h:26,
from drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c:17:
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c: In function
'rmnet_vnd_newlink':
> drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c:277:22: error:
'extack' undeclared (first use in this function)
277 |
NL_SET_ERR_MSG_MOD(extack, "Invalid MTU on real dev");
| ^~~~~~
include/linux/netlink.h:89:38: note: in definition of macro 'NL_SET_ERR_MSG'
89 | struct netlink_ext_ack *__extack = (extack); \
| ^~~~~~
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c:277:3: note: in expansion of macro
'NL_SET_ERR_MSG_MOD'
277 | NL_SET_ERR_MSG_MOD(extack, "Invalid MTU on real dev");
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c:277:22: note: each undeclared
identifier is reported only once for each function it appears in
277 | NL_SET_ERR_MSG_MOD(extack, "Invalid MTU on real dev");
| ^~~~~~
include/linux/netlink.h:89:38: note: in definition of macro 'NL_SET_ERR_MSG'
89 | struct netlink_ext_ack *__extack = (extack); \
| ^~~~~~
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c:277:3: note: in expansion of macro
'NL_SET_ERR_MSG_MOD'
277 | NL_SET_ERR_MSG_MOD(extack, "Invalid MTU on real dev");
| ^~~~~~~~~~~~~~~~~~
vim +/extack +277 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
252
253 int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev,
254 struct rmnet_port *port,
255 struct net_device *real_dev,
256 struct rmnet_endpoint *ep)
257 {
258 struct rmnet_priv *priv = netdev_priv(rmnet_dev);
259 u32 headroom;
260 int rc;
261
262 if (ep->egress_dev)
263 return -EINVAL;
264
265 if (rmnet_get_endpoint(port, id))
266 return -EBUSY;
267
268 rmnet_dev->hw_features = NETIF_F_RXCSUM;
269 rmnet_dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
270 rmnet_dev->hw_features |= NETIF_F_SG;
271
272 priv->real_dev = real_dev;
273
274 headroom = rmnet_vnd_headroom(port);
275
276 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) {
277 NL_SET_ERR_MSG_MOD(extack, "Invalid MTU on real
dev");
278 return -EINVAL;
279 }
280
281 rc = register_netdevice(rmnet_dev);
282 if (!rc) {
283 ep->egress_dev = rmnet_dev;
284 ep->mux_id = id;
285 port->nr_rmnet_devs++;
286
287 rmnet_dev->rtnl_link_ops = &rmnet_link_ops;
288
289 priv->mux_id = id;
290
291 netdev_dbg(rmnet_dev, "rmnet dev created\n");
292 }
293
294 return rc;
295 }
296
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org