From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14D57259C80 for ; Mon, 24 Nov 2025 03:08:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763953730; cv=none; b=MNO10TMs/PE5nUpf0Nu3pHwFvhY3GJDggGdnvjPCYta8XYPFQ2//5UIfAytXuJE68gFr/3cR0C6PvCJOldjIQsxPcNe3WZrCDIXO8l8U6IxvSHBgx/k5xCVhgSNqWuhMWVDMuoJ1VyvL0lER12VUcN7vl/8ifFgqrOYjLPQOfIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763953730; c=relaxed/simple; bh=5UfLdLz36N6jy+cgiPZv0EbkiK293E7zjZZj2yGuukA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Jyet+aqwRft/j1ffdYP9lXAWAM/7gyVydu15a5fH9IjVc5VDsJHzxi0Mboqkls8rFBWGOVlOrVlRTx6Fx7WEEwgKRTCteA+T23Ezq/4lOZS5G2d22Rt1OhXksQ/dsVt+4dCBafz8r8p1cz/bkPaGEEm7uf4DJT8c2MRqv+DNr1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l/dUzJ7w; arc=none smtp.client-ip=209.85.214.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l/dUzJ7w" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-29806bd4776so5462435ad.0 for ; Sun, 23 Nov 2025 19:08:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763953728; x=1764558528; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5UfLdLz36N6jy+cgiPZv0EbkiK293E7zjZZj2yGuukA=; b=l/dUzJ7whk16BrsKC63vFgN7UijHG/ASwANGpyCQLYjcqRfPerP/OA654U0EyVYiam pGCMVUqPUGCkNdCFdpPd6SHSsoBqJZp9PWjRGBYBLHofY4mVs7nZRD4d1BQ0ezC6ZWmg ZrXBQVN9VWYQO+XdIoFt03VlovUOPkDOaOVlJhC7AoeflGI4K0SOWL80v3+nIKNDMVKt RDOlUqUGIdekrls3EwVHs/bcaRxmMBVHpA7/yAgYaHmdfWRgejL7Y/AxRpvSxbovpGNI vtw2uKZwxIONWUY+1ld0TbUEC7R/NxEwTXUcWkxGe4SvOTxBDwm+QoJN99DdVASxcuKD iT/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763953728; x=1764558528; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5UfLdLz36N6jy+cgiPZv0EbkiK293E7zjZZj2yGuukA=; b=Ilfj182ZrtP3xc+IgEUP5IiUFxZI9WUNa/3XQd8eJsitdve0OM2Y5gzlMlVaYHJS3a pBHpNuWa8eLf77pvw61WkxOOTRbrjVC7iGkyYes4LhmbwJSjWL+JDAD4s1UZ0sw92iXZ isos4ZIFy0hgdzo+SRAQka7G0VVK/K+UKpcLVrEQ0YZz0Xw67iUCcnsIV5uYIMrW2L5f ex786ASOCPOT/E+cpFCw7E8HlORY850/lIgqiR1dM4PEAa0Wtmg7G+hZ0HdoGa97T3Db a96KdskkSgyPTTwZ2Lxt0A2qE5BFAn11gmnX2q/qASkkiVzvipb0P8jhPBrurpomQiTi vgdQ== X-Forwarded-Encrypted: i=1; AJvYcCWc6VzGQYjGuklrybO3rHu5ITkYaTgnBqQf1fJh2ayniqD74RX/BGJCCMvgse4OrXN6hUS/xj6HQyywlUvBUg==@vger.kernel.org X-Gm-Message-State: AOJu0YzJAyjeuVyw5R4bef5qOx69y1ilkxrH7QFAx/XowxuYq7bRj0Fm R7OLeSBrFCYPiDBTKQckuHOPQO/2PxUciKcpBJUsE6GKER/lXgZdwUfxugNawIsYjkqc1zAmgMj fQlvzy+RJh9Csag1G1UUc1bmWz+eMP5E= X-Gm-Gg: ASbGncvT525yxZX8llKUG4CGNrSUicEHAbdC3ok97bx7ibXohVjDLfGTbkAGtcaPJdb d8BLjdJ7aZRS2IKmMIQ73gkyvCSNrGeWWIgzg7hgzBBiy3CvyJeibznpS5dReGYfl5LQCGWXPHj k8l20k4r0Az+cnTbpQVCa76KjtLXpJVID8KfMIdP2sQdtEFBup62J2Lm2L3oB0wRG2+dPFwuFMh 58AbN3wkY77uJJoCCgl9bi20T8zSdLK+s/uHCK4nYYbUFTeLqBHdh7j1yF9r5Hgh+4LU/4pp50U fZBFB+VdgexY3CsbKHkPNGkl6EFjs0ZmL37fsI5j38tPGtLkYnEmgwr3rIVKXV7/9hR1crQVuXX Ia6LFBcZcQLX8GQ== X-Google-Smtp-Source: AGHT+IHODcnccPs9iRgVIOwlcuA2DDRG3ls89WHmZSy8djjz85e63ugOsI0kgj+n0Sr7cHyi8QYJvH0K9Tj0s1pUI8E= X-Received: by 2002:a05:7300:dc93:b0:2a6:9dbf:bbe1 with SMTP id 5a478bee46e88-2a719324a83mr5922485eec.3.1763953728292; Sun, 23 Nov 2025 19:08:48 -0800 (PST) Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20251124-gcc-rust-v4-v4-0-4e06e07421ae@gmail.com> <20251124-gcc-rust-v4-v4-3-4e06e07421ae@gmail.com> In-Reply-To: From: Miguel Ojeda Date: Mon, 24 Nov 2025 04:08:36 +0100 X-Gm-Features: AWmQ_blIu7x6QT0VZIH89GBJq9q0tlaW_UfH33KPy6C0uRHf1k8ZydlwBKRhGvI Message-ID: Subject: Re: [PATCH v4 3/4] rust: add a Kconfig function to test for support of bindgen options To: Asuna Yang Cc: Nathan Chancellor , Nicolas Schier , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Nick Desaulniers , Bill Wendling , Justin Stitt , Nicolas Schier , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Vivian Wang , Han Gao , Jason Montleon , Conor Dooley , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, llvm@lists.linux.dev, linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Nov 24, 2025 at 3:42=E2=80=AFAM Asuna Yang wr= ote: > > I will separate them into two functions in the next revision, > `bindgen-option` and `bindgen-backend-option` (or `bindgen-cc-option`? > Which one do you prefer?). If we don't need `bindgen-option` (the normal one I mean) so far, perhaps we should skip it. On the other hand, `rustc-option-yn` is there and is not used either (it was added for consistency). Up to the Kbuild team, I guess. As for the name, no strong preference. `bindgen-backend-option` sounds good, but `bindgen-cc-option` is more consistent with `cc-option` and probably easier to understand for people new to `bindgen`, and anyway the flags we pass there wouldn't make sense if the backend is not a C compiler. Thanks! Cheers, Miguel