提交 7d4de89f 编写于 作者: M matt mooney 提交者: Greg Kroah-Hartman

staging: usbip: stub_main.c: use KMEM_CACHE macro

Change kmem_cache_create() to the KMEM_CACHE() macro.
Signed-off-by: Nmatt mooney <mfm@muteddisk.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 27ed5da0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册