summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-04-10 22:17:31 +1000
committerDamien Zammit <damien@zamaudio.com>2020-04-10 22:17:31 +1000
commitc7b3022d446d4b7b24bf17e47ab82e74609f3f79 (patch)
tree3e5c0cbb9ef730de2857924ab84fe374f18b9f67
parent995085eca1f178d9d2db6de04abb9cb5dea17e9b (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);
}