Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1074764rbb; Sun, 25 Feb 2024 18:55:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXwf5Ar3vc3PT2iD1zEkx8hK6rj/tX5ouH/exXg0J9K0LRnuV6xPULJ2DXiVhPOqBcTg8yjyK5r+g15VP2fggL7S1AklT2l8bHvaV/pIw== X-Google-Smtp-Source: AGHT+IGsgkH7Mb+00XTkyuxLQD3OGd/J2jbXqVfkDRa3FEn8vTkzEKB0GS7/nq9nJvGcvcCnqlrI X-Received: by 2002:a25:2f0f:0:b0:dcc:7131:ad4a with SMTP id v15-20020a252f0f000000b00dcc7131ad4amr2494283ybv.62.1708916132042; Sun, 25 Feb 2024 18:55:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708916132; cv=pass; d=google.com; s=arc-20160816; b=fwrAP3srph58MkMZVmvqRlhU+dDf+l1lAo2Z306TBX+thEBYG1JmnfXCGTXL0a649Q omdPqvI59BO+uAa102hmv11FXO5gR/UrQIxNFQ2M20CPxsxPvgK5KmpogsbjDtsBP96D 80F0xx3GDJIqcuW5Hq4+KbVSm+f9Ot2EyRE6yHV9g8U6Z2JKSt6OKp2gUOyAZ2tzxE6b joo0Ua96EE6aKXBZtc08T2OoQJ9Oz/NhWYxVYNOc9AmkucDLnyhYrivxNarGpQHApyEU kI+4MsYKaCQ1I1j0NVhEsG5/NnDDkEKD+VGgK5wYzrq02o7hsQaWbiL0ypWmj6RehMpL 9NJw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=FbSrKCDBq9zPoxiynEOygnq4yyaVlv94VMdWo2CBwSY=; fh=qkBMdhKYQT/JivCacX1EpXKhUDxgEFNKOXYVocz/SoQ=; b=mkPLl89jCBT3UmFH5iEtpIjoQX3q4whhUyG39ZDa5xfnw8zQkMI44JHCpn5w20vbky Bn98xR0Zi+JC5KJimyZfiVM9Ml9VgXuHqnA7IRnjyPvsEUN+qt13ouKXbURGxq+dQ89Q XhQoXgWZuQicCSDA5SMATUcr9LB2q1k2quHLXEFyqUqJND166MefmLpKDqsNbfh1XHRP jUf4PA4VlO6rRGTMiX6hTBbmWMW+hC7e+kGXcOJaVlHkzUUUtxJR5DsawPr1qR+OifIZ T+2I/kUOPZehhVLhLd0If0iZ9AeWsO7/NwFg9ZwKRhG9aFNtTGeKQmUDsaheSN34E0zD kX4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-80430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80430-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id e15-20020ac85dcf000000b0042e6d8bfe09si4537868qtx.85.2024.02.25.18.55.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 18:55:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-80430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80430-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id A330C1C216DE for ; Mon, 26 Feb 2024 02:55:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A6161B27D; Mon, 26 Feb 2024 02:55:12 +0000 (UTC) Received: from mailgw.kylinos.cn (mailgw.kylinos.cn [124.126.103.232]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15D911AAB1; Mon, 26 Feb 2024 02:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=124.126.103.232 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708916111; cv=none; b=MtdUP33kehb6fs4SRPyAD3mEp2U6yAgzp63ozM6+LdBJuTYtzplPuIdLNiYpb7g8DjAP/kzfXOuFP3DoAnJ1jbfpJobBs5jits7tR25S9dFy2B+aPje+9UnS+IQ4m7TjFSHr5uNGa8NqKMzRHM5rlt48KPQB4w7NIryuMLgmAWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708916111; c=relaxed/simple; bh=tbnDJSmrkota+0h34QQWBs6KGLOigNzHb9e9sHBP7nM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=A2x1eiuktn/Q0zyALx3Hsl6KOAGPglJIRrGej9c9vumXAoqXey6YGFR8opRaZJbmhtoW1XeTS1KA55W7009nAaLo+dlGASbDjxCPc7ilTi4RWvnpiAG2Peq0D1fIz/rTLZi3y9/Pde1IWIVxOTF0yV7sVja6gVh3oD3pmyH3nzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn; spf=pass smtp.mailfrom=kylinos.cn; arc=none smtp.client-ip=124.126.103.232 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylinos.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylinos.cn X-UUID: cd6f21063eea4d909cd0db4c58a0fafd-20240226 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:af9dbba1-f6a7-4adc-a51c-1807b965315c,IP:10, URL:0,TC:0,Content:0,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:20 X-CID-INFO: VERSION:1.1.37,REQID:af9dbba1-f6a7-4adc-a51c-1807b965315c,IP:10,UR L:0,TC:0,Content:0,EDM:25,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:20 X-CID-META: VersionHash:6f543d0,CLOUDID:79f44d84-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:240226102255YBXUWZHW,BulkQuantity:0,Recheck:0,SF:24|17|19|44|66|38|1 02,TC:nil,Content:0,EDM:5,IP:-2,URL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC: nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI X-UUID: cd6f21063eea4d909cd0db4c58a0fafd-20240226 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 1075076401; Mon, 26 Feb 2024 10:22:54 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id 0EF0FE000EBC; Mon, 26 Feb 2024 10:22:54 +0800 (CST) X-ns-mid: postfix-65DBF5FD-853442222 Received: from kernel.. (unknown [172.20.15.254]) by mail.kylinos.cn (NSMail) with ESMTPA id B2D6EE000EBC; Mon, 26 Feb 2024 10:22:52 +0800 (CST) From: Kunwu Chan To: inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kunwu Chan Subject: [PATCH] drm/exynos: use KMEM_CACHE() to create g2d_runqueue_node cache Date: Mon, 26 Feb 2024 10:22:51 +0800 Message-Id: <20240226022251.1781070-1-chentao@kylinos.cn> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Use the KMEM_CACHE() macro instead of kmem_cache_create() to simplify the creation of SLAB caches when the default values are used. Signed-off-by: Kunwu Chan --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/ex= ynos/exynos_drm_g2d.c index f3138423612e..a5818ed6a6f7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -1456,8 +1456,7 @@ static int g2d_probe(struct platform_device *pdev) if (!g2d) return -ENOMEM; =20 - g2d->runqueue_slab =3D kmem_cache_create("g2d_runqueue_slab", - sizeof(struct g2d_runqueue_node), 0, 0, NULL); + g2d->runqueue_slab =3D KMEM_CACHE(g2d_runqueue_node, 0); if (!g2d->runqueue_slab) return -ENOMEM; =20 --=20 2.39.2