From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5EE79291C3E for ; Wed, 30 Jul 2025 07:56:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753862214; cv=none; b=pdc5yB6xTFGtibXcK8jdbMfVRgOGRFcXEDAhOw6S5+nxEM/xXG+ZSOnNZyyog5hIfR2lftUkOpkdNTnVOS6jaNW+PWeUHXLNnr4eWI7WVgG899P20BCrr+xkxlrHRmmirp5nk/dNno0Ea4x+3vsca4AOXPvUYSzhPQjO+hY1iHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753862214; c=relaxed/simple; bh=GLaeAIqc00e+USukSnbAVMe5TgFLMlpYRPa2jWKuX/g=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=f+M+ub72Yw3esG0H9VBfFbkGR6WWsXYXy/2CVIQUmR/NFqWS9A3kE943fuOkO6nDV475ZWvwToAdbhvTZioklgm5eq/E6O7n4zgOiuhbABsTOrYDnRnXuYmOcI4wZ1oF7qkq4dJzMOco8ic3hWCZaDllr93wOTxevGA6B1b6QG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=EJjjYj2u; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="EJjjYj2u" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4560b81ff9eso32809575e9.1 for ; Wed, 30 Jul 2025 00:56:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1753862211; x=1754467011; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=GLaeAIqc00e+USukSnbAVMe5TgFLMlpYRPa2jWKuX/g=; b=EJjjYj2u10QgmPAXA/Al+RTNAf9Au5dPvN1pG/QbHUjPAuiHejzV+XDfYSxlFi+kUU 8SdLROlzM4rBZnCm4oIHeJeWR9neEqA+QhFIk5CjiKAS2Iy3j52QaGdp9M3jjODLU7H0 8mxdPDEKCgMyp0cUfGOewwfidJQaqe968tsEcL10zA9k9bhPgpTmmGj3HYj7UapUmGQw WYUnFjd9bxRV3neQdcSy2EfHDlkCaXz1RlnNRZxrknYQxh32biIjLItVkxQDQEU8/Wav 5A5+LLFzb17JuU8yWQC1YPI2nURj+XLMW7zhoQsYbDnqTpSWbH2A8TnKZTzNpFxU+xCl mwVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753862211; x=1754467011; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=GLaeAIqc00e+USukSnbAVMe5TgFLMlpYRPa2jWKuX/g=; b=avy8ruKI1wBwgugnKon33blk0NfVBvNJm0u0phBHQMyNUGmjbAz9zNf8lQZxOnuH1G +CoJNNrdEuJT/iDBC0JOKv5veq0KPhhsIs9S7eLdN/hBrY7OHwGQFvS9uvemxCTiAxh9 dupZKS3mOjDbuOHYvurTFCC1DSK2A3+EdK2CqVzf+yZ/RIMUDEwkx7lkWMSuogD1PjMU mM5CrDAdm9NgjiNAcbkRKjvIEAi7pfXoL4BEAdzAZ/BSMgmbMJyC6BsyzIGy5b2/n5By aH9Kt97RHuOdxOB8PndL76UuXFbWos83N/N34ErUm9eJrQyYhdjBM2hdxlqLIMzh0Lmw rlJw== X-Forwarded-Encrypted: i=1; AJvYcCUdZqfiF8xKBSJ+G6cLeY/7cdod7FVRsdiKmLfZb+plCIr6wZMthSWhtCaygvHQP0W1XF3iAsKJ4MXIMQY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw501lFBY2Tx2TV0Ozfxo2vK9K65U/E9ZFAS66ZFrjpReHV4qT3 nR4OpFOEfGcVSCw+5N4uZzJbu1qZjlUkogS3x8vV8itIdm8eRtQ/OO02XJzVKeoIxOimYPrjH1x iM99JJcknNfx+5+XyLQ== X-Google-Smtp-Source: AGHT+IGDvFaMLBXu0klWBt4C95avW2dNPswDP4VOmyuf+KsNi7Hgiwedn0E92QWyR5XhNzUkZu0QiLLjbVDSw60= X-Received: from wmrn20.prod.google.com ([2002:a05:600c:5014:b0:458:709b:28a0]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:8706:b0:456:1e4a:bb5b with SMTP id 5b1f17b1804b1-45892cea07fmr18028965e9.32.1753862210888; Wed, 30 Jul 2025 00:56:50 -0700 (PDT) Date: Wed, 30 Jul 2025 07:56:50 +0000 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250729102953.141412-1-abhinav.ogl@gmail.com> Message-ID: Subject: Re: [PATCH v2] rust: pci: Use explicit types in FFI callbacks From: Alice Ryhl To: Danilo Krummrich Cc: Miguel Ojeda , herculoxz , linux-pci@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, bhelgaas@google.com, kwilczynski@kernel.org, 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, tmgross@umich.edu Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 29, 2025 at 04:45:50PM +0200, Danilo Krummrich wrote: > On Tue Jul 29, 2025 at 12:52 PM CEST, Miguel Ojeda wrote: > > On Tue, Jul 29, 2025 at 12:30=E2=80=AFPM herculoxz wrote: > >> > >> and improves ABI > >> correctness when interfacing with C code. > > > > I think this still sounds like it is fixing an ABI issue -- I would > > probably just remove that second sentence. >=20 > I agree, the types exported via prelude are the ones from kernel::ffi. >=20 > > (But no need for a v3 -- I think it can be fixed on apply unless > > Danilo wants it). >=20 > Yeah, I can fix it up when applying the patch. >=20 > I also think the subject from v1, i.e. "use c_* types via kernel prelude"= , was > better. This one is a bit misleading, the types in the FFI callbacks are = already > explicit. >=20 > Unless I hear otherwise, I will also revert the subject to the one of v1 = when I > apply the patch. With the above changes: Reviewed-by: Alice Ryhl