Ignore:
Timestamp:
Dec 21, 2018, 8:09:53 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
956d76cc
Parents:
6073c71d
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/18 20:09:53)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/27/18 08:00:59)
Message:

drvmgr: Improve LP64 compatibility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdrvmgr/drvmgr_for_each_dev.c

    r6073c71d ra7e8996  
    1414
    1515/* Traverse device tree breadth-first. Supports up to 31 buses */
    16 static int drvmgr_for_each_dev_breadth(
    17         int (*func)(struct drvmgr_dev *dev, void *arg),
     16static intptr_t drvmgr_for_each_dev_breadth(
     17        intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
    1818        void *arg
    1919        )
     
    4444
    4545/* Traverse device tree depth-first. */
    46 static int drvmgr_for_each_dev_depth(
    47         int (*func)(struct drvmgr_dev *dev, void *arg),
     46static intptr_t drvmgr_for_each_dev_depth(
     47        intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
    4848        void *arg
    4949        )
     
    7979
    8080/* Traverse device tree depth-first or breadth-first */
    81 int drvmgr_for_each_dev(
    82         int (*func)(struct drvmgr_dev *dev, void *arg),
     81intptr_t drvmgr_for_each_dev(
     82        intptr_t (*func)(struct drvmgr_dev *dev, void *arg),
    8383        void *arg,
    8484        int options
    8585        )
    8686{
    87         int ret;
     87        intptr_t ret;
    8888
    8989        DRVMGR_LOCK_READ();
Note: See TracChangeset for help on using the changeset viewer.