summaryrefslogtreecommitdiffstats
path: root/cpukit/libdrvmgr/drvmgr_for_each_dev.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-21 21:09:53 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-12-27 09:00:59 +0100
commita7e89962df998a0d6c98806595641399f670174b (patch)
tree7f0bc0320806cf44421d934b125006a36771d8e8 /cpukit/libdrvmgr/drvmgr_for_each_dev.c
parentdrvmgr: Enable build for riscv (diff)
downloadrtems-a7e89962df998a0d6c98806595641399f670174b.tar.bz2
drvmgr: Improve LP64 compatibility
Diffstat (limited to 'cpukit/libdrvmgr/drvmgr_for_each_dev.c')
-rw-r--r--cpukit/libdrvmgr/drvmgr_for_each_dev.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libdrvmgr/drvmgr_for_each_dev.c b/cpukit/libdrvmgr/drvmgr_for_each_dev.c
index a1c2899d91..288360bdbf 100644
--- a/cpukit/libdrvmgr/drvmgr_for_each_dev.c
+++ b/cpukit/libdrvmgr/drvmgr_for_each_dev.c
@@ -13,8 +13,8 @@
#include "drvmgr_internal.h"
/* Traverse device tree breadth-first. Supports up to 31 buses */
-static int drvmgr_for_each_dev_breadth(
- int (*func)(struct drvmgr_dev *dev, void *arg),
+static intptr_t drvmgr_for_each_dev_breadth(
+ intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
void *arg
)
{
@@ -43,8 +43,8 @@ static int drvmgr_for_each_dev_breadth(
}
/* Traverse device tree depth-first. */
-static int drvmgr_for_each_dev_depth(
- int (*func)(struct drvmgr_dev *dev, void *arg),
+static intptr_t drvmgr_for_each_dev_depth(
+ intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
void *arg
)
{
@@ -78,13 +78,13 @@ next_dev:
}
/* Traverse device tree depth-first or breadth-first */
-int drvmgr_for_each_dev(
- int (*func)(struct drvmgr_dev *dev, void *arg),
+intptr_t drvmgr_for_each_dev(
+ intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
void *arg,
int options
)
{
- int ret;
+ intptr_t ret;
DRVMGR_LOCK_READ();