Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248848
b: refs/heads/master
c: 304b0b5
h: refs/heads/master
v: v3
  • Loading branch information
Greg Dietsche authored and Greg Kroah-Hartman committed May 10, 2011
1 parent a4ad25f commit 3a4554f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 27362d467b3d9955f6ae1737002dac8c0f99fdc7
refs/heads/master: 304b0b572c66bcd89df13e856db16503609c1a24
6 changes: 3 additions & 3 deletions trunk/drivers/usb/misc/usbtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ static inline void simple_fill_buf(struct urb *urb)
}
}

static inline unsigned buffer_offset(void *buf)
static inline unsigned long buffer_offset(void *buf)
{
return (unsigned)buf & (ARCH_KMALLOC_MINALIGN - 1);
return (unsigned long)buf & (ARCH_KMALLOC_MINALIGN - 1);
}

static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb)
Expand Down Expand Up @@ -329,7 +329,7 @@ static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb)

static void simple_free_urb(struct urb *urb)
{
unsigned offset = buffer_offset(urb->transfer_buffer);
unsigned long offset = buffer_offset(urb->transfer_buffer);

if (urb->transfer_flags & URB_NO_TRANSFER_DMA_MAP)
usb_free_coherent(
Expand Down

0 comments on commit 3a4554f

Please sign in to comment.