atom feed22 messages in org.kernel.vger.kernel-janitors[PATCH 06/12] staging: usbip: stub_ma...
FromSent OnAttachments
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:36 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
matt mooneyMay 19, 2011 9:37 pm 
Greg KHMay 19, 2011 9:59 pm 
matt mooneyMay 19, 2011 10:25 pm 
walter harmsMay 20, 2011 1:37 am 
walter harmsMay 20, 2011 2:08 am 
Greg KHMay 20, 2011 5:53 am 
matt mooneyMay 20, 2011 11:42 am 
matt mooneyMay 20, 2011 11:45 am 
matt mooneyMay 20, 2011 11:51 am 
walter harmsMay 21, 2011 4:45 am 
Subject:[PATCH 06/12] staging: usbip: stub_main.c: use KMEM_CACHE macro
From:matt mooney (mf@muteddisk.com)
Date:May 19, 2011 9:37:00 pm
List:org.kernel.vger.kernel-janitors

Change kmem_cache_create() to the KMEM_CACHE() macro.

Signed-off-by: matt mooney <mf@muteddisk.com>

--- drivers/staging/usbip/stub_main.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/usbip/stub_main.c
b/drivers/staging/usbip/stub_main.c index 53d6977..45a0f5d 100644 --- a/drivers/staging/usbip/stub_main.c +++ b/drivers/staging/usbip/stub_main.c @@ -249,9 +249,8 @@ static int __init usbip_host_init(void) { int ret;

- stub_priv_cache = kmem_cache_create("stub_priv", - sizeof(struct stub_priv), 0, - SLAB_HWCACHE_ALIGN, NULL); + stub_priv_cache = KMEM_CACHE(stub_priv, SLAB_HWCACHE_ALIGN); + if (!stub_priv_cache) { pr_err("kmem_cache_create failed\n"); return -ENOMEM;