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 B2B413E0226; Mon, 8 Jun 2026 15:10:02 +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=1780931403; cv=none; b=Dm/etGdFzWBuBwy+2ND3LxmDUxB+C211/ScYhXcLaiLwQpsJ874W9FpEriHKN1h6ugvCdt0kN9P3lkZcE7FJmb28TIdIUPxv05VJ5u9BuJi/VbzknzEbWOawZnb3APC22+kIWAljY/OliuTx9VyQCcRaMDEgUWg3WLkf80ARIQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780931403; c=relaxed/simple; bh=KjEIMtoLBjjYScauErURezWxBZJLrn5jk7z/YizZT1Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=i3y9jKuv5AJtnaCHfYGIJ2vqRanRPrPiMoVD127z3OHCRSqAoE71NEdv4xMarxBmtAGe/Nv7yGOO2R5todO0JPtWLM0CL6kXh+Vptm77Tvpa8buRhukvfB+IlFXQHo1VJlUooFnRj6toNZbTJsbYdO1DIA4QL721zN4N4kr+udg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EBDcx6Gn; 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="EBDcx6Gn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBAD91F00898; Mon, 8 Jun 2026 15:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780931402; bh=99z5tUWYGt2GZk03XpSTf3rxXn7uJn08ilJo5eheoOs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=EBDcx6GnpAdjCC0fCoiBKf5KIFpALVbxqjbYR1r0kSrgLgDUY7LDqgV/vbrx9wMeK 6zk1Ut5MCl7SZyvSRzSGIVXJRf7NPV4sEg5t7IOw0YJXQHZ81L6Afj4P/5AHM2HLvn 0UYKH8H5QoiKLJRPByb+R2KRB44A5V26aI344/Bg/YirvCRY0dlLhloYVLpqz4CmEm KXRZnT2N1iX2b2c/CD+m4lmmP1grw+cRflPz2zLqhd8+1l5l/KRBXy8F4goxo/LZhL 1uUgQUhZSRirSLW0ob1JVhymhWGKUiuOspnQvrmVlvazvC6rQkmJf/sj9hnfgHXwqy 3WeFp2UDZWZ6Q== Date: Mon, 8 Jun 2026 16:41:05 +0200 From: Nicolas Schier To: Miguel Ojeda Cc: Nathan Chancellor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , 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: Re: [PATCH 05/18] rust: kbuild: define `procmacro-extension` variable Message-ID: References: <20260602172920.30342-1-ojeda@kernel.org> <20260602172920.30342-6-ojeda@kernel.org> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260602172920.30342-6-ojeda@kernel.org> On Tue, Jun 02, 2026 at 07:29:06PM +0200, Miguel Ojeda wrote: > Since we are adding one more proc macro crate (`zerocopy-derive`), > we are refactoring their handling. > > Thus, instead of using `libmacros_extension` as the common variable to > hold the extension for all of them, use a dedicated variable with a more > generic name (including for its implementation). > > Signed-off-by: Miguel Ojeda > --- > rust/Makefile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/rust/Makefile b/rust/Makefile > index 8dfccf7399d9..df90fabefb70 100644 > --- a/rust/Makefile > +++ b/rust/Makefile > @@ -48,10 +48,9 @@ endif > ifdef CONFIG_RUST > > procmacro-name = $(shell MAKEFLAGS= $(RUSTC) --print file-names --crate-name $(1) --crate-type proc-macro - +procmacro-extension := $(patsubst libname.%,%,$(call procmacro-name,name)) Where does the 'libname.%' pattern come from? Looking at the current users of cmd_rustc_procmacro I'd expect a 'lib%' pattern instead. -- Nicolas