From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7B973329C5D for ; Mon, 27 Oct 2025 19:30:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761593445; cv=none; b=gq01fQX8vjKbUryoIba7DI3XR63jdQfmPwKXdkY1TggWhXJEFlUAAE94dGPNLuBZZ+jlfxoZFhBRkAIdgd3MQ0dIO+H97qaXTH3f9v9cito1IzGUwSmA5A2hCdlOvsZ2Hy7x5P33GII851uLq+H8xYESeXTIZ8vEwX/UOLWaKCM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761593445; c=relaxed/simple; bh=4zGSu5O6665+Z4KvgAMrt4U4QKGAGcwfeem+WdVASmg=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DDTJguxjO0l3t0gr3zNUva/EOAkMwempi2jSNlopqZXs8R5bxwYYb6CbyOSvh2tV8qlqBrj24wQu0/rIsFfqS6eoZSE/xywr9Z8VNQZIwJsds7sxnt6y5I3gmeY3AMZdUc2Z7jW+CsY9qCXTCSbGZAmoi+V5u6cNS7Vc4JNBAmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aTzKTfGJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aTzKTfGJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 173D9C4CEFD for ; Mon, 27 Oct 2025 19:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1761593445; bh=4zGSu5O6665+Z4KvgAMrt4U4QKGAGcwfeem+WdVASmg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aTzKTfGJakTqr3v3kSWj8RLSA9H2yew7+VKtZvvEUXIHUbEA13sjUbVUZBg0wYWvR bcMutlRsozqTpVbEEYnsIR5Kze+MACu+PvmG3t0uSeGW12ErGBCgGoQNWzanYPEGEt fILppd7pTyhgPQRQd6c9Jz+7KKamSNs1h42Gjc5lIBg8exL2BIBTwspzxCR3tsrRnL mhRrarSyppOIG499Wxz99J68BD76nTZb43Fe8uj9jr3ITvpqCyYYBYxrgv+ZkIJaOv 3OlAz1NTQKscDxf52VHduXNi5eVhd54ovOxnNNxchNj/938BhOwFsALry2rMBNXseW x5sFpuOw8mZag== Received: by mail-ot1-f53.google.com with SMTP id 46e09a7af769-7c0e357ab51so4763370a34.2 for ; Mon, 27 Oct 2025 12:30:45 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCXiOyPRDBRpkyf8PYlbJKD55bcyKd6CfUY2JiOcKg9VQIJfUjLxkXG87BVuuOvDK+MNtGxLSorqv7Ia1yfYVw==@vger.kernel.org X-Gm-Message-State: AOJu0YyCHUGmYvEDyceU88DqZ+knd7Dvyj37eWzUZxlTrbAsiL51JGtM cQmB4F17ZWn3DvKXvYEVc8lHdjqVySLtnFMIgE7cjrrvF8J5YUc6FgkKGap04Kynn/fQTmuxpLo rg3jSegaKoDBFc4Kw/22YOoiWHg8DjnY= X-Google-Smtp-Source: AGHT+IH+SDtSfHYobBAwmnI5xMhbgRP83tYXzqRiZ/eznt6J+jvQLL5SZ2qwcctw+mVlJPZFeZjWkIVgRjpTj6WqJBM= X-Received: by 2002:a05:6808:1822:b0:44d:a337:6ca3 with SMTP id 5614622812f47-44f6b910a71mr484015b6e.11.1761593444372; Mon, 27 Oct 2025 12:30:44 -0700 (PDT) Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20251020031204.78917-1-huangsiyuan@kylinos.cn> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 27 Oct 2025 20:30:33 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AWmQ_bmjn_oJV5HZo3zUwTZ4uBkBxwOm4WB484q2m9iIJ1-7zSp2MTe_3LbLgeQ Message-ID: Subject: Re: [PATCH] rust: acpi: replace `core::mem::zeroed` with `pin_init::zeroed` To: Miguel Ojeda , Siyuan Huang Cc: Len Brown , ojeda@kernel.org, alex.gaynor@gmail.com, boqun.feng@gmail.com, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, aliceryhl@google.com, tmgross@umich.edu, dakr@kernel.org, linux-acpi@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 20, 2025 at 1:26=E2=80=AFPM Miguel Ojeda wrote: > > On Mon, Oct 20, 2025 at 5:12=E2=80=AFAM Siyuan Huang wrote: > > > > All types in `bindings` implement `Zeroable` if they can, so use > > `pin_init::zeroed` instead of relying on `unsafe` code. > > > > If this ends up not compiling in the future, something in bindgen or on > > the C side changed and is most likely incorrect. > > > > Link: https://github.com/Rust-for-Linux/linux/issues/1189 > > Suggested-by: Benno Lossin > > Signed-off-by: Siyuan Huang > > Rafael: I guess you will take this; otherwise, please let me know -- than= ks! Applied as 6.19 material, thanks!