Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/root/virt/virt.c

    rb7fd2a0 r2a37b9f  
    6262};
    6363
    64 static errno_t virt_dev_add(ddf_dev_t *dev);
    65 static errno_t virt_dev_remove(ddf_dev_t *dev);
    66 static errno_t virt_fun_online(ddf_fun_t *fun);
    67 static errno_t virt_fun_offline(ddf_fun_t *fun);
     64static int virt_dev_add(ddf_dev_t *dev);
     65static int virt_dev_remove(ddf_dev_t *dev);
     66static int virt_fun_online(ddf_fun_t *fun);
     67static int virt_fun_offline(ddf_fun_t *fun);
    6868
    6969static driver_ops_t virt_ops = {
     
    9898 * @param vdev          The virtual device
    9999 * @param vfun          Virtual function description
    100  * @return              EOK on success or an error code.
    101  */
    102 static errno_t virt_add_fun(virt_t *virt, virtual_function_t *vfun)
     100 * @return              EOK on success or negative error code.
     101 */
     102static int virt_add_fun(virt_t *virt, virtual_function_t *vfun)
    103103{
    104104        ddf_dev_t *vdev = virt->dev;
    105105        ddf_fun_t *fun;
    106106        virt_fun_t *rvfun;
    107         errno_t rc;
     107        int rc;
    108108
    109109        ddf_msg(LVL_DEBUG, "Registering function `%s' (match \"%s\")",
     
    148148}
    149149
    150 static errno_t virt_fun_remove(virt_fun_t *rvfun)
    151 {
    152         errno_t rc;
     150static int virt_fun_remove(virt_fun_t *rvfun)
     151{
     152        int rc;
    153153        const char *name = ddf_fun_get_name(rvfun->fun);
    154154
     
    172172
    173173
    174 static errno_t virt_dev_add(ddf_dev_t *dev)
     174static int virt_dev_add(ddf_dev_t *dev)
    175175{
    176176        virt_t *virt;
     
    205205}
    206206
    207 static errno_t virt_dev_remove(ddf_dev_t *dev)
     207static int virt_dev_remove(ddf_dev_t *dev)
    208208{
    209209        virt_t *virt = (virt_t *)ddf_dev_data_get(dev);
    210         errno_t rc;
     210        int rc;
    211211
    212212        while (!list_empty(&virt->functions)) {
     
    224224}
    225225
    226 static errno_t virt_fun_online(ddf_fun_t *fun)
     226static int virt_fun_online(ddf_fun_t *fun)
    227227{
    228228        ddf_msg(LVL_DEBUG, "virt_fun_online()");
     
    230230}
    231231
    232 static errno_t virt_fun_offline(ddf_fun_t *fun)
     232static int virt_fun_offline(ddf_fun_t *fun)
    233233{
    234234        ddf_msg(LVL_DEBUG, "virt_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.