Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251898
b: refs/heads/master
c: 71c29bd
h: refs/heads/master
v: v3
  • Loading branch information
Roland Dreier committed May 23, 2011
1 parent 08416b5 commit 9bea1e4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 737b94eb41cb99250ccce9148ca411b55d4dc96a
refs/heads/master: 71c29bd5c23559c9cabcca3bfb3152ecc5efcd75
8 changes: 8 additions & 0 deletions trunk/drivers/infiniband/core/uverbs_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,12 @@ static void ib_uverbs_remove_one(struct ib_device *device)
kfree(uverbs_dev);
}

static char *uverbs_devnode(struct device *dev, mode_t *mode)
{
*mode = 0666;
return kasprintf(GFP_KERNEL, "infiniband/%s", dev_name(dev));
}

static int __init ib_uverbs_init(void)
{
int ret;
Expand All @@ -842,6 +848,8 @@ static int __init ib_uverbs_init(void)
goto out_chrdev;
}

uverbs_class->devnode = uverbs_devnode;

ret = class_create_file(uverbs_class, &class_attr_abi_version.attr);
if (ret) {
printk(KERN_ERR "user_verbs: couldn't create abi_version attribute\n");
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/infiniband/ulp/srp/ib_srp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ static void srp_process_aer_req(struct srp_target_port *target,
static void srp_handle_recv(struct srp_target_port *target, struct ib_wc *wc)
{
struct ib_device *dev = target->srp_host->srp_dev->dev;
struct srp_iu *iu = (struct srp_iu *) (uintptr_t) wc->wr_id;
struct srp_iu *iu = (struct srp_iu *) wc->wr_id;
int res;
u8 opcode;

Expand Down Expand Up @@ -1231,7 +1231,7 @@ static void srp_send_completion(struct ib_cq *cq, void *target_ptr)
break;
}

iu = (struct srp_iu *) (uintptr_t) wc.wr_id;
iu = (struct srp_iu *) wc.wr_id;
list_add(&iu->list, &target->free_tx);
}
}
Expand Down

0 comments on commit 9bea1e4

Please sign in to comment.