bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 01/10] Use explicit type int when defining register variables


From: Guillem Jover
Subject: [PATCH 01/10] Use explicit type int when defining register variables
Date: Thu, 17 Dec 2009 14:39:21 +0100

From: Guillem Jover <guillem@debian.org>

        * linux/src/drivers/scsi/aha1542.c (WAIT, WAITd): Define variables
        with explicit type `register int' and not just `register'.
---
 linux/src/drivers/scsi/aha1542.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/linux/src/drivers/scsi/aha1542.c b/linux/src/drivers/scsi/aha1542.c
index 0366fd3..68954d7 100644
--- a/linux/src/drivers/scsi/aha1542.c
+++ b/linux/src/drivers/scsi/aha1542.c
@@ -120,8 +120,8 @@ static int aha1542_restart(struct Scsi_Host * shost);
 #define aha1542_intr_reset(base)  outb(IRST, CONTROL(base))
 
 #define WAIT(port, mask, allof, noneof)                                        
\
- { register WAITbits;                                                  \
-   register WAITtimeout = WAITnexttimeout;                             \
+ { register int WAITbits;                                              \
+   register int WAITtimeout = WAITnexttimeout;                         \
    while (1) {                                                         \
      WAITbits = inb(port) & (mask);                                    \
      if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \
@@ -133,8 +133,8 @@ static int aha1542_restart(struct Scsi_Host * shost);
 /* Similar to WAIT, except we use the udelay call to regulate the
    amount of time we wait.  */
 #define WAITd(port, mask, allof, noneof, timeout)                      \
- { register WAITbits;                                                  \
-   register WAITtimeout = timeout;                                     \
+ { register int WAITbits;                                              \
+   register int WAITtimeout = timeout;                                 \
    while (1) {                                                         \
      WAITbits = inb(port) & (mask);                                    \
      if ((WAITbits & (allof)) == (allof) && ((WAITbits & (noneof)) == 0)) \
-- 
1.6.5.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]