From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-24417.protonmail.ch (mail-24417.protonmail.ch [109.224.244.17]) (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 219E4273FD for ; Sun, 23 Mar 2025 10:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=109.224.244.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742726119; cv=none; b=UpnVmx4eX/QTYtnU5MTFUgScndZtdETaxFwSvyCsGNpoH7VU4ltQIE57rc3VAl3TP4iv6ij/PAAiujTZSNbDcPBCFwYTpyJ0rIGzV88wGhQ/APZFfg98chihUG6ISRoUElLPUuncNEdXmB72lQyvOLMseUkJ77NR22JakxTmknc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742726119; c=relaxed/simple; bh=iKcEen7u/7Tfjt9OVU4zyJKUnx1oCzu4A2QiOQuYyfE=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Y6sJRlhQQBsMvP19K94kUiBo5CN+P5f9ABZs/BaFIDbpQdiiZ2o9AIVMOLMOl+oIPalQC5Z26T2lTDkDquSZM3LOYJx9p2T21RTbFQoFeGDxmAj/ycZRHmbqoNM9x4oZFn/JiyBRCDa4okWbc282GoDaiLo4HJj8zyYCIwSy8hg= 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=Jt5PFHyQ; arc=none smtp.client-ip=109.224.244.17 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="Jt5PFHyQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1742726115; x=1742985315; bh=nYMFHupUn/jV70jAZ2sD+P8J70Z7CH1o+fFdzvXoAaA=; 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=Jt5PFHyQOJYNtVnwuyeq/wNDzCp3nxtUKcn48DOxC+v0VtNjZdfWP+0lFXA6Hf5+j GmvTGjCKM9YMxPjUa9yg+glKmfDhsLR1Fc25VEkM5iId/DE7WuajOZ8dKF4KUGUvXg LK8NrRBBAUnxnMjgRUB6CXNMV219UrIZUnW2ZR+KKO+e2Oh5QkXuvwdVTBAHpHmBbK KYnV4FuxdCafeygj2nl7GTHTvnOSj8AH1atHdgxh6XyJXY9DJD4BH3vVkKedngF0b8 tHrJuqcd0VOwc5njoExsVe6twBf3U1rt6o9PLZi/VDWY+vaAXVbljQYpsOgqyvl+fH aHWQYOrCqvvyw== Date: Sun, 23 Mar 2025 10:35:08 +0000 To: Antonio Hickey , Brendan Higgins , David Gow , Rae Moar , 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: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 08/17] rust: kunit: refactor to use `&raw [const|mut]` Message-ID: In-Reply-To: <20250320020740.1631171-9-contact@antoniohickey.com> References: <20250320020740.1631171-1-contact@antoniohickey.com> <20250320020740.1631171-9-contact@antoniohickey.com> Feedback-ID: 71780778:user:proton X-Pm-Message-ID: 71dd91e4cf8b297238bf26f7f22fe199980746c0 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)` with > `&raw const place`. Again. > This will allow us to reduce macro complexity, and improve consistency > with existing reference syntax as `&raw const` is similar to `&` 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/kunit.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)