Extend alloc_netdev{,_mq{,s}}() to take name_assign_type as argument, and convert all users to pass NET_NAME_UNKNOWN. Coccinelle patch: @@ expression sizeof_priv, name, setup, txqs, rxqs, count; @@ ( -alloc_netdev_mqs(sizeof_priv, name, setup, txqs, rxqs) +alloc_netdev_...
PSDevice wpadev_priv;structnet_device*dev=pDevice->dev;intret=0; pDevice->wpadev =alloc_netdev(sizeof(PSDevice),"vntwpa", wpadev_setup);if(pDevice->wpadev ==NULL)return-ENOMEM; wpadev_priv = netdev_priv(pDevice->wpadev); *wpadev_priv = *pDevice;memcpy(pDevice->wpadev->dev_a...