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

xen: use less generic names in netfront driver.

All Xen frontend drivers have a couple of identically named functions which
makes figuring out which device went wrong from a stacktrace harder than it
needs to be. Rename them to something specificto the device type.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ian Campbell and committed by
David S. Miller
f502bf2b e88c64f0

+4 -4
+4 -4
drivers/net/xen-netfront.c
··· 1395 1395 } 1396 1396 1397 1397 /* Common code used when first setting up, and when resuming. */ 1398 - static int talk_to_backend(struct xenbus_device *dev, 1398 + static int talk_to_netback(struct xenbus_device *dev, 1399 1399 struct netfront_info *info) 1400 1400 { 1401 1401 const char *message; ··· 1545 1545 return -ENODEV; 1546 1546 } 1547 1547 1548 - err = talk_to_backend(np->xbdev, np); 1548 + err = talk_to_netback(np->xbdev, np); 1549 1549 if (err) 1550 1550 return err; 1551 1551 ··· 1599 1599 /** 1600 1600 * Callback received when the backend's state changes. 1601 1601 */ 1602 - static void backend_changed(struct xenbus_device *dev, 1602 + static void netback_changed(struct xenbus_device *dev, 1603 1603 enum xenbus_state backend_state) 1604 1604 { 1605 1605 struct netfront_info *np = dev_get_drvdata(&dev->dev); ··· 1801 1801 .probe = netfront_probe, 1802 1802 .remove = __devexit_p(xennet_remove), 1803 1803 .resume = netfront_resume, 1804 - .otherend_changed = backend_changed, 1804 + .otherend_changed = netback_changed, 1805 1805 }; 1806 1806 1807 1807 static int __init netif_init(void)