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 489F621767A; Tue, 29 Jul 2025 16:36:01 +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=1753806962; cv=none; b=dx8Qf3Jy9UEmQ9H6372wFndQWKbFmaArWfINVk6/YlAZ6Q5FCT1jhP+MASl/wTHq/OiM2xEPjf13jCgv4n7DiRNv99zXNettekIADgsSuFXYfZfDP2eRlafysTXoVt83pds8AAI8LAaXxK15mQM8hO5ERXF1DmpFhVWcdVSazjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753806962; c=relaxed/simple; bh=O+r4SjkFSBxoj37YP4ikCrlULrTJ/NWAQrOlcqCn/js=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=OD6DSjVVH9eBEG/z8uuQSbuGDzbsi1j+lby9m8Iacy1GxpkE/8KhSxQaQ7x72uB7H+LRMQOUQKW4BEnOeHVR9vRardEGjtD9rZZiDo0tAnc+JYL+Ys7GoqSRWm6PYWwO0HuK577JQSN1xhyyJA5AVru3ZNpfk7NDYFhUutItrzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Jg3qzVaC; 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="Jg3qzVaC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EFBBC4CEF4; Tue, 29 Jul 2025 16:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753806961; bh=O+r4SjkFSBxoj37YP4ikCrlULrTJ/NWAQrOlcqCn/js=; h=Date:Cc:Subject:From:To:References:In-Reply-To:From; b=Jg3qzVaCPZV7/wy/lndN1g8gcj4o0GVY3IBFUi1rBEIrcFpFteY4Cj/PYD5FToege dP3CyHreo/bv2M+JIpc7yPW5ZqSVJlcro5IP77PFcP+ZvglRlmbuABljukBwBE3Pks vAf+mz0ZNUBmpqdqGT9zxninxpeNA6nAn+XDGZQXIlickluz85OlvuIf7xZdT18hsD tPyhA1w9lbfx3iSTZuw+bDcbY33J5Enss9mRkaCFGk6u4jQXSUvS2YEQPhsrmKwCpC IhooDzuN86bJ5gMNHPCSgoGTY4wNy2lfwXjVeCGAxbJcLIVDaVUUu74SbRDjBUcq+u cninRYZemMl/A== Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 29 Jul 2025 18:35:54 +0200 Message-Id: Cc: , , , , , , , , , , , , Subject: Re: [PATCH v2] rust: pci: Use explicit types in FFI callbacks From: "Benno Lossin" To: "herculoxz" , X-Mailer: aerc 0.20.1 References: <20250729102953.141412-1-abhinav.ogl@gmail.com> In-Reply-To: <20250729102953.141412-1-abhinav.ogl@gmail.com> On Tue Jul 29, 2025 at 12:29 PM CEST, herculoxz wrote: > From: Abhinav Ananthu > > Update PCI FFI callback signatures to use `c_int` from the prelude, > instead of accessing it via `kernel::ffi::c_int`. > > This follows Rust-for-Linux coding guidelines and improves ABI > correctness when interfacing with C code. > > Signed-off-by: Abhinav Ananthu Reviewed-by: Benno Lossin --- Cheers, Benno > --- > rust/kernel/pci.rs | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)