diff options
| author | Michael Brown | 2008-11-19 20:33:05 +0100 |
|---|---|---|
| committer | Michael Brown | 2008-11-19 20:33:05 +0100 |
| commit | 0ebbbb95fa03622423154a3e56251dd58832654d (patch) | |
| tree | 3bb6fa8df8158cf546a3fe42364cfd3d0b4ef831 /src/drivers/infiniband | |
| parent | [build] Explicitly link efilink against -liberty (diff) | |
| download | ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.gz ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.tar.xz ipxe-0ebbbb95fa03622423154a3e56251dd58832654d.zip | |
[x86_64] Fix assorted 64-bit compilation errors and warnings
Remove various 32-bit assumptions scattered throughout the codebase.
The code is still not necessarily 64-bit clean, but will at least
compile.
Diffstat (limited to 'src/drivers/infiniband')
| -rw-r--r-- | src/drivers/infiniband/arbel.c | 1 | ||||
| -rw-r--r-- | src/drivers/infiniband/hermon.c | 1 | ||||
| -rw-r--r-- | src/drivers/infiniband/linda.c | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/infiniband/arbel.c b/src/drivers/infiniband/arbel.c index 7d5099547..e9bc260ec 100644 --- a/src/drivers/infiniband/arbel.c +++ b/src/drivers/infiniband/arbel.c @@ -27,6 +27,7 @@ #include <unistd.h> #include <errno.h> #include <byteswap.h> +#include <gpxe/io.h> #include <gpxe/pci.h> #include <gpxe/malloc.h> #include <gpxe/umalloc.h> diff --git a/src/drivers/infiniband/hermon.c b/src/drivers/infiniband/hermon.c index 44f0e2d5e..dbf92a0fe 100644 --- a/src/drivers/infiniband/hermon.c +++ b/src/drivers/infiniband/hermon.c @@ -25,6 +25,7 @@ #include <unistd.h> #include <errno.h> #include <byteswap.h> +#include <gpxe/io.h> #include <gpxe/pci.h> #include <gpxe/malloc.h> #include <gpxe/umalloc.h> diff --git a/src/drivers/infiniband/linda.c b/src/drivers/infiniband/linda.c index b2f9e2abf..c5d13177c 100644 --- a/src/drivers/infiniband/linda.c +++ b/src/drivers/infiniband/linda.c @@ -21,6 +21,7 @@ #include <errno.h> #include <unistd.h> #include <assert.h> +#include <gpxe/io.h> #include <gpxe/pci.h> #include <gpxe/infiniband.h> #include <gpxe/i2c.h> @@ -1065,7 +1066,7 @@ static int linda_post_recv ( struct ib_device *ibdev, return -EINVAL; } if ( len != LINDA_RECV_PAYLOAD_SIZE ) { - DBGC ( linda, "Linda %p QPN %ld wrong RX buffer size (%d)\n", + DBGC ( linda, "Linda %p QPN %ld wrong RX buffer size (%zd)\n", linda, qp->qpn, len ); return -EINVAL; } |
