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 EC83613C816; Thu, 13 Feb 2025 15:30:32 +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=1739460633; cv=none; b=ZqYGOGE4kCx47chiW9/2TM4lAx9P0r+hKh15AoVGHGVvPfRbYKEEBVaScSnoYZjYBq5tyHK1lPSo93kmM3+Xf4fnqHabHs4jnjMHC93rn8zayR64FZDOMRtHITWwmf0dEoCY3r5/LfxNniVD3p7ILyO0NfKdpaeIvNn0cR2zwyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739460633; c=relaxed/simple; bh=kgDqOyuSqNQTo8FBJlPfRitqkV3fyPWs1UxmiEhZqBs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OBiNlWhRlQvHPufJyJRDXo2ITlFa6X1eCuTdzihNwLona1SqEhMNuXGbz2Y9c1RsJcE7pvBmWGmfoKsCeOCr41ynWFe5/JLcPBAPeQ+UoTpbR7giDRvrwcdXeQkXQb/c6Or6oY3zjX4GGsV0lROGwGUioYBaR5TGIfnpQpoSj2Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fzb4LmoI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Fzb4LmoI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC121C4CED1; Thu, 13 Feb 2025 15:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739460632; bh=kgDqOyuSqNQTo8FBJlPfRitqkV3fyPWs1UxmiEhZqBs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fzb4LmoIXVMQV4PehmCBqXTVn1M5n3guBZjlrV+OMS6eJeZANnoZ/AVZuX3Z0xS/6 wLUcXHDHlMRk/Z926/IBlPxFDTsNwLG+flMIrbVgoNhKVlwBr3elbaibrrSwKl7Qxl dtilvRoLWCtg9cyGbIgcvL9aw6BtE2vveJKEKeC0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gary Guo , Alice Ryhl , Fiona Behrens , Miguel Ojeda Subject: [PATCH 6.6 167/273] rust: init: use explicit ABI to clean warning in future compilers Date: Thu, 13 Feb 2025 15:28:59 +0100 Message-ID: <20250213142413.929027622@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142407.354217048@linuxfoundation.org> References: <20250213142407.354217048@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Miguel Ojeda commit c21bdb3d8a850afdfa4afe77eea39ae9533629b0 upstream. Starting with Rust 1.86.0 (currently in nightly, to be released on 2025-04-03), the `missing_abi` lint is warn-by-default [1]: error: extern declarations without an explicit ABI are deprecated --> rust/doctests_kernel_generated.rs:3158:1 | 3158 | extern { | ^^^^^^ help: explicitly specify the C ABI: `extern "C"` | = note: `-D missing-abi` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(missing_abi)]` Thus clean it up. Cc: # Needed in 6.12.y and 6.13.y only (Rust is pinned in older LTSs). Fixes: 7f8977a7fe6d ("rust: init: add `{pin_}chain` functions to `{Pin}Init`") Link: https://github.com/rust-lang/rust/pull/132397 [1] Reviewed-by: Gary Guo Reviewed-by: Alice Ryhl Reviewed-by: Fiona Behrens Link: https://lore.kernel.org/r/20250121200934.222075-1-ojeda@kernel.org [ Added 6.13.y to Cc: stable tag. - Miguel ] Signed-off-by: Miguel Ojeda Signed-off-by: Greg Kroah-Hartman --- rust/kernel/init.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/rust/kernel/init.rs +++ b/rust/kernel/init.rs @@ -788,7 +788,7 @@ pub unsafe trait PinInit