diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-12-29 11:12:09 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-29 17:40:46 +0100 |
commit | 2c1299afbed9bc78e2d92565c334317622a68f01 (patch) | |
tree | 5c067c062391ca2a10be6daf8a0b3bcc7ea688ea /pci-arbiter | |
parent | 6b494f5e7599ece2ca981472d690db3df3133bde (diff) | |
download | hurd-2c1299afbed9bc78e2d92565c334317622a68f01.tar.gz hurd-2c1299afbed9bc78e2d92565c334317622a68f01.tar.bz2 hurd-2c1299afbed9bc78e2d92565c334317622a68f01.zip |
pfinet and pci-arbiter: update server handlers to return kern_return_t to fix -Werror=enum-int-mismatch warnings
Message-ID: <20231229161211.312389-1-flaviocruz@gmail.com>
Diffstat (limited to 'pci-arbiter')
-rw-r--r-- | pci-arbiter/pci-ops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pci-arbiter/pci-ops.c b/pci-arbiter/pci-ops.c index 2f9f5296..bbe43f32 100644 --- a/pci-arbiter/pci-ops.c +++ b/pci-arbiter/pci-ops.c @@ -78,7 +78,7 @@ calculate_ndevs (struct iouser *user) * * `*datalen' is updated. */ -error_t +kern_return_t S_pci_conf_read (struct protid * master, int reg, char **data, mach_msg_type_number_t * datalen, vm_size_t amount) { @@ -127,7 +127,7 @@ S_pci_conf_read (struct protid * master, int reg, char **data, } /* Write `datalen' bytes from `data'. `amount' is updated. */ -error_t +kern_return_t S_pci_conf_write (struct protid * master, int reg, const char *data, mach_msg_type_number_t datalen, vm_size_t * amount) { @@ -165,7 +165,7 @@ S_pci_conf_write (struct protid * master, int reg, const char *data, mach_msg_ty } /* Write in `amount' the number of devices allowed for the user. */ -error_t +kern_return_t S_pci_get_ndevs (struct protid * master, mach_msg_type_number_t * amount) { /* This RPC may only be addressed to the root node */ @@ -181,7 +181,7 @@ S_pci_get_ndevs (struct protid * master, mach_msg_type_number_t * amount) * Return in `data' the information about the available memory * regions in the given device. */ -error_t +kern_return_t S_pci_get_dev_regions (struct protid * master, char **data, mach_msg_type_number_t * datalen) { error_t err; @@ -232,7 +232,7 @@ S_pci_get_dev_regions (struct protid * master, char **data, mach_msg_type_number /* * Return in `data' the information about the expansion rom of the given device */ -error_t +kern_return_t S_pci_get_dev_rom (struct protid * master, char **data, mach_msg_type_number_t * datalen) { error_t err; |