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 CF7403CCFC0; Mon, 8 Jun 2026 14:16:24 +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=1780928186; cv=none; b=a6YtAPycYiwOUHJmPXGkkJ60duUal9w9aDAtNvwoBdW2kEKEKoJwTBZUlI+u+6cwGgR5GArvJR3t99zvScOOWDrkvwonsMAIu7luxmi/6cL4O69fZG9FDGhc67e2MSKywdlFFrNVlwm9Z4+DanjqNPSGwVMeecbAdS6+shLnBtU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780928186; c=relaxed/simple; bh=e8CIG5+xvBk8oun68iLkEGKVbQmJHE12ThrWtm2KFzQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=piy/mwO9jPtUGzx7D4aV2+/CrNd/VGF7whZDipv0odaWAfu3sw4TW4U7m5yg8FHDs+HhdXIqzfHlkEWIErxIObVygUQzuwR0uDWphI+5NEti0NopCNKgdfcopWDTaP5WwffRJzEQ9bF2MGSMrrNQjPfbbyfaHgoCyvZdM+6ktUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d7PLuXa6; 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="d7PLuXa6" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5770D1F00898; Mon, 8 Jun 2026 14:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780928184; bh=BVvwm9y1Xr7R8adCT0z8Tn7g2yz3VgQO78ilTTz2mC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=d7PLuXa6+ws19EaTBCtfeUvHK4usDzaW0kptrM0fdnOQN43UiasvFhTh30NNuWlge QChq1UJt420BXY+LJICpYHDGNufR9dm84AFD3A2PLzPKvfB6AX8RU2hX8moKM2rOwF doXodE6Ii67dWrf0YonWv9e8JYfhITVPeI7cmK6SsNLGNVP4wVUhI10dRZQhX7xh+u 5EVbHND44mIP+MWiEKx+O/69EOzblEu1EBV11fZULZSl1w5omiDJv0PLNY5QIuzNUv qingwfWAsnMjDcwkx0jsplOIxGsbVAC1fRl7FjdIzwdl4zd6FHlulbB04nm79ipt6l Ye12bTTJZBKsA== 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 v2 17/19] rust: zerocopy-derive: enable support in kbuild Date: Mon, 8 Jun 2026 16:14:36 +0200 Message-ID: <20260608141439.182634-18-ojeda@kernel.org> In-Reply-To: <20260608141439.182634-1-ojeda@kernel.org> References: <20260608141439.182634-1-ojeda@kernel.org> Precedence: bulk X-Mailing-List: rust-for-linux@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 a87b33926cdf..2fbdebb93bf2 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 -