aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/netiucv.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-17 01:46:21 -0400
committerHeiko Carstens <heiko.carstens@de.ibm.com>2008-04-17 01:47:04 -0400
commit2a2cf6b18626e66b7898013dfa4df8fe2feca568 (patch)
treed8de82bd941bab2b448c3283fe278cbfe51b2ea7 /drivers/s390/net/netiucv.c
parent1e42f32785dc252191bc8a4825e1fee77519d947 (diff)
[S390] replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/net/netiucv.c')
-rw-r--r--drivers/s390/net/netiucv.c97
1 files changed, 48 insertions, 49 deletions
diff --git a/drivers/s390/net/netiucv.c b/drivers/s390/net/netiucv.c
index 874a19994489..8f876f6ab367 100644
--- a/drivers/s390/net/netiucv.c
+++ b/drivers/s390/net/netiucv.c
@@ -670,7 +670,7 @@ static void conn_action_rx(fsm_instance *fi, int event, void *arg)
670 struct netiucv_priv *privptr = netdev_priv(conn->netdev); 670 struct netiucv_priv *privptr = netdev_priv(conn->netdev);
671 int rc; 671 int rc;
672 672
673 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 673 IUCV_DBF_TEXT(trace, 4, __func__);
674 674
675 if (!conn->netdev) { 675 if (!conn->netdev) {
676 iucv_message_reject(conn->path, msg); 676 iucv_message_reject(conn->path, msg);
@@ -718,7 +718,7 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)
718 struct ll_header header; 718 struct ll_header header;
719 int rc; 719 int rc;
720 720
721 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 721 IUCV_DBF_TEXT(trace, 4, __func__);
722 722
723 if (conn && conn->netdev) 723 if (conn && conn->netdev)
724 privptr = netdev_priv(conn->netdev); 724 privptr = netdev_priv(conn->netdev);
@@ -799,7 +799,7 @@ static void conn_action_connaccept(fsm_instance *fi, int event, void *arg)
799 struct netiucv_priv *privptr = netdev_priv(netdev); 799 struct netiucv_priv *privptr = netdev_priv(netdev);
800 int rc; 800 int rc;
801 801
802 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 802 IUCV_DBF_TEXT(trace, 3, __func__);
803 803
804 conn->path = path; 804 conn->path = path;
805 path->msglim = NETIUCV_QUEUELEN_DEFAULT; 805 path->msglim = NETIUCV_QUEUELEN_DEFAULT;
@@ -821,7 +821,7 @@ static void conn_action_connreject(fsm_instance *fi, int event, void *arg)
821 struct iucv_event *ev = arg; 821 struct iucv_event *ev = arg;
822 struct iucv_path *path = ev->data; 822 struct iucv_path *path = ev->data;
823 823
824 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 824 IUCV_DBF_TEXT(trace, 3, __func__);
825 iucv_path_sever(path, NULL); 825 iucv_path_sever(path, NULL);
826} 826}
827 827
@@ -831,7 +831,7 @@ static void conn_action_connack(fsm_instance *fi, int event, void *arg)
831 struct net_device *netdev = conn->netdev; 831 struct net_device *netdev = conn->netdev;
832 struct netiucv_priv *privptr = netdev_priv(netdev); 832 struct netiucv_priv *privptr = netdev_priv(netdev);
833 833
834 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 834 IUCV_DBF_TEXT(trace, 3, __func__);
835 fsm_deltimer(&conn->timer); 835 fsm_deltimer(&conn->timer);
836 fsm_newstate(fi, CONN_STATE_IDLE); 836 fsm_newstate(fi, CONN_STATE_IDLE);
837 netdev->tx_queue_len = conn->path->msglim; 837 netdev->tx_queue_len = conn->path->msglim;
@@ -842,7 +842,7 @@ static void conn_action_conntimsev(fsm_instance *fi, int event, void *arg)
842{ 842{
843 struct iucv_connection *conn = arg; 843 struct iucv_connection *conn = arg;
844 844
845 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 845 IUCV_DBF_TEXT(trace, 3, __func__);
846 fsm_deltimer(&conn->timer); 846 fsm_deltimer(&conn->timer);
847 iucv_path_sever(conn->path, NULL); 847 iucv_path_sever(conn->path, NULL);
848 fsm_newstate(fi, CONN_STATE_STARTWAIT); 848 fsm_newstate(fi, CONN_STATE_STARTWAIT);
@@ -854,7 +854,7 @@ static void conn_action_connsever(fsm_instance *fi, int event, void *arg)
854 struct net_device *netdev = conn->netdev; 854 struct net_device *netdev = conn->netdev;
855 struct netiucv_priv *privptr = netdev_priv(netdev); 855 struct netiucv_priv *privptr = netdev_priv(netdev);
856 856
857 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 857 IUCV_DBF_TEXT(trace, 3, __func__);
858 858
859 fsm_deltimer(&conn->timer); 859 fsm_deltimer(&conn->timer);
860 iucv_path_sever(conn->path, NULL); 860 iucv_path_sever(conn->path, NULL);
@@ -870,7 +870,7 @@ static void conn_action_start(fsm_instance *fi, int event, void *arg)
870 struct iucv_connection *conn = arg; 870 struct iucv_connection *conn = arg;
871 int rc; 871 int rc;
872 872
873 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 873 IUCV_DBF_TEXT(trace, 3, __func__);
874 874
875 fsm_newstate(fi, CONN_STATE_STARTWAIT); 875 fsm_newstate(fi, CONN_STATE_STARTWAIT);
876 PRINT_DEBUG("%s('%s'): connecting ...\n", 876 PRINT_DEBUG("%s('%s'): connecting ...\n",
@@ -948,7 +948,7 @@ static void conn_action_stop(fsm_instance *fi, int event, void *arg)
948 struct net_device *netdev = conn->netdev; 948 struct net_device *netdev = conn->netdev;
949 struct netiucv_priv *privptr = netdev_priv(netdev); 949 struct netiucv_priv *privptr = netdev_priv(netdev);
950 950
951 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 951 IUCV_DBF_TEXT(trace, 3, __func__);
952 952
953 fsm_deltimer(&conn->timer); 953 fsm_deltimer(&conn->timer);
954 fsm_newstate(fi, CONN_STATE_STOPPED); 954 fsm_newstate(fi, CONN_STATE_STOPPED);
@@ -1024,7 +1024,7 @@ static void dev_action_start(fsm_instance *fi, int event, void *arg)
1024 struct net_device *dev = arg; 1024 struct net_device *dev = arg;
1025 struct netiucv_priv *privptr = netdev_priv(dev); 1025 struct netiucv_priv *privptr = netdev_priv(dev);
1026 1026
1027 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1027 IUCV_DBF_TEXT(trace, 3, __func__);
1028 1028
1029 fsm_newstate(fi, DEV_STATE_STARTWAIT); 1029 fsm_newstate(fi, DEV_STATE_STARTWAIT);
1030 fsm_event(privptr->conn->fsm, CONN_EVENT_START, privptr->conn); 1030 fsm_event(privptr->conn->fsm, CONN_EVENT_START, privptr->conn);
@@ -1044,7 +1044,7 @@ dev_action_stop(fsm_instance *fi, int event, void *arg)
1044 struct netiucv_priv *privptr = netdev_priv(dev); 1044 struct netiucv_priv *privptr = netdev_priv(dev);
1045 struct iucv_event ev; 1045 struct iucv_event ev;
1046 1046
1047 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1047 IUCV_DBF_TEXT(trace, 3, __func__);
1048 1048
1049 ev.conn = privptr->conn; 1049 ev.conn = privptr->conn;
1050 1050
@@ -1066,7 +1066,7 @@ dev_action_connup(fsm_instance *fi, int event, void *arg)
1066 struct net_device *dev = arg; 1066 struct net_device *dev = arg;
1067 struct netiucv_priv *privptr = netdev_priv(dev); 1067 struct netiucv_priv *privptr = netdev_priv(dev);
1068 1068
1069 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1069 IUCV_DBF_TEXT(trace, 3, __func__);
1070 1070
1071 switch (fsm_getstate(fi)) { 1071 switch (fsm_getstate(fi)) {
1072 case DEV_STATE_STARTWAIT: 1072 case DEV_STATE_STARTWAIT:
@@ -1097,7 +1097,7 @@ dev_action_connup(fsm_instance *fi, int event, void *arg)
1097static void 1097static void
1098dev_action_conndown(fsm_instance *fi, int event, void *arg) 1098dev_action_conndown(fsm_instance *fi, int event, void *arg)
1099{ 1099{
1100 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1100 IUCV_DBF_TEXT(trace, 3, __func__);
1101 1101
1102 switch (fsm_getstate(fi)) { 1102 switch (fsm_getstate(fi)) {
1103 case DEV_STATE_RUNNING: 1103 case DEV_STATE_RUNNING:
@@ -1288,7 +1288,7 @@ static int netiucv_tx(struct sk_buff *skb, struct net_device *dev)
1288 struct netiucv_priv *privptr = netdev_priv(dev); 1288 struct netiucv_priv *privptr = netdev_priv(dev);
1289 int rc; 1289 int rc;
1290 1290
1291 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1291 IUCV_DBF_TEXT(trace, 4, __func__);
1292 /** 1292 /**
1293 * Some sanity checks ... 1293 * Some sanity checks ...
1294 */ 1294 */
@@ -1344,7 +1344,7 @@ static struct net_device_stats *netiucv_stats (struct net_device * dev)
1344{ 1344{
1345 struct netiucv_priv *priv = netdev_priv(dev); 1345 struct netiucv_priv *priv = netdev_priv(dev);
1346 1346
1347 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1347 IUCV_DBF_TEXT(trace, 5, __func__);
1348 return &priv->stats; 1348 return &priv->stats;
1349} 1349}
1350 1350
@@ -1360,7 +1360,7 @@ static struct net_device_stats *netiucv_stats (struct net_device * dev)
1360 */ 1360 */
1361static int netiucv_change_mtu(struct net_device * dev, int new_mtu) 1361static int netiucv_change_mtu(struct net_device * dev, int new_mtu)
1362{ 1362{
1363 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1363 IUCV_DBF_TEXT(trace, 3, __func__);
1364 if (new_mtu < 576 || new_mtu > NETIUCV_MTU_MAX) { 1364 if (new_mtu < 576 || new_mtu > NETIUCV_MTU_MAX) {
1365 IUCV_DBF_TEXT(setup, 2, "given MTU out of valid range\n"); 1365 IUCV_DBF_TEXT(setup, 2, "given MTU out of valid range\n");
1366 return -EINVAL; 1366 return -EINVAL;
@@ -1378,7 +1378,7 @@ static ssize_t user_show(struct device *dev, struct device_attribute *attr,
1378{ 1378{
1379 struct netiucv_priv *priv = dev->driver_data; 1379 struct netiucv_priv *priv = dev->driver_data;
1380 1380
1381 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1381 IUCV_DBF_TEXT(trace, 5, __func__);
1382 return sprintf(buf, "%s\n", netiucv_printname(priv->conn->userid)); 1382 return sprintf(buf, "%s\n", netiucv_printname(priv->conn->userid));
1383} 1383}
1384 1384
@@ -1393,7 +1393,7 @@ static ssize_t user_write(struct device *dev, struct device_attribute *attr,
1393 int i; 1393 int i;
1394 struct iucv_connection *cp; 1394 struct iucv_connection *cp;
1395 1395
1396 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1396 IUCV_DBF_TEXT(trace, 3, __func__);
1397 if (count > 9) { 1397 if (count > 9) {
1398 PRINT_WARN("netiucv: username too long (%d)!\n", (int) count); 1398 PRINT_WARN("netiucv: username too long (%d)!\n", (int) count);
1399 IUCV_DBF_TEXT_(setup, 2, 1399 IUCV_DBF_TEXT_(setup, 2,
@@ -1449,7 +1449,7 @@ static ssize_t buffer_show (struct device *dev, struct device_attribute *attr,
1449 char *buf) 1449 char *buf)
1450{ struct netiucv_priv *priv = dev->driver_data; 1450{ struct netiucv_priv *priv = dev->driver_data;
1451 1451
1452 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1452 IUCV_DBF_TEXT(trace, 5, __func__);
1453 return sprintf(buf, "%d\n", priv->conn->max_buffsize); 1453 return sprintf(buf, "%d\n", priv->conn->max_buffsize);
1454} 1454}
1455 1455
@@ -1461,7 +1461,7 @@ static ssize_t buffer_write (struct device *dev, struct device_attribute *attr,
1461 char *e; 1461 char *e;
1462 int bs1; 1462 int bs1;
1463 1463
1464 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1464 IUCV_DBF_TEXT(trace, 3, __func__);
1465 if (count >= 39) 1465 if (count >= 39)
1466 return -EINVAL; 1466 return -EINVAL;
1467 1467
@@ -1513,7 +1513,7 @@ static ssize_t dev_fsm_show (struct device *dev, struct device_attribute *attr,
1513{ 1513{
1514 struct netiucv_priv *priv = dev->driver_data; 1514 struct netiucv_priv *priv = dev->driver_data;
1515 1515
1516 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1516 IUCV_DBF_TEXT(trace, 5, __func__);
1517 return sprintf(buf, "%s\n", fsm_getstate_str(priv->fsm)); 1517 return sprintf(buf, "%s\n", fsm_getstate_str(priv->fsm));
1518} 1518}
1519 1519
@@ -1524,7 +1524,7 @@ static ssize_t conn_fsm_show (struct device *dev,
1524{ 1524{
1525 struct netiucv_priv *priv = dev->driver_data; 1525 struct netiucv_priv *priv = dev->driver_data;
1526 1526
1527 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1527 IUCV_DBF_TEXT(trace, 5, __func__);
1528 return sprintf(buf, "%s\n", fsm_getstate_str(priv->conn->fsm)); 1528 return sprintf(buf, "%s\n", fsm_getstate_str(priv->conn->fsm));
1529} 1529}
1530 1530
@@ -1535,7 +1535,7 @@ static ssize_t maxmulti_show (struct device *dev,
1535{ 1535{
1536 struct netiucv_priv *priv = dev->driver_data; 1536 struct netiucv_priv *priv = dev->driver_data;
1537 1537
1538 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1538 IUCV_DBF_TEXT(trace, 5, __func__);
1539 return sprintf(buf, "%ld\n", priv->conn->prof.maxmulti); 1539 return sprintf(buf, "%ld\n", priv->conn->prof.maxmulti);
1540} 1540}
1541 1541
@@ -1545,7 +1545,7 @@ static ssize_t maxmulti_write (struct device *dev,
1545{ 1545{
1546 struct netiucv_priv *priv = dev->driver_data; 1546 struct netiucv_priv *priv = dev->driver_data;
1547 1547
1548 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1548 IUCV_DBF_TEXT(trace, 4, __func__);
1549 priv->conn->prof.maxmulti = 0; 1549 priv->conn->prof.maxmulti = 0;
1550 return count; 1550 return count;
1551} 1551}
@@ -1557,7 +1557,7 @@ static ssize_t maxcq_show (struct device *dev, struct device_attribute *attr,
1557{ 1557{
1558 struct netiucv_priv *priv = dev->driver_data; 1558 struct netiucv_priv *priv = dev->driver_data;
1559 1559
1560 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1560 IUCV_DBF_TEXT(trace, 5, __func__);
1561 return sprintf(buf, "%ld\n", priv->conn->prof.maxcqueue); 1561 return sprintf(buf, "%ld\n", priv->conn->prof.maxcqueue);
1562} 1562}
1563 1563
@@ -1566,7 +1566,7 @@ static ssize_t maxcq_write (struct device *dev, struct device_attribute *attr,
1566{ 1566{
1567 struct netiucv_priv *priv = dev->driver_data; 1567 struct netiucv_priv *priv = dev->driver_data;
1568 1568
1569 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1569 IUCV_DBF_TEXT(trace, 4, __func__);
1570 priv->conn->prof.maxcqueue = 0; 1570 priv->conn->prof.maxcqueue = 0;
1571 return count; 1571 return count;
1572} 1572}
@@ -1578,7 +1578,7 @@ static ssize_t sdoio_show (struct device *dev, struct device_attribute *attr,
1578{ 1578{
1579 struct netiucv_priv *priv = dev->driver_data; 1579 struct netiucv_priv *priv = dev->driver_data;
1580 1580
1581 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1581 IUCV_DBF_TEXT(trace, 5, __func__);
1582 return sprintf(buf, "%ld\n", priv->conn->prof.doios_single); 1582 return sprintf(buf, "%ld\n", priv->conn->prof.doios_single);
1583} 1583}
1584 1584
@@ -1587,7 +1587,7 @@ static ssize_t sdoio_write (struct device *dev, struct device_attribute *attr,
1587{ 1587{
1588 struct netiucv_priv *priv = dev->driver_data; 1588 struct netiucv_priv *priv = dev->driver_data;
1589 1589
1590 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1590 IUCV_DBF_TEXT(trace, 4, __func__);
1591 priv->conn->prof.doios_single = 0; 1591 priv->conn->prof.doios_single = 0;
1592 return count; 1592 return count;
1593} 1593}
@@ -1599,7 +1599,7 @@ static ssize_t mdoio_show (struct device *dev, struct device_attribute *attr,
1599{ 1599{
1600 struct netiucv_priv *priv = dev->driver_data; 1600 struct netiucv_priv *priv = dev->driver_data;
1601 1601
1602 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1602 IUCV_DBF_TEXT(trace, 5, __func__);
1603 return sprintf(buf, "%ld\n", priv->conn->prof.doios_multi); 1603 return sprintf(buf, "%ld\n", priv->conn->prof.doios_multi);
1604} 1604}
1605 1605
@@ -1608,7 +1608,7 @@ static ssize_t mdoio_write (struct device *dev, struct device_attribute *attr,
1608{ 1608{
1609 struct netiucv_priv *priv = dev->driver_data; 1609 struct netiucv_priv *priv = dev->driver_data;
1610 1610
1611 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1611 IUCV_DBF_TEXT(trace, 5, __func__);
1612 priv->conn->prof.doios_multi = 0; 1612 priv->conn->prof.doios_multi = 0;
1613 return count; 1613 return count;
1614} 1614}
@@ -1620,7 +1620,7 @@ static ssize_t txlen_show (struct device *dev, struct device_attribute *attr,
1620{ 1620{
1621 struct netiucv_priv *priv = dev->driver_data; 1621 struct netiucv_priv *priv = dev->driver_data;
1622 1622
1623 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1623 IUCV_DBF_TEXT(trace, 5, __func__);
1624 return sprintf(buf, "%ld\n", priv->conn->prof.txlen); 1624 return sprintf(buf, "%ld\n", priv->conn->prof.txlen);
1625} 1625}
1626 1626
@@ -1629,7 +1629,7 @@ static ssize_t txlen_write (struct device *dev, struct device_attribute *attr,
1629{ 1629{
1630 struct netiucv_priv *priv = dev->driver_data; 1630 struct netiucv_priv *priv = dev->driver_data;
1631 1631
1632 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1632 IUCV_DBF_TEXT(trace, 4, __func__);
1633 priv->conn->prof.txlen = 0; 1633 priv->conn->prof.txlen = 0;
1634 return count; 1634 return count;
1635} 1635}
@@ -1641,7 +1641,7 @@ static ssize_t txtime_show (struct device *dev, struct device_attribute *attr,
1641{ 1641{
1642 struct netiucv_priv *priv = dev->driver_data; 1642 struct netiucv_priv *priv = dev->driver_data;
1643 1643
1644 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1644 IUCV_DBF_TEXT(trace, 5, __func__);
1645 return sprintf(buf, "%ld\n", priv->conn->prof.tx_time); 1645 return sprintf(buf, "%ld\n", priv->conn->prof.tx_time);
1646} 1646}
1647 1647
@@ -1650,7 +1650,7 @@ static ssize_t txtime_write (struct device *dev, struct device_attribute *attr,
1650{ 1650{
1651 struct netiucv_priv *priv = dev->driver_data; 1651 struct netiucv_priv *priv = dev->driver_data;
1652 1652
1653 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1653 IUCV_DBF_TEXT(trace, 4, __func__);
1654 priv->conn->prof.tx_time = 0; 1654 priv->conn->prof.tx_time = 0;
1655 return count; 1655 return count;
1656} 1656}
@@ -1662,7 +1662,7 @@ static ssize_t txpend_show (struct device *dev, struct device_attribute *attr,
1662{ 1662{
1663 struct netiucv_priv *priv = dev->driver_data; 1663 struct netiucv_priv *priv = dev->driver_data;
1664 1664
1665 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1665 IUCV_DBF_TEXT(trace, 5, __func__);
1666 return sprintf(buf, "%ld\n", priv->conn->prof.tx_pending); 1666 return sprintf(buf, "%ld\n", priv->conn->prof.tx_pending);
1667} 1667}
1668 1668
@@ -1671,7 +1671,7 @@ static ssize_t txpend_write (struct device *dev, struct device_attribute *attr,
1671{ 1671{
1672 struct netiucv_priv *priv = dev->driver_data; 1672 struct netiucv_priv *priv = dev->driver_data;
1673 1673
1674 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1674 IUCV_DBF_TEXT(trace, 4, __func__);
1675 priv->conn->prof.tx_pending = 0; 1675 priv->conn->prof.tx_pending = 0;
1676 return count; 1676 return count;
1677} 1677}
@@ -1683,7 +1683,7 @@ static ssize_t txmpnd_show (struct device *dev, struct device_attribute *attr,
1683{ 1683{
1684 struct netiucv_priv *priv = dev->driver_data; 1684 struct netiucv_priv *priv = dev->driver_data;
1685 1685
1686 IUCV_DBF_TEXT(trace, 5, __FUNCTION__); 1686 IUCV_DBF_TEXT(trace, 5, __func__);
1687 return sprintf(buf, "%ld\n", priv->conn->prof.tx_max_pending); 1687 return sprintf(buf, "%ld\n", priv->conn->prof.tx_max_pending);
1688} 1688}
1689 1689
@@ -1692,7 +1692,7 @@ static ssize_t txmpnd_write (struct device *dev, struct device_attribute *attr,
1692{ 1692{
1693 struct netiucv_priv *priv = dev->driver_data; 1693 struct netiucv_priv *priv = dev->driver_data;
1694 1694
1695 IUCV_DBF_TEXT(trace, 4, __FUNCTION__); 1695 IUCV_DBF_TEXT(trace, 4, __func__);
1696 priv->conn->prof.tx_max_pending = 0; 1696 priv->conn->prof.tx_max_pending = 0;
1697 return count; 1697 return count;
1698} 1698}
@@ -1732,7 +1732,7 @@ static int netiucv_add_files(struct device *dev)
1732{ 1732{
1733 int ret; 1733 int ret;
1734 1734
1735 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1735 IUCV_DBF_TEXT(trace, 3, __func__);
1736 ret = sysfs_create_group(&dev->kobj, &netiucv_attr_group); 1736 ret = sysfs_create_group(&dev->kobj, &netiucv_attr_group);
1737 if (ret) 1737 if (ret)
1738 return ret; 1738 return ret;
@@ -1744,7 +1744,7 @@ static int netiucv_add_files(struct device *dev)
1744 1744
1745static void netiucv_remove_files(struct device *dev) 1745static void netiucv_remove_files(struct device *dev)
1746{ 1746{
1747 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1747 IUCV_DBF_TEXT(trace, 3, __func__);
1748 sysfs_remove_group(&dev->kobj, &netiucv_stat_attr_group); 1748 sysfs_remove_group(&dev->kobj, &netiucv_stat_attr_group);
1749 sysfs_remove_group(&dev->kobj, &netiucv_attr_group); 1749 sysfs_remove_group(&dev->kobj, &netiucv_attr_group);
1750} 1750}
@@ -1756,7 +1756,7 @@ static int netiucv_register_device(struct net_device *ndev)
1756 int ret; 1756 int ret;
1757 1757
1758 1758
1759 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1759 IUCV_DBF_TEXT(trace, 3, __func__);
1760 1760
1761 if (dev) { 1761 if (dev) {
1762 snprintf(dev->bus_id, BUS_ID_SIZE, "net%s", ndev->name); 1762 snprintf(dev->bus_id, BUS_ID_SIZE, "net%s", ndev->name);
@@ -1792,7 +1792,7 @@ out_unreg:
1792 1792
1793static void netiucv_unregister_device(struct device *dev) 1793static void netiucv_unregister_device(struct device *dev)
1794{ 1794{
1795 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1795 IUCV_DBF_TEXT(trace, 3, __func__);
1796 netiucv_remove_files(dev); 1796 netiucv_remove_files(dev);
1797 device_unregister(dev); 1797 device_unregister(dev);
1798} 1798}
@@ -1857,7 +1857,7 @@ out:
1857 */ 1857 */
1858static void netiucv_remove_connection(struct iucv_connection *conn) 1858static void netiucv_remove_connection(struct iucv_connection *conn)
1859{ 1859{
1860 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1860 IUCV_DBF_TEXT(trace, 3, __func__);
1861 write_lock_bh(&iucv_connection_rwlock); 1861 write_lock_bh(&iucv_connection_rwlock);
1862 list_del_init(&conn->list); 1862 list_del_init(&conn->list);
1863 write_unlock_bh(&iucv_connection_rwlock); 1863 write_unlock_bh(&iucv_connection_rwlock);
@@ -1881,7 +1881,7 @@ static void netiucv_free_netdevice(struct net_device *dev)
1881{ 1881{
1882 struct netiucv_priv *privptr = netdev_priv(dev); 1882 struct netiucv_priv *privptr = netdev_priv(dev);
1883 1883
1884 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1884 IUCV_DBF_TEXT(trace, 3, __func__);
1885 1885
1886 if (!dev) 1886 if (!dev)
1887 return; 1887 return;
@@ -1963,7 +1963,7 @@ static ssize_t conn_write(struct device_driver *drv,
1963 struct netiucv_priv *priv; 1963 struct netiucv_priv *priv;
1964 struct iucv_connection *cp; 1964 struct iucv_connection *cp;
1965 1965
1966 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 1966 IUCV_DBF_TEXT(trace, 3, __func__);
1967 if (count>9) { 1967 if (count>9) {
1968 PRINT_WARN("netiucv: username too long (%d)!\n", (int)count); 1968 PRINT_WARN("netiucv: username too long (%d)!\n", (int)count);
1969 IUCV_DBF_TEXT(setup, 2, "conn_write: too long\n"); 1969 IUCV_DBF_TEXT(setup, 2, "conn_write: too long\n");
@@ -2048,7 +2048,7 @@ static ssize_t remove_write (struct device_driver *drv,
2048 const char *p; 2048 const char *p;
2049 int i; 2049 int i;
2050 2050
2051 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 2051 IUCV_DBF_TEXT(trace, 3, __func__);
2052 2052
2053 if (count >= IFNAMSIZ) 2053 if (count >= IFNAMSIZ)
2054 count = IFNAMSIZ - 1;; 2054 count = IFNAMSIZ - 1;;
@@ -2116,7 +2116,7 @@ static void __exit netiucv_exit(void)
2116 struct netiucv_priv *priv; 2116 struct netiucv_priv *priv;
2117 struct device *dev; 2117 struct device *dev;
2118 2118
2119 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 2119 IUCV_DBF_TEXT(trace, 3, __func__);
2120 while (!list_empty(&iucv_connection_list)) { 2120 while (!list_empty(&iucv_connection_list)) {
2121 cp = list_entry(iucv_connection_list.next, 2121 cp = list_entry(iucv_connection_list.next,
2122 struct iucv_connection, list); 2122 struct iucv_connection, list);
@@ -2146,8 +2146,7 @@ static int __init netiucv_init(void)
2146 rc = iucv_register(&netiucv_handler, 1); 2146 rc = iucv_register(&netiucv_handler, 1);
2147 if (rc) 2147 if (rc)
2148 goto out_dbf; 2148 goto out_dbf;
2149 IUCV_DBF_TEXT(trace, 3, __FUNCTION__); 2149 IUCV_DBF_TEXT(trace, 3, __func__);
2150 netiucv_driver.groups = netiucv_drv_attr_groups;
2151 rc = driver_register(&netiucv_driver); 2150 rc = driver_register(&netiucv_driver);
2152 if (rc) { 2151 if (rc) {
2153 PRINT_ERR("NETIUCV: failed to register driver.\n"); 2152 PRINT_ERR("NETIUCV: failed to register driver.\n");