mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 18:05:37 +00:00
hw/9pfs: Use the correct signed type for different variables
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
This commit is contained in:
parent
302a0d3ed7
commit
2f008a8c97
|
@ -74,7 +74,7 @@ typedef struct FsContext
|
||||||
} FsContext;
|
} FsContext;
|
||||||
|
|
||||||
typedef struct V9fsPath {
|
typedef struct V9fsPath {
|
||||||
int16_t size;
|
uint16_t size;
|
||||||
char *data;
|
char *data;
|
||||||
} V9fsPath;
|
} V9fsPath;
|
||||||
|
|
||||||
|
|
|
@ -1694,8 +1694,8 @@ out_nofid:
|
||||||
complete_pdu(s, pdu, err);
|
complete_pdu(s, pdu, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int v9fs_xattr_read(V9fsState *s, V9fsPDU *pdu,
|
static int v9fs_xattr_read(V9fsState *s, V9fsPDU *pdu, V9fsFidState *fidp,
|
||||||
V9fsFidState *fidp, int64_t off, int32_t max_count)
|
uint64_t off, uint32_t max_count)
|
||||||
{
|
{
|
||||||
size_t offset = 7;
|
size_t offset = 7;
|
||||||
int read_count;
|
int read_count;
|
||||||
|
@ -1719,7 +1719,7 @@ static int v9fs_xattr_read(V9fsState *s, V9fsPDU *pdu,
|
||||||
}
|
}
|
||||||
|
|
||||||
static int v9fs_do_readdir_with_stat(V9fsPDU *pdu,
|
static int v9fs_do_readdir_with_stat(V9fsPDU *pdu,
|
||||||
V9fsFidState *fidp, int32_t max_count)
|
V9fsFidState *fidp, uint32_t max_count)
|
||||||
{
|
{
|
||||||
V9fsPath path;
|
V9fsPath path;
|
||||||
V9fsStat v9stat;
|
V9fsStat v9stat;
|
||||||
|
@ -1814,11 +1814,11 @@ static void v9fs_init_qiov_from_pdu(QEMUIOVector *qiov, V9fsPDU *pdu,
|
||||||
static void v9fs_read(void *opaque)
|
static void v9fs_read(void *opaque)
|
||||||
{
|
{
|
||||||
int32_t fid;
|
int32_t fid;
|
||||||
int64_t off;
|
uint64_t off;
|
||||||
ssize_t err = 0;
|
ssize_t err = 0;
|
||||||
int32_t count = 0;
|
int32_t count = 0;
|
||||||
size_t offset = 7;
|
size_t offset = 7;
|
||||||
int32_t max_count;
|
uint32_t max_count;
|
||||||
V9fsFidState *fidp;
|
V9fsFidState *fidp;
|
||||||
V9fsPDU *pdu = opaque;
|
V9fsPDU *pdu = opaque;
|
||||||
V9fsState *s = pdu->s;
|
V9fsState *s = pdu->s;
|
||||||
|
@ -1962,8 +1962,9 @@ static void v9fs_readdir(void *opaque)
|
||||||
V9fsFidState *fidp;
|
V9fsFidState *fidp;
|
||||||
ssize_t retval = 0;
|
ssize_t retval = 0;
|
||||||
size_t offset = 7;
|
size_t offset = 7;
|
||||||
int64_t initial_offset;
|
uint64_t initial_offset;
|
||||||
int32_t count, max_count;
|
int32_t count;
|
||||||
|
uint32_t max_count;
|
||||||
V9fsPDU *pdu = opaque;
|
V9fsPDU *pdu = opaque;
|
||||||
V9fsState *s = pdu->s;
|
V9fsState *s = pdu->s;
|
||||||
|
|
||||||
|
@ -2001,7 +2002,7 @@ out_nofid:
|
||||||
}
|
}
|
||||||
|
|
||||||
static int v9fs_xattr_write(V9fsState *s, V9fsPDU *pdu, V9fsFidState *fidp,
|
static int v9fs_xattr_write(V9fsState *s, V9fsPDU *pdu, V9fsFidState *fidp,
|
||||||
int64_t off, int32_t count,
|
uint64_t off, uint32_t count,
|
||||||
struct iovec *sg, int cnt)
|
struct iovec *sg, int cnt)
|
||||||
{
|
{
|
||||||
int i, to_copy;
|
int i, to_copy;
|
||||||
|
@ -2048,8 +2049,8 @@ static void v9fs_write(void *opaque)
|
||||||
{
|
{
|
||||||
ssize_t err;
|
ssize_t err;
|
||||||
int32_t fid;
|
int32_t fid;
|
||||||
int64_t off;
|
uint64_t off;
|
||||||
int32_t count;
|
uint32_t count;
|
||||||
int32_t len = 0;
|
int32_t len = 0;
|
||||||
int32_t total = 0;
|
int32_t total = 0;
|
||||||
size_t offset = 7;
|
size_t offset = 7;
|
||||||
|
|
|
@ -156,7 +156,7 @@ typedef struct V9fsFidState V9fsFidState;
|
||||||
|
|
||||||
typedef struct V9fsString
|
typedef struct V9fsString
|
||||||
{
|
{
|
||||||
int16_t size;
|
uint16_t size;
|
||||||
char *data;
|
char *data;
|
||||||
} V9fsString;
|
} V9fsString;
|
||||||
|
|
||||||
|
|
|
@ -578,11 +578,11 @@ v9fs_lcreate(uint16_t tag, uint8_t id, int32_t dfid, int32_t flags, int32_t mode
|
||||||
v9fs_lcreate_return(uint16_t tag, uint8_t id, int8_t type, int32_t version, int64_t path, int32_t iounit) "tag %d id %d qid={type %d version %d path %"PRId64"} iounit %d"
|
v9fs_lcreate_return(uint16_t tag, uint8_t id, int8_t type, int32_t version, int64_t path, int32_t iounit) "tag %d id %d qid={type %d version %d path %"PRId64"} iounit %d"
|
||||||
v9fs_fsync(uint16_t tag, uint8_t id, int32_t fid, int datasync) "tag %d id %d fid %d datasync %d"
|
v9fs_fsync(uint16_t tag, uint8_t id, int32_t fid, int datasync) "tag %d id %d fid %d datasync %d"
|
||||||
v9fs_clunk(uint16_t tag, uint8_t id, int32_t fid) "tag %d id %d fid %d"
|
v9fs_clunk(uint16_t tag, uint8_t id, int32_t fid) "tag %d id %d fid %d"
|
||||||
v9fs_read(uint16_t tag, uint8_t id, int32_t fid, int64_t off, int32_t max_count) "tag %d id %d fid %d off %"PRId64" max_count %d"
|
v9fs_read(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t max_count) "tag %d id %d fid %d off %"PRIu64" max_count %u"
|
||||||
v9fs_read_return(uint16_t tag, uint8_t id, int32_t count, ssize_t err) "tag %d id %d count %d err %zd"
|
v9fs_read_return(uint16_t tag, uint8_t id, int32_t count, ssize_t err) "tag %d id %d count %d err %zd"
|
||||||
v9fs_readdir(uint16_t tag, uint8_t id, int32_t fid, int64_t offset, int32_t max_count) "tag %d id %d fid %d offset %"PRId64" max_count %d"
|
v9fs_readdir(uint16_t tag, uint8_t id, int32_t fid, uint64_t offset, uint32_t max_count) "tag %d id %d fid %d offset %"PRIu64" max_count %u"
|
||||||
v9fs_readdir_return(uint16_t tag, uint8_t id, int32_t count, ssize_t retval) "tag %d id %d count %d retval %zd"
|
v9fs_readdir_return(uint16_t tag, uint8_t id, uint32_t count, ssize_t retval) "tag %d id %d count %u retval %zd"
|
||||||
v9fs_write(uint16_t tag, uint8_t id, int32_t fid, int64_t off, int32_t count, int cnt) "tag %d id %d fid %d off %"PRId64" count %d cnt %d"
|
v9fs_write(uint16_t tag, uint8_t id, int32_t fid, uint64_t off, uint32_t count, int cnt) "tag %d id %d fid %d off %"PRIu64" count %u cnt %d"
|
||||||
v9fs_write_return(uint16_t tag, uint8_t id, int32_t total, ssize_t err) "tag %d id %d total %d err %zd"
|
v9fs_write_return(uint16_t tag, uint8_t id, int32_t total, ssize_t err) "tag %d id %d total %d err %zd"
|
||||||
v9fs_create(uint16_t tag, uint8_t id, int32_t fid, char* name, int32_t perm, int8_t mode) "tag %d id %d fid %d name %s perm %d mode %d"
|
v9fs_create(uint16_t tag, uint8_t id, int32_t fid, char* name, int32_t perm, int8_t mode) "tag %d id %d fid %d name %s perm %d mode %d"
|
||||||
v9fs_create_return(uint16_t tag, uint8_t id, int8_t type, int32_t version, int64_t path, int iounit) "tag %d id %d qid={type %d version %d path %"PRId64"} iounit %d"
|
v9fs_create_return(uint16_t tag, uint8_t id, int8_t type, int32_t version, int64_t path, int iounit) "tag %d id %d qid={type %d version %d path %"PRId64"} iounit %d"
|
||||||
|
|
Loading…
Reference in a new issue