git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
drivers
/
scsi
/
aha1542.h
diff --git
a/drivers/scsi/aha1542.h
b/drivers/scsi/aha1542.h
index
cba290c
..
c402351
100644
(file)
--- a/
drivers/scsi/aha1542.h
+++ b/
drivers/scsi/aha1542.h
@@
-91,10
+91,12
@@
struct chain {
};
/* These belong in scsi.h also */
};
/* These belong in scsi.h also */
-#define any2scsi(up, p) \
-(up)[0] = (((unsigned long)(p)) >> 16) ; \
-(up)[1] = (((unsigned long)(p)) >> 8); \
-(up)[2] = ((unsigned long)(p));
+static inline void any2scsi(u8 *p, u32 v)
+{
+ p[0] = v >> 16;
+ p[1] = v >> 8;
+ p[2] = v;
+}
#define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )
#define scsi2int(up) ( (((long)*(up)) << 16) + (((long)(up)[1]) << 8) + ((long)(up)[2]) )