From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 2BC6E3F54AD; Tue, 2 Jun 2026 17:30:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780421452; cv=none; b=bqTaqGlvOhetcB7aouGSEp47r6FcsBlDfUCmo2obfu38GdiLZnjCCsSRrdj5N4IrdoZTL+d5Bj7PfLxIUIeTEpPJtckBFSHu4bYgqUrOUSIXW5BhTzwjvkYexvHgdWBEcD1tELhMtm3EmljP6TjARy3XhX2Km90D/ZaZclwxX+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780421452; c=relaxed/simple; bh=Juy2jNb6NNcorTk+OFD6o3ncxQA2xjz5AdUHXQ4ETiE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pA/CUWJ8qzcouW+AlXGJbS6jwqIpoQtYCZgTD59Xn6EW87fcTKVVTOBQBVBe3pp9JXvspJ3s+g0xlhP3v0nctgyCGoS89HkdLIZduP+TuoA4K14XPgJpoA3IcCeMh2ROzISe5joe8UyFrHbtiiPS1xPyj9U0a6on6zLd0PLSZg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CHqHZMvZ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CHqHZMvZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B471F00899; Tue, 2 Jun 2026 17:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780421450; bh=78kE9R2Gn7qFjC5HDK4GVw7A6pEokxUHbuditSjVxes=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=CHqHZMvZdg/MroMuJBnem4fS/uESDpVIKXLUWWxxkHbVrvgNtgfFjPiQCu/WRDnqN OwKSQCdmt0YcS7e0DpV8kBSoLKeUbg0S6GCs5VTh8KnO+wKGW+llw93Hxb+oyx1CHo CyHL0IDSjiA/vhPJf0rYD+w0oVE6OAFFFuKGxe1GVzVnbAkRnjNN53G4/7YUvRDPRp IkY6flwswh07EEQCUUjwPM3tn0Wgu8bBxpIzHjjeZquGLPoLb0LFm0nQdHkDvkhhGR pOcl/8Tv4EllYg8M7BJpnzHBxcHR/ihenzj3UVSdECUMMsym+zj8slEqR9SVKllR8k JfO70nn12SL8w== From: Miguel Ojeda To: Miguel Ojeda , Nathan Chancellor , Nicolas Schier Cc: Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kbuild@vger.kernel.org, Joshua Liebow-Feeser , Jack Wrenn Subject: [PATCH 17/18] rust: zerocopy-derive: enable support in kbuild Date: Tue, 2 Jun 2026 19:29:18 +0200 Message-ID: <20260602172920.30342-18-ojeda@kernel.org> In-Reply-To: <20260602172920.30342-1-ojeda@kernel.org> References: <20260602172920.30342-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit With all the new files in place and ready from the new crate, enable the support for it in the build system. In addition, skip formatting for this vendored crate. Signed-off-by: Miguel Ojeda --- Makefile | 1 + rust/Makefile | 41 +++++++++++++++++++++++++------ scripts/Makefile.build | 2 +- scripts/generate_rust_analyzer.py | 10 ++++++-- 4 files changed, 43 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 33135f39bbee..c71c43bc3658 100644 --- a/Makefile +++ b/Makefile @@ -1957,6 +1957,7 @@ rustfmt: -o -path $(srctree)/rust/quote \ -o -path $(srctree)/rust/syn \ -o -path $(srctree)/rust/zerocopy \ + -o -path $(srctree)/rust/zerocopy-derive \ \) -prune -o \ -type f -a -name '*.rs' -a ! -name '*generated*' -print \ | xargs $(RUSTFMT) $(rustfmt_flags) diff --git a/rust/Makefile b/rust/Makefile index 5246e37fde10..9abe7983ad90 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -52,10 +52,11 @@ ifdef CONFIG_RUST procmacro-name = $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name $(1) --crate-type proc-macro -