summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-04-10 22:17:31 +1000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-04-12 23:20:28 +0200
commit105e1d48e0cfda76fe560d30ef54b16cfb80e828 (patch)
tree678abb75caf36ee7410bf59f7a46434464d726d1
parentd571e6c748b4db6c73f4036a2951a0f6cbe55138 (diff)
pci-ops.c: Use compatible pointers
-rw-r--r--pci-arbiter/pci-ops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pci-arbiter/pci-ops.c b/pci-arbiter/pci-ops.c
index 19aee71d..3346e55a 100644
--- a/pci-arbiter/pci-ops.c
+++ b/pci-arbiter/pci-ops.c
@@ -85,7 +85,7 @@ S_pci_conf_read (struct protid * master, int reg, char **data,
error_t err;
pthread_mutex_t *lock;
struct pcifs_dirent *e;
- size_t actual_len;
+ pciaddr_t actual_len;
if (!master)
return EOPNOTSUPP;
@@ -118,7 +118,7 @@ S_pci_conf_read (struct protid * master, int reg, char **data,
if (!err)
{
- *datalen = actual_len;
+ *datalen = (size_t)actual_len;
/* Update atime */
UPDATE_TIMES (e, TOUCH_ATIME);
}
@@ -134,7 +134,7 @@ S_pci_conf_write (struct protid * master, int reg, char *data, size_t datalen,
error_t err;
pthread_mutex_t *lock;
struct pcifs_dirent *e;
- size_t actual_len;
+ pciaddr_t actual_len;
if (!master)
return EOPNOTSUPP;
@@ -156,7 +156,7 @@ S_pci_conf_write (struct protid * master, int reg, char *data, size_t datalen,
if (!err)
{
- *amount = actual_len;
+ *amount = (size_t)actual_len;
/* Update mtime and ctime */
UPDATE_TIMES (e, TOUCH_MTIME | TOUCH_CTIME);
}