diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-04-30 03:53:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:45 -0400 |
commit | d6f6341a6475eb7f9c2b948a7d0fd56fd16ad675 (patch) | |
tree | d43fe194f1d6d7af9ee30c78f7a763eb49fedfb7 /drivers/char/rio/rioctrl.c | |
parent | cd989b3a8c30148c872c7677c7a0415584f1658c (diff) |
Char: rio, fix cirrus defines
Rename defines to be in RIO* namespace to not to collide with other defines in
tree. This broke (as akpm correctly pointed out) some allmodconfig builds,
e.g. on ppc:
In file included from drivers/char/rio/rio_linux.c:81:
drivers/char/rio/cirrus.h:202:1: warning: "COMPLETE" redefined
In file included from include/net/netns/ipv4.h:8,
from include/net/net_namespace.h:13,
from include/linux/seq_file.h:7,
from include/asm/machdep.h:12,
from include/asm/pci.h:17,
from include/linux/pci.h:951,
from drivers/char/rio/rio_linux.c:50:
include/net/inet_frag.h:28:1: warning: this is the location of the previous definition
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rio/rioctrl.c')
-rw-r--r-- | drivers/char/rio/rioctrl.c | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/drivers/char/rio/rioctrl.c b/drivers/char/rio/rioctrl.c index d8eb2bcbe015..d65ceb9a434a 100644 --- a/drivers/char/rio/rioctrl.c +++ b/drivers/char/rio/rioctrl.c | |||
@@ -422,7 +422,8 @@ int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su | |||
422 | } | 422 | } |
423 | 423 | ||
424 | rio_spin_lock_irqsave(&PortP->portSem, flags); | 424 | rio_spin_lock_irqsave(&PortP->portSem, flags); |
425 | if (RIOPreemptiveCmd(p, (p->RIOPortp[port]), RESUME) == RIO_FAIL) { | 425 | if (RIOPreemptiveCmd(p, (p->RIOPortp[port]), RIOC_RESUME) == |
426 | RIO_FAIL) { | ||
426 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_RESUME failed\n"); | 427 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_RESUME failed\n"); |
427 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); | 428 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); |
428 | return -EBUSY; | 429 | return -EBUSY; |
@@ -636,7 +637,8 @@ int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su | |||
636 | return -ENXIO; | 637 | return -ENXIO; |
637 | } | 638 | } |
638 | PortP = (p->RIOPortp[PortTty.port]); | 639 | PortP = (p->RIOPortp[PortTty.port]); |
639 | RIOParam(PortP, CONFIG, PortP->State & RIO_MODEM, OK_TO_SLEEP); | 640 | RIOParam(PortP, RIOC_CONFIG, PortP->State & RIO_MODEM, |
641 | OK_TO_SLEEP); | ||
640 | return retval; | 642 | return retval; |
641 | 643 | ||
642 | case RIO_SET_PORT_PARAMS: | 644 | case RIO_SET_PORT_PARAMS: |
@@ -1247,7 +1249,7 @@ int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su | |||
1247 | 1249 | ||
1248 | rio_spin_lock_irqsave(&PortP->portSem, flags); | 1250 | rio_spin_lock_irqsave(&PortP->portSem, flags); |
1249 | 1251 | ||
1250 | if (RIOPreemptiveCmd(p, PortP, MEMDUMP) == RIO_FAIL) { | 1252 | if (RIOPreemptiveCmd(p, PortP, RIOC_MEMDUMP) == RIO_FAIL) { |
1251 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_MEM_DUMP failed\n"); | 1253 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_MEM_DUMP failed\n"); |
1252 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); | 1254 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); |
1253 | return -EBUSY; | 1255 | return -EBUSY; |
@@ -1313,7 +1315,8 @@ int riocontrol(struct rio_info *p, dev_t dev, int cmd, unsigned long arg, int su | |||
1313 | 1315 | ||
1314 | rio_spin_lock_irqsave(&PortP->portSem, flags); | 1316 | rio_spin_lock_irqsave(&PortP->portSem, flags); |
1315 | 1317 | ||
1316 | if (RIOPreemptiveCmd(p, PortP, READ_REGISTER) == RIO_FAIL) { | 1318 | if (RIOPreemptiveCmd(p, PortP, RIOC_READ_REGISTER) == |
1319 | RIO_FAIL) { | ||
1317 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_READ_REGISTER failed\n"); | 1320 | rio_dprintk(RIO_DEBUG_CTRL, "RIO_READ_REGISTER failed\n"); |
1318 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); | 1321 | rio_spin_unlock_irqrestore(&PortP->portSem, flags); |
1319 | return -EBUSY; | 1322 | return -EBUSY; |
@@ -1434,50 +1437,50 @@ int RIOPreemptiveCmd(struct rio_info *p, struct Port *PortP, u8 Cmd) | |||
1434 | PktCmdP->PhbNum = port; | 1437 | PktCmdP->PhbNum = port; |
1435 | 1438 | ||
1436 | switch (Cmd) { | 1439 | switch (Cmd) { |
1437 | case MEMDUMP: | 1440 | case RIOC_MEMDUMP: |
1438 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MEMDUMP command blk %p " | 1441 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MEMDUMP command blk %p " |
1439 | "(addr 0x%x)\n", CmdBlkP, (int) SubCmd.Addr); | 1442 | "(addr 0x%x)\n", CmdBlkP, (int) SubCmd.Addr); |
1440 | PktCmdP->SubCommand = MEMDUMP; | 1443 | PktCmdP->SubCommand = RIOC_MEMDUMP; |
1441 | PktCmdP->SubAddr = SubCmd.Addr; | 1444 | PktCmdP->SubAddr = SubCmd.Addr; |
1442 | break; | 1445 | break; |
1443 | case FCLOSE: | 1446 | case RIOC_FCLOSE: |
1444 | rio_dprintk(RIO_DEBUG_CTRL, "Queue FCLOSE command blk %p\n", | 1447 | rio_dprintk(RIO_DEBUG_CTRL, "Queue FCLOSE command blk %p\n", |
1445 | CmdBlkP); | 1448 | CmdBlkP); |
1446 | break; | 1449 | break; |
1447 | case READ_REGISTER: | 1450 | case RIOC_READ_REGISTER: |
1448 | rio_dprintk(RIO_DEBUG_CTRL, "Queue READ_REGISTER (0x%x) " | 1451 | rio_dprintk(RIO_DEBUG_CTRL, "Queue READ_REGISTER (0x%x) " |
1449 | "command blk %p\n", (int) SubCmd.Addr, CmdBlkP); | 1452 | "command blk %p\n", (int) SubCmd.Addr, CmdBlkP); |
1450 | PktCmdP->SubCommand = READ_REGISTER; | 1453 | PktCmdP->SubCommand = RIOC_READ_REGISTER; |
1451 | PktCmdP->SubAddr = SubCmd.Addr; | 1454 | PktCmdP->SubAddr = SubCmd.Addr; |
1452 | break; | 1455 | break; |
1453 | case RESUME: | 1456 | case RIOC_RESUME: |
1454 | rio_dprintk(RIO_DEBUG_CTRL, "Queue RESUME command blk %p\n", | 1457 | rio_dprintk(RIO_DEBUG_CTRL, "Queue RESUME command blk %p\n", |
1455 | CmdBlkP); | 1458 | CmdBlkP); |
1456 | break; | 1459 | break; |
1457 | case RFLUSH: | 1460 | case RIOC_RFLUSH: |
1458 | rio_dprintk(RIO_DEBUG_CTRL, "Queue RFLUSH command blk %p\n", | 1461 | rio_dprintk(RIO_DEBUG_CTRL, "Queue RFLUSH command blk %p\n", |
1459 | CmdBlkP); | 1462 | CmdBlkP); |
1460 | CmdBlkP->PostFuncP = RIORFlushEnable; | 1463 | CmdBlkP->PostFuncP = RIORFlushEnable; |
1461 | break; | 1464 | break; |
1462 | case SUSPEND: | 1465 | case RIOC_SUSPEND: |
1463 | rio_dprintk(RIO_DEBUG_CTRL, "Queue SUSPEND command blk %p\n", | 1466 | rio_dprintk(RIO_DEBUG_CTRL, "Queue SUSPEND command blk %p\n", |
1464 | CmdBlkP); | 1467 | CmdBlkP); |
1465 | break; | 1468 | break; |
1466 | 1469 | ||
1467 | case MGET: | 1470 | case RIOC_MGET: |
1468 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MGET command blk %p\n", | 1471 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MGET command blk %p\n", |
1469 | CmdBlkP); | 1472 | CmdBlkP); |
1470 | break; | 1473 | break; |
1471 | 1474 | ||
1472 | case MSET: | 1475 | case RIOC_MSET: |
1473 | case MBIC: | 1476 | case RIOC_MBIC: |
1474 | case MBIS: | 1477 | case RIOC_MBIS: |
1475 | CmdBlkP->Packet.data[4] = (char) PortP->ModemLines; | 1478 | CmdBlkP->Packet.data[4] = (char) PortP->ModemLines; |
1476 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MSET/MBIC/MBIS command " | 1479 | rio_dprintk(RIO_DEBUG_CTRL, "Queue MSET/MBIC/MBIS command " |
1477 | "blk %p\n", CmdBlkP); | 1480 | "blk %p\n", CmdBlkP); |
1478 | break; | 1481 | break; |
1479 | 1482 | ||
1480 | case WFLUSH: | 1483 | case RIOC_WFLUSH: |
1481 | /* | 1484 | /* |
1482 | ** If we have queued up the maximum number of Write flushes | 1485 | ** If we have queued up the maximum number of Write flushes |
1483 | ** allowed then we should not bother sending any more to the | 1486 | ** allowed then we should not bother sending any more to the |