Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp194782lqo; Wed, 27 Mar 2024 10:19:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXgIzbOLMuAmlSUMIDJzt35r1O6/gK4iJ8lKUkW8AyjbGhP+q8dQJwK3SU1IBFIcJjO01JxiQNtD0hZiUAS8Sl1gEvzKRRGm+2PKMjlQ== X-Google-Smtp-Source: AGHT+IFVFiNTl+/11hmpko/jwOGOnam1sVhsMaEuDUYPCWvoVxqvzVr2vxV5kBTILMEhqAnMXldO X-Received: by 2002:a17:90a:ff05:b0:2a0:33c2:997e with SMTP id ce5-20020a17090aff0500b002a033c2997emr251068pjb.41.1711559993589; Wed, 27 Mar 2024 10:19:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711559993; cv=pass; d=google.com; s=arc-20160816; b=0UTzszihz5rRwgUldLVIeike3K0jL80xo70ZR4YQDysWd5zT5bTTb20E4bYxkAedcg +y27YfJQ3jKBX3/KD4TwpnvJfSJJYp+6TWcBhn4VdBuZa4Q3G3v8sNc4Bk48y7wRhxwO bogByTUN/ExlCaaaDOTwUBcVoOPQH19shkI5VanpSTB55NS88xVq6eI4UaTYTUQZIJFI WoB8ae/MK70zEvMXFZ03QyVPHOQqD/x8itutXOTiPWfn1rfECBnJp52GyJ3Xnd6s9uX3 7bCoY1miOyjC1VfC6F+v5OoKd761EZALVWi1+yPuBYj66XEuwi02D4/1RMyOsL+bECpE Xj4g== 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=9yeamnTtlGMFiwRm9eAhzSWJ4rgq+GQc4yS+VkqJV54=; fh=ILXzPT3nbZXhvwVwwPDMnlxaRbCVxHwkAsH+01sTnAQ=; b=FV0mEtoJXCp1ZKC/vYOLeaJe/8QgVTgFV8Jvx/yBSjsUkZ3uy5iyYUVpakj13ZsiSW IgPeBuFOsknk7wYnVpf4tyeQilaU5aOcEJVfkMPeWdGg1ZnXtWruxsTklTKcT1qG09r1 NdrvWqBt8Oh5W9MfWM4lYPxzkMDwDzSFfFWUH5iRk7XWI/rvYay3KCDKQu7JFqcnOmNx K0mnDKcJhZ6eRwTfxMKY/RbXPpq4Vu+YNN4t1DWapl7LGna7kYL39UEJ8/RH6+ltp1X0 XLmQNYa5D6jca53Hb4u+7hxQ60bhXbruXnllP65qrIaXzgwwS5GvPCUCU9o/SvJdT5nZ mXuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=M7DiNKHh; 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-121685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121685-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v13-20020a17090ac90d00b002a08d3e5ad4si1891243pjt.114.2024.03.27.10.19.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 10:19:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@proton.me header.s=protonmail header.b=M7DiNKHh; 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-121685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121685-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 0D0DC29FCDC for ; Wed, 27 Mar 2024 17:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C266314E2D7; Wed, 27 Mar 2024 17:19:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="M7DiNKHh" Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) (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 754EF142E9E; Wed, 27 Mar 2024 17:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711559977; cv=none; b=i5TDR3f9NtP6YgSFIabLtJfDR3c336zRRmGSdQKztI5HsDwBacgc5rWDXzxCRPHcJ9BUbbfRuXLz3sLyV/KKpxzcLqXeFh3hwUFwRj3lRkbxOexBV4mpyrGOIMPOoVl+eqSzb0PcHx8T7XHZCCXYuYgqD6rMQ5bAy5NAHM9JtaU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711559977; c=relaxed/simple; bh=vW/fn6mQ+wneRUrK9ujviuMwS68Wl2uzvxICsdaE1/Y=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GsxOgvGwwwXm9u9jdtR0Z719utmjQ8tjTXHMtTJtjtldX+UJKwTnYdsQJrc4MzfqGVwCgmi2kC5H7P0v5A/EhCeSZFng4VB9CZ1bzq5F5PHfQOULBBcVvG7PZYrIuwchc1azVERSrRblQGRkwv7ydiicTf28dmk4Ot8xf0JOo7o= 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=M7DiNKHh; arc=none smtp.client-ip=185.70.43.22 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=1711559967; x=1711819167; bh=9yeamnTtlGMFiwRm9eAhzSWJ4rgq+GQc4yS+VkqJV54=; 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=M7DiNKHhRDwvW2mw5s/WA5ijTQbGWlC5wqJB6pWy0kXkZos+F4zQ/RHAhpaHN2byo V8/C3iKXwS2Jf3S0a6Q9va9Jus15nLvs/OUNkHr034LOQpLfjMD/7GyfbBn3h1B0qE pPJEXGMg1dbBiI/mwGO6dwjcnhjehnh5X4Y7PMkaV8qpzLxfCYnr87KUUMorhJzCBB 1vWG5U3xLGun5KcRaVYOzlRIhweImbtoJhwr7QSw7YyXpyCkVtuYaajubeQwvZY4kf 0/djXcZFYcwwg70mcwi1nwIV+dpYFL5rIW4k6oj5LLYWkGQTyGvC1+Hxk7xLfpOtih 81Gq3rsVlB+Og== Date: Wed, 27 Mar 2024 17:19:18 +0000 To: Wedson Almeida Filho , rust-for-linux@vger.kernel.org From: Benno Lossin Cc: 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 v2 10/10] rust: kernel: remove usage of `allocator_api` unstable feature Message-ID: <2b148cfb-0557-46de-b39f-f2506eb17afd@proton.me> In-Reply-To: <20240327023531.187880-11-wedsonaf@gmail.com> References: <20240327023531.187880-1-wedsonaf@gmail.com> <20240327023531.187880-11-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 27.03.24 03:35, Wedson Almeida Filho wrote: > From: Wedson Almeida Filho >=20 > With the adoption of `BoxExt` and `VecExt`, we don't need the functions > provided by this feature (namely the methods prefixed with `try_` and > different allocator per collection instance). >=20 > We do need `AllocError`, but we define our own as it is a trivial empty > struct. >=20 > Signed-off-by: Wedson Almeida Filho > --- > rust/kernel/alloc.rs | 4 ++++ > rust/kernel/alloc/box_ext.rs | 3 +-- > rust/kernel/alloc/vec_ext.rs | 4 ++-- > rust/kernel/error.rs | 4 ++-- > rust/kernel/init.rs | 3 +-- > rust/kernel/lib.rs | 1 - > rust/kernel/str.rs | 3 +-- > rust/kernel/sync/arc.rs | 4 ++-- > rust/kernel/workqueue.rs | 3 +-- > 9 files changed, 14 insertions(+), 15 deletions(-) Reviewed-by: Benno Lossin --=20 Cheers, Benno