Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp97585rdb; Wed, 21 Feb 2024 19:06:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV7kdF9sbVeIBN0BSKDiSG5E6uTEEHxKZU0QuV7GAZXoGJw8wNiMkICeUiRto2uEXREMNtLtSJLkSGoDueT4/gqqOTtk26Y2cUFinlKIA== X-Google-Smtp-Source: AGHT+IFRNkXNVEVA6HrOqBBlv+JL0Hw8Ni23YmobqNs4hp389OT2PXzJGmiRUsKmNtFJ/Fe9+ial X-Received: by 2002:a05:6122:218c:b0:4d1:34a1:c892 with SMTP id j12-20020a056122218c00b004d134a1c892mr4320325vkd.13.1708571202567; Wed, 21 Feb 2024 19:06:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708571202; cv=pass; d=google.com; s=arc-20160816; b=bMy1zVnjXMh3usXHsqE1CIaJtLFhGYmDaIbTZWrO19q4g6jnDU4xFqjJdeMlFgoW+C vwnlMt6WJr6zoKBLtstKg8hIAeJla48SeZ9lHQZJDu4XSsNJ8ZULdmxPrFxvZUUjEhvL DE2e9Cydrru7CZuN6k3TBRRw6pIk+meB1EuqyXLYGZRrZf5qnf8hxzoIyrDYrpO014Su 9gTuG0sSSfDWrKN0TkQiYIzdv1RNVRInBgfbFA5DvplkTZeYsb9cgaLh3g5RO7nDQ/MM NIE7nSaOhveCGEfJ51tubxw2CoFm0WeGJ97VJ49TVKxm/l3zlXvR85eLam0MkPuaRhER C1BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=PwWc0EpWn66ronb0b7CzE0epJ0HmQ7B3kDBGswfYCVk=; fh=fZIAzdMBkGfiLNyms7Yz4uQrN/eL9hVcck7pmntZ+UY=; b=ho3inln8okMqbeauynpdKz4Vc4doZ7fTVc8TSk28XDwbtvLhgLXoTucoEpj9S3Uw0R lx8gkMC9WmmuAA+nLmlpP+qoSUCOEotZxi+dnN58k28LGm9p2eqBgpL6DnKXVkyTNboc JAyXS18syNKOTS1EUtSE+jGv8GgA0WAlbon6JpkwsLyZWYZ9kugU2F3l2Z7dZxE+ICO+ lHSF36v6boPwe3eZusyJ8rMl84L/GiZpAZmqcfPb1UrIeIZOG/4WsSIBrGS+NIBprR3N VDsvr4HNUJHYZQGfWhpu1Y7EoNnm33GK5jpGpANWwwAXdTVl34l9z7eFR8vHO8dAFXQd XqTQ==; 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-75832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75832-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id o5-20020ad45c85000000b0068f52f40746si10381721qvh.440.2024.02.21.19.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 19:06:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kylinos.cn); spf=pass (google.com: domain of linux-kernel+bounces-75832-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75832-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 4FBD41C20E64 for ; Thu, 22 Feb 2024 03:06:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 85EEC18026; Thu, 22 Feb 2024 03:05:11 +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 CBB7D1799F for ; Thu, 22 Feb 2024 03:05:03 +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=1708571111; cv=none; b=lnWF/wPHyA21MbrJEY+sSsIDr3LMVswwABgdPwNp5l+ztiIvgAHe5AXOq3a65hgyQxug+sCWuCcn/aD6yzhuErz6I8YFK/JUJkS8VAWt+v5hLWMpb6ZM/EwElC62z0yVb0qMCVwstddsH10Dw5/m/gqpQm1B0p7BxIOF2hTO7O4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708571111; c=relaxed/simple; bh=VMRkbLEjqUTkcPnLk3R6EX0JT8iU2w6INN6blLRwMh0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YbiDrF4ODRLfPnuM90L0a3iL21QhUSJNkHw+my6/8IqyiQ8Upx4u7/+m5SQnWVV2RYWUPSqAdbM2ZgeXFYl13gpBa/lJ6WcvrQ4Cpt4oXNDVDiOVZ4Bg9oZlSnYFXMKkLGq1ABy2woznMHTH3GufDJWWpDHfouGMZFMQ6et3RNE= 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: dec48d24f8744cd390939199d634908f-20240222 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:2a7a28f5-87e9-4e39-82bc-737083c6beef,IP:10, URL:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:-5 X-CID-INFO: VERSION:1.1.35,REQID:2a7a28f5-87e9-4e39-82bc-737083c6beef,IP:10,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:-15,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:5d391d7,CLOUDID:65d82b84-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:24022208111331ZIVHI4,BulkQuantity:5,Recheck:0,SF:64|66|24|17|19|44|1 02,TC:nil,Content:0,EDM:-3,IP:-2,URL:11|1,File:nil,Bulk:40,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_FAS,TF_CID_SPAM_FSD,TF_CID_SPAM_FSI,TF_CID_SPAM_ULN, TF_CID_SPAM_SNR X-UUID: dec48d24f8744cd390939199d634908f-20240222 Received: from mail.kylinos.cn [(39.156.73.10)] by mailgw (envelope-from ) (Generic MTA) with ESMTP id 204878516; Thu, 22 Feb 2024 11:04:57 +0800 Received: from mail.kylinos.cn (localhost [127.0.0.1]) by mail.kylinos.cn (NSMail) with SMTP id A2911E000EBC; Thu, 22 Feb 2024 11:04:57 +0800 (CST) X-ns-mid: postfix-65D6B9D9-567320297 Received: from [172.20.15.254] (unknown [172.20.15.254]) by mail.kylinos.cn (NSMail) with ESMTPA id 72739E000EBC; Thu, 22 Feb 2024 11:04:56 +0800 (CST) Message-ID: <0f51c6ba-a6c0-4fbf-9b00-21cea6d59ca9@kylinos.cn> Date: Thu, 22 Feb 2024 11:04:55 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] cred: Use KMEM_CACHE instead of kmem_cache_create To: Paul Moore Cc: axboe@kernel.dk, elena.reshetova@intel.com, linux-kernel@vger.kernel.org References: <20240130094037.76895-1-chentao@kylinos.cn> Content-Language: en-US From: Kunwu Chan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Thanks for your reply. On 2024/2/22 08:10, Paul Moore wrote: > On Thu, Feb 15, 2024 at 10:54=E2=80=AFPM Paul Moore wrote: >> On Tue, Jan 30, 2024 at 4:40=E2=80=AFAM Kunwu Chan wrote: >>> >>> commit 0a31bd5f2bbb ("KMEM_CACHE(): simplify slab cache creation") >>> introduces a new macro. >>> Use the new KMEM_CACHE() macro instead of direct kmem_cache_create >>> to simplify the creation of SLAB caches. >>> >>> Signed-off-by: Kunwu Chan >>> --- >>> kernel/cred.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> This seems reasonable to me, unless I see any objections I can pull >> this via the LSM tree next week. >=20 > Actually, never mind, the original posting has some non-ASCII junk in > the patch and I'm not able to import it cleanly. Thanks for reply. I checked the patch with the checkpatch.pl script and applied it to=20 another machine to compile and found no issues. Seems ok to me, what should I do next to clean up that non-ASCII junk. And i use :perl -ne 'print if /[^[:ascii:]]/'=20 0001-cred-Use-KMEM_CACHE-instead-of-kmem_cache_create.patch seems ok too. >=20 --=20 Thanks, Kunwu