From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-24416.protonmail.ch (mail-24416.protonmail.ch [109.224.244.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 5164515ADA6 for ; Sun, 23 Mar 2025 10:36:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742726168; cv=none; b=jiwV6u99Amn6Sb8aoLhqZhlWWdSFgSsjndH2u+GRAB7aTg+dn1exT4OSpwlJNzBZQNqYuqn3y4D+/hsVX0GjlhJQ/zJPXEV0vi4HNt99cml6O/QIRuSCEILODEmaNmYJkEJ4N2pFqrkD+XquxRSF/8f1IIsih/9LAT9iRhC6IO8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742726168; c=relaxed/simple; bh=af0dtqoBDLs2xccBZP+m72nAb6E5O1q7jPkR5VicH5k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ucqw2qxUM50F+3aEQortjcqFELcMFgHGBi9cYJhOy07UlJ0eUINMcIF/BCYRu/zWHGzStV0eUc31PXU/kKNaLXsmXom2r1FqZBgdOmE4wuztUJ0A39ayv2/7bUiCDi0HLvyHW1aC9YnEkd5cUN/8tr7hUNCBNy0+KfHjAL/8fTo= 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=M4XO4mhE; arc=none smtp.client-ip=109.224.244.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="M4XO4mhE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1742726164; x=1742985364; bh=Z9kQ6MZqNbMDjWH1BakuG235h8cGVfZgV58Rwk+EqC4=; 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:List-Unsubscribe:List-Unsubscribe-Post; b=M4XO4mhEOTUif9BNnvKcYLFwK69mN5iomc4/50DsPYd/3DkBTeyVrH1FPqULdZBlC bKaN7VlO934Um0TymABGIahxrAu8FoKkzMaM5vFxF8BwhTmn/mD/iwnUn0F/amtFc3 ECcKwuh97AxvzCVaKhks8LZB50yu2swLER1Waha7g3m84lzBWQCyboh9nTiwcweGC+ Mr6S4zqSedieOjDYsXKEpd6y+nQHWhJC8psY58ygpiPLijhoZ0d7R8y6a5vpK83IBC V6CJ0VHFonQS+iT87GSQ841uKDxFT4jEG//1/3hmQynBEKJpMUROB4SXa50CozDeZv M/0tSrITnq8xg== Date: Sun, 23 Mar 2025 10:36:00 +0000 To: Antonio Hickey , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich From: Benno Lossin Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 09/17] rust: workqueue: refactor to use `&raw [const|mut]` Message-ID: In-Reply-To: <20250320020740.1631171-10-contact@antoniohickey.com> References: <20250320020740.1631171-1-contact@antoniohickey.com> <20250320020740.1631171-10-contact@antoniohickey.com> Feedback-ID: 71780778:user:proton X-Pm-Message-ID: d27c9812b511c152bbbf85afe8ce5b22131f5e2e Precedence: bulk X-Mailing-List: rust-for-linux@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 Thu Mar 20, 2025 at 3:07 AM CET, Antonio Hickey wrote: > Replacing all occurrences of `addr_of!(place)` and `addr_of_mut!(place)` > with `&raw const place` and `&raw mut place` respectively. > > This will allow us to reduce macro complexity, and improve consistency > with existing reference syntax as `&raw const`, `&raw mut` are similar > to `&`, `&mut` making it fit more naturally with other existing code. > > Suggested-by: Benno Lossin > Link: https://github.com/Rust-for-Linux/linux/issues/1148 > Signed-off-by: Antonio Hickey Reviewed-by: Benno Lossin --- Cheers, Benno > --- > rust/kernel/workqueue.rs | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-)