mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[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.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user