diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-12-06 23:33:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:24 -0500 |
commit | e94b1766097d53e6f3ccfb36c8baa562ffeda3fc (patch) | |
tree | 93fa0a8ab84976d4e89c50768ca8b8878d642a0d /drivers/usb/misc | |
parent | 54e6ecb23951b195d02433a741c7f7cb0b796c78 (diff) |
[PATCH] slab: remove SLAB_KERNEL
SLAB_KERNEL is an alias of GFP_KERNEL.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/usb/misc')
-rw-r--r-- | drivers/usb/misc/usbtest.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index ea04dccdc651..fb321864a92d 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
@@ -213,7 +213,7 @@ static struct urb *simple_alloc_urb ( | |||
213 | 213 | ||
214 | if (bytes < 0) | 214 | if (bytes < 0) |
215 | return NULL; | 215 | return NULL; |
216 | urb = usb_alloc_urb (0, SLAB_KERNEL); | 216 | urb = usb_alloc_urb (0, GFP_KERNEL); |
217 | if (!urb) | 217 | if (!urb) |
218 | return urb; | 218 | return urb; |
219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); | 219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); |
@@ -223,7 +223,7 @@ static struct urb *simple_alloc_urb ( | |||
223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; | 223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; |
224 | if (usb_pipein (pipe)) | 224 | if (usb_pipein (pipe)) |
225 | urb->transfer_flags |= URB_SHORT_NOT_OK; | 225 | urb->transfer_flags |= URB_SHORT_NOT_OK; |
226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
227 | &urb->transfer_dma); | 227 | &urb->transfer_dma); |
228 | if (!urb->transfer_buffer) { | 228 | if (!urb->transfer_buffer) { |
229 | usb_free_urb (urb); | 229 | usb_free_urb (urb); |
@@ -315,7 +315,7 @@ static int simple_io ( | |||
315 | init_completion (&completion); | 315 | init_completion (&completion); |
316 | if (usb_pipeout (urb->pipe)) | 316 | if (usb_pipeout (urb->pipe)) |
317 | simple_fill_buf (urb); | 317 | simple_fill_buf (urb); |
318 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) | 318 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) |
319 | break; | 319 | break; |
320 | 320 | ||
321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ | 321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ |
@@ -374,7 +374,7 @@ alloc_sglist (int nents, int max, int vary) | |||
374 | unsigned i; | 374 | unsigned i; |
375 | unsigned size = max; | 375 | unsigned size = max; |
376 | 376 | ||
377 | sg = kmalloc (nents * sizeof *sg, SLAB_KERNEL); | 377 | sg = kmalloc (nents * sizeof *sg, GFP_KERNEL); |
378 | if (!sg) | 378 | if (!sg) |
379 | return NULL; | 379 | return NULL; |
380 | 380 | ||
@@ -382,7 +382,7 @@ alloc_sglist (int nents, int max, int vary) | |||
382 | char *buf; | 382 | char *buf; |
383 | unsigned j; | 383 | unsigned j; |
384 | 384 | ||
385 | buf = kzalloc (size, SLAB_KERNEL); | 385 | buf = kzalloc (size, GFP_KERNEL); |
386 | if (!buf) { | 386 | if (!buf) { |
387 | free_sglist (sg, i); | 387 | free_sglist (sg, i); |
388 | return NULL; | 388 | return NULL; |
@@ -428,7 +428,7 @@ static int perform_sglist ( | |||
428 | (udev->speed == USB_SPEED_HIGH) | 428 | (udev->speed == USB_SPEED_HIGH) |
429 | ? (INTERRUPT_RATE << 3) | 429 | ? (INTERRUPT_RATE << 3) |
430 | : INTERRUPT_RATE, | 430 | : INTERRUPT_RATE, |
431 | sg, nents, 0, SLAB_KERNEL); | 431 | sg, nents, 0, GFP_KERNEL); |
432 | 432 | ||
433 | if (retval) | 433 | if (retval) |
434 | break; | 434 | break; |
@@ -855,7 +855,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
855 | * as with bulk/intr sglists, sglen is the queue depth; it also | 855 | * as with bulk/intr sglists, sglen is the queue depth; it also |
856 | * controls which subtests run (more tests than sglen) or rerun. | 856 | * controls which subtests run (more tests than sglen) or rerun. |
857 | */ | 857 | */ |
858 | urb = kcalloc(param->sglen, sizeof(struct urb *), SLAB_KERNEL); | 858 | urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); |
859 | if (!urb) | 859 | if (!urb) |
860 | return -ENOMEM; | 860 | return -ENOMEM; |
861 | for (i = 0; i < param->sglen; i++) { | 861 | for (i = 0; i < param->sglen; i++) { |
@@ -981,7 +981,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
981 | if (!u) | 981 | if (!u) |
982 | goto cleanup; | 982 | goto cleanup; |
983 | 983 | ||
984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, SLAB_KERNEL, | 984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, GFP_KERNEL, |
985 | &u->setup_dma); | 985 | &u->setup_dma); |
986 | if (!reqp) | 986 | if (!reqp) |
987 | goto cleanup; | 987 | goto cleanup; |
@@ -1067,7 +1067,7 @@ static int unlink1 (struct usbtest_dev *dev, int pipe, int size, int async) | |||
1067 | * FIXME want additional tests for when endpoint is STALLing | 1067 | * FIXME want additional tests for when endpoint is STALLing |
1068 | * due to errors, or is just NAKing requests. | 1068 | * due to errors, or is just NAKing requests. |
1069 | */ | 1069 | */ |
1070 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) { | 1070 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) { |
1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); | 1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); |
1072 | return retval; | 1072 | return retval; |
1073 | } | 1073 | } |
@@ -1251,7 +1251,7 @@ static int ctrl_out (struct usbtest_dev *dev, | |||
1251 | if (length < 1 || length > 0xffff || vary >= length) | 1251 | if (length < 1 || length > 0xffff || vary >= length) |
1252 | return -EINVAL; | 1252 | return -EINVAL; |
1253 | 1253 | ||
1254 | buf = kmalloc(length, SLAB_KERNEL); | 1254 | buf = kmalloc(length, GFP_KERNEL); |
1255 | if (!buf) | 1255 | if (!buf) |
1256 | return -ENOMEM; | 1256 | return -ENOMEM; |
1257 | 1257 | ||
@@ -1403,7 +1403,7 @@ static struct urb *iso_alloc_urb ( | |||
1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); | 1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); |
1404 | packets = (bytes + maxp - 1) / maxp; | 1404 | packets = (bytes + maxp - 1) / maxp; |
1405 | 1405 | ||
1406 | urb = usb_alloc_urb (packets, SLAB_KERNEL); | 1406 | urb = usb_alloc_urb (packets, GFP_KERNEL); |
1407 | if (!urb) | 1407 | if (!urb) |
1408 | return urb; | 1408 | return urb; |
1409 | urb->dev = udev; | 1409 | urb->dev = udev; |
@@ -1411,7 +1411,7 @@ static struct urb *iso_alloc_urb ( | |||
1411 | 1411 | ||
1412 | urb->number_of_packets = packets; | 1412 | urb->number_of_packets = packets; |
1413 | urb->transfer_buffer_length = bytes; | 1413 | urb->transfer_buffer_length = bytes; |
1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
1415 | &urb->transfer_dma); | 1415 | &urb->transfer_dma); |
1416 | if (!urb->transfer_buffer) { | 1416 | if (!urb->transfer_buffer) { |
1417 | usb_free_urb (urb); | 1417 | usb_free_urb (urb); |
@@ -1900,7 +1900,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
1900 | } | 1900 | } |
1901 | #endif | 1901 | #endif |
1902 | 1902 | ||
1903 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1903 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
1904 | if (!dev) | 1904 | if (!dev) |
1905 | return -ENOMEM; | 1905 | return -ENOMEM; |
1906 | info = (struct usbtest_info *) id->driver_info; | 1906 | info = (struct usbtest_info *) id->driver_info; |
@@ -1910,7 +1910,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
1910 | dev->intf = intf; | 1910 | dev->intf = intf; |
1911 | 1911 | ||
1912 | /* cacheline-aligned scratch for i/o */ | 1912 | /* cacheline-aligned scratch for i/o */ |
1913 | if ((dev->buf = kmalloc (TBUF_SIZE, SLAB_KERNEL)) == NULL) { | 1913 | if ((dev->buf = kmalloc (TBUF_SIZE, GFP_KERNEL)) == NULL) { |
1914 | kfree (dev); | 1914 | kfree (dev); |
1915 | return -ENOMEM; | 1915 | return -ENOMEM; |
1916 | } | 1916 | } |