Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3351297lqp; Tue, 26 Mar 2024 07:04:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXMrX/rSLANTuAkYNeu1fP5meXUlN/aD46zGjUrRP80a7tWmpdcbheMle7Q9f+2SXnMOlOotZAXN3HfspJG2fOpc9osKfMkvfXPqPpv8Q== X-Google-Smtp-Source: AGHT+IFnu5zJ7ouwlNhW2pDAAxYIw6tnQGEH4LoCe3iMTQlqvIzNnBBpm3MpcZGcQhFsN7mi5/um X-Received: by 2002:a05:6a00:3d49:b0:6e8:f8a9:490e with SMTP id lp9-20020a056a003d4900b006e8f8a9490emr1507152pfb.5.1711461859154; Tue, 26 Mar 2024 07:04:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711461859; cv=pass; d=google.com; s=arc-20160816; b=OvIDs6yYlUtNt1OJqX17OPl5OUfPa50CQYm2sRbQQrlKjf6Unlsnnsk3Kqoi0r7uN7 ukoUWaMwkkpUqV+GPMforIk3Y/fJh0MaXb3kapjU+imYWnnX9WJbnDv1Aa8Gq8QgW1+Y 1tRCsJVoGUVjbEVwT5rqr3gkvTW8glSoAROzuhC4NCX4mMJWuSNcQ89/5CUqIwTAExLk 9SqAsNrfcTvs4BLqM7V/UFvqqGXueLTqqyypAEqlpModE+eU7J+rNzg9hJRTMh5kFAhs i694AnfoYjJHnIyNoX3dP7jhg99LAgK3EC446E4GMKNeQW6meFp5GwO8mdT9XafiPMlb 7Ugg== 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:feedback-id:references :in-reply-to:message-id:subject:cc:from:to:date:dkim-signature; bh=I5Jc+r590Poy8psRxAt4x4kjnJbKbgVKmyw8FzFeADg=; fh=A/Ua4Q351kuGQC3NJfXQlutNC8uk5uNbUXW4Yyk8Cas=; b=dEpT0fjXUtkrzBcKlMhq4xmWC6zgSN1mYsEl4r/gIOEYKeNrrLOw7oNflWc5CUkGit KPnJdiqVvbH0I1LhOfJa+zzOmCgwoA4s8A8/m5DYMAMlv6KbrLQ1b861p/T2AqbmnEV0 LzBysXJSB49y7ajIMPrTSJylqwRsBoQz6GSXK9GKqj0kKzwd9iwLzDQHvdNL94r+4/vz 7E7Ybdw8huiKNwBp/7RR9sI4IIp1AtTd78SPwHw7jyihRTplfPQpijJSVUQU8H2yC2Zj 6Bn6IohNM/dVJc8FpEyvITnx3BuY30siLalOHi1ubK2MuhsXm0h71sWg4Ra4tJ07fhYS FLQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=XixxKFIn; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-119114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s7-20020a625e07000000b006e6ca7264b0si569482pfb.42.2024.03.26.07.04.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 07:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=XixxKFIn; arc=pass (i=1 spf=pass spfdomain=proton.me dkim=pass dkdomain=proton.me dmarc=pass fromdomain=proton.me); spf=pass (google.com: domain of linux-kernel+bounces-119114-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119114-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=proton.me 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E0092A43B9 for ; Tue, 26 Mar 2024 14:03:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8104C7EF0F; Tue, 26 Mar 2024 14:01:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="XixxKFIn" Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) (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 BACB8763E2 for ; Tue, 26 Mar 2024 14:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461718; cv=none; b=Pl3Pb/kgZ9fWJC4QxdvpPAuSvIQEQ08ZRpOgnSc1jmbQ58Ix4CStkZ3JE2iuPPQvxQlD+Lx+dkKlF/cK+y5+2djy1zCvSbg6q8SaWl2z3zhFHnMcX5dPlMojL2DhCkEtKIjaox7zz334Vlg50TyMszkHHKGNFwURN2uyi5al2as= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461718; c=relaxed/simple; bh=V3LtLcoh7RZfxBzKmMQISZYQAPflpMNXZ4QLRQ6Jozk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=FG8LNKaW7tveDT0Oa/7mzkH3iqbII3M5eRCfevVHLelnJqF+p+fILxb5CXTC6C4itdmSlU5YQLNxloEkNbU052lA2hvUq5uciIrvo6wImapAf/ck8mr8nvcQA+inA/E7XmDWh7+7rbR7/EXEc+a7Uc+KhG0SQ41lwwn86OmuAVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=XixxKFIn; arc=none smtp.client-ip=185.70.43.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1711461708; x=1711720908; bh=I5Jc+r590Poy8psRxAt4x4kjnJbKbgVKmyw8FzFeADg=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=XixxKFInoIckjSdzAKvOCMmqM0VHzgCFvJRXt1UxcJ8KyYEaZM+ihqXSynJ3mK6Fc hVc7duyrw7Rrnkd+3UfuS8zWOi20v7tnr8zdWm2KKbVCa3RHpZX/fhRDsLKzu91cUX vIZvB2pYaMwP5gKXDmcMrlSTJmhIiO8N7zoTpgo4HXacBQluTA4+1yRgPqm0pL9o+Y eV5mfs69tBqtKSmQvsdKXq9ekRrYmsOrtNJYuwBaJGMomrfEidX5+IV5x4Li+8O9KC fFdqaYpUsjoDr13LWcAjzvZIfYECtRS1Uo2nCYqHkrZ4x7khPo+DTjpr48ACObIP4T xH4lPg37rLpjg== Date: Tue, 26 Mar 2024 14:01:41 +0000 To: Wedson Almeida Filho From: Benno Lossin Cc: rust-for-linux@vger.kernel.org, Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, Wedson Almeida Filho Subject: Re: [PATCH 08/10] rust: sync: update `Arc` and `UniqueArc` to take allocation flags Message-ID: In-Reply-To: <20240325195418.166013-9-wedsonaf@gmail.com> References: <20240325195418.166013-1-wedsonaf@gmail.com> <20240325195418.166013-9-wedsonaf@gmail.com> Feedback-ID: 71780778:user:proton Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 25.03.24 20:54, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho >=20 > We also remove the `try_` prefix to align with how `Box` and `Vec` are > providing methods now. >=20 > `init` is temporarily updated with uses of GFP_KERNEL. These will be > updated in a subsequent patch to take flags as well. >=20 > Signed-off-by: Wedson Almeida Filho > --- > rust/kernel/init.rs | 4 ++-- > rust/kernel/sync/arc.rs | 28 ++++++++++++++-------------- > samples/rust/rust_print.rs | 4 ++-- > 3 files changed, 18 insertions(+), 18 deletions(-) Reviewed-by: Benno Lossin --=20 Cheers, Benno