mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 21:37:58 +07:00
staging: usbip: stub_main.c: use KMEM_CACHE macro
Change kmem_cache_create() to the KMEM_CACHE() macro. Signed-off-by: matt mooney <mfm@muteddisk.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
27ed5da0b6
commit
7d4de89f19
@ -249,9 +249,8 @@ static int __init usbip_host_init(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
stub_priv_cache = kmem_cache_create("stub_priv",
|
stub_priv_cache = KMEM_CACHE(stub_priv, SLAB_HWCACHE_ALIGN);
|
||||||
sizeof(struct stub_priv), 0,
|
|
||||||
SLAB_HWCACHE_ALIGN, NULL);
|
|
||||||
if (!stub_priv_cache) {
|
if (!stub_priv_cache) {
|
||||||
pr_err("kmem_cache_create failed\n");
|
pr_err("kmem_cache_create failed\n");
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user