Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: usb: usbnet: coding style for functions

Functions are not to have blanks between names
and parameter lists. Remove them.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20251023100136.909118-1-oneukum@suse.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Oliver Neukum and committed by
Jakub Kicinski
c09b183d fa6e6cd2

+24 -25
+24 -25
drivers/net/usb/usbnet.c
··· 189 189 is_local_ether_addr(net->dev_addr)); 190 190 } 191 191 192 - static void intr_complete (struct urb *urb) 192 + static void intr_complete(struct urb *urb) 193 193 { 194 194 struct usbnet *dev = urb->context; 195 195 int status = urb->status; ··· 221 221 "intr resubmit --> %d\n", status); 222 222 } 223 223 224 - static int init_status (struct usbnet *dev, struct usb_interface *intf) 224 + static int init_status(struct usbnet *dev, struct usb_interface *intf) 225 225 { 226 226 char *buf = NULL; 227 227 unsigned pipe = 0; ··· 326 326 * Some link protocols batch packets, so their rx_fixup paths 327 327 * can return clones as well as just modify the original skb. 328 328 */ 329 - void usbnet_skb_return (struct usbnet *dev, struct sk_buff *skb) 329 + void usbnet_skb_return(struct usbnet *dev, struct sk_buff *skb) 330 330 { 331 331 struct pcpu_sw_netstats *stats64 = this_cpu_ptr(dev->net->tstats); 332 332 unsigned long flags; ··· 396 396 * 397 397 *-------------------------------------------------------------------------*/ 398 398 399 - int usbnet_change_mtu (struct net_device *net, int new_mtu) 399 + int usbnet_change_mtu(struct net_device *net, int new_mtu) 400 400 { 401 401 struct usbnet *dev = netdev_priv(net); 402 402 int ll_mtu = new_mtu + net->hard_header_len; ··· 472 472 * NOTE: annoying asymmetry: if it's active, schedule_work() fails, 473 473 * but tasklet_schedule() doesn't. hope the failure is rare. 474 474 */ 475 - void usbnet_defer_kevent (struct usbnet *dev, int work) 475 + void usbnet_defer_kevent(struct usbnet *dev, int work) 476 476 { 477 477 set_bit (work, &dev->flags); 478 478 if (!usbnet_going_away(dev)) { ··· 489 489 490 490 /*-------------------------------------------------------------------------*/ 491 491 492 - static void rx_complete (struct urb *urb); 492 + static void rx_complete(struct urb *urb); 493 493 494 - static int rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags) 494 + static int rx_submit(struct usbnet *dev, struct urb *urb, gfp_t flags) 495 495 { 496 496 struct sk_buff *skb; 497 497 struct skb_data *entry; ··· 597 597 598 598 /*-------------------------------------------------------------------------*/ 599 599 600 - static void rx_complete (struct urb *urb) 600 + static void rx_complete(struct urb *urb) 601 601 { 602 602 struct sk_buff *skb = (struct sk_buff *) urb->context; 603 603 struct skb_data *entry = (struct skb_data *) skb->cb; ··· 728 728 729 729 // unlink pending rx/tx; completion handlers do all other cleanup 730 730 731 - static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) 731 + static int unlink_urbs(struct usbnet *dev, struct sk_buff_head *q) 732 732 { 733 733 unsigned long flags; 734 734 struct sk_buff *skb; ··· 823 823 remove_wait_queue(&dev->wait, &wait); 824 824 } 825 825 826 - int usbnet_stop (struct net_device *net) 826 + int usbnet_stop(struct net_device *net) 827 827 { 828 828 struct usbnet *dev = netdev_priv(net); 829 829 const struct driver_info *info = dev->driver_info; ··· 892 892 893 893 // precondition: never called in_interrupt 894 894 895 - int usbnet_open (struct net_device *net) 895 + int usbnet_open(struct net_device *net) 896 896 { 897 897 struct usbnet *dev = netdev_priv(net); 898 898 int retval; ··· 1048 1048 } 1049 1049 EXPORT_SYMBOL_GPL(usbnet_set_link_ksettings_mii); 1050 1050 1051 - u32 usbnet_get_link (struct net_device *net) 1051 + u32 usbnet_get_link(struct net_device *net) 1052 1052 { 1053 1053 struct usbnet *dev = netdev_priv(net); 1054 1054 ··· 1076 1076 } 1077 1077 EXPORT_SYMBOL_GPL(usbnet_nway_reset); 1078 1078 1079 - void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info) 1079 + void usbnet_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info) 1080 1080 { 1081 1081 struct usbnet *dev = netdev_priv(net); 1082 1082 ··· 1087 1087 } 1088 1088 EXPORT_SYMBOL_GPL(usbnet_get_drvinfo); 1089 1089 1090 - u32 usbnet_get_msglevel (struct net_device *net) 1090 + u32 usbnet_get_msglevel(struct net_device *net) 1091 1091 { 1092 1092 struct usbnet *dev = netdev_priv(net); 1093 1093 ··· 1095 1095 } 1096 1096 EXPORT_SYMBOL_GPL(usbnet_get_msglevel); 1097 1097 1098 - void usbnet_set_msglevel (struct net_device *net, u32 level) 1098 + void usbnet_set_msglevel(struct net_device *net, u32 level) 1099 1099 { 1100 1100 struct usbnet *dev = netdev_priv(net); 1101 1101 ··· 1166 1166 * especially now that control transfers can be queued. 1167 1167 */ 1168 1168 static void 1169 - usbnet_deferred_kevent (struct work_struct *work) 1169 + usbnet_deferred_kevent(struct work_struct *work) 1170 1170 { 1171 1171 struct usbnet *dev = 1172 1172 container_of(work, struct usbnet, kevent); ··· 1277 1277 1278 1278 /*-------------------------------------------------------------------------*/ 1279 1279 1280 - static void tx_complete (struct urb *urb) 1280 + static void tx_complete(struct urb *urb) 1281 1281 { 1282 1282 struct sk_buff *skb = (struct sk_buff *) urb->context; 1283 1283 struct skb_data *entry = (struct skb_data *) skb->cb; ··· 1332 1332 1333 1333 /*-------------------------------------------------------------------------*/ 1334 1334 1335 - void usbnet_tx_timeout (struct net_device *net, unsigned int txqueue) 1335 + void usbnet_tx_timeout(struct net_device *net, unsigned int txqueue) 1336 1336 { 1337 1337 struct usbnet *dev = netdev_priv(net); 1338 1338 ··· 1382 1382 return 1; 1383 1383 } 1384 1384 1385 - netdev_tx_t usbnet_start_xmit (struct sk_buff *skb, 1386 - struct net_device *net) 1385 + netdev_tx_t usbnet_start_xmit(struct sk_buff *skb, struct net_device *net) 1387 1386 { 1388 1387 struct usbnet *dev = netdev_priv(net); 1389 1388 unsigned int length; ··· 1560 1561 1561 1562 // work (work deferred from completions, in_irq) or timer 1562 1563 1563 - static void usbnet_bh (struct timer_list *t) 1564 + static void usbnet_bh(struct timer_list *t) 1564 1565 { 1565 1566 struct usbnet *dev = timer_container_of(dev, t, delay); 1566 1567 struct sk_buff *skb; ··· 1635 1636 1636 1637 // precondition: never called in_interrupt 1637 1638 1638 - void usbnet_disconnect (struct usb_interface *intf) 1639 + void usbnet_disconnect(struct usb_interface *intf) 1639 1640 { 1640 1641 struct usbnet *dev; 1641 1642 struct usb_device *xdev; ··· 1699 1700 }; 1700 1701 1701 1702 int 1702 - usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod) 1703 + usbnet_probe(struct usb_interface *udev, const struct usb_device_id *prod) 1703 1704 { 1704 1705 struct usbnet *dev; 1705 1706 struct net_device *net; ··· 1906 1907 * resume only when the last interface is resumed 1907 1908 */ 1908 1909 1909 - int usbnet_suspend (struct usb_interface *intf, pm_message_t message) 1910 + int usbnet_suspend(struct usb_interface *intf, pm_message_t message) 1910 1911 { 1911 1912 struct usbnet *dev = usb_get_intfdata(intf); 1912 1913 ··· 1939 1940 } 1940 1941 EXPORT_SYMBOL_GPL(usbnet_suspend); 1941 1942 1942 - int usbnet_resume (struct usb_interface *intf) 1943 + int usbnet_resume(struct usb_interface *intf) 1943 1944 { 1944 1945 struct usbnet *dev = usb_get_intfdata(intf); 1945 1946 struct sk_buff *skb;