From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta0.migadu.com (out-117.mta0.migadu.com [91.218.175.117]) (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 2F02A3CB8F4 for ; Sun, 6 Sep 2026 21:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.117 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788729900; cv=none; b=CPWTNk4dd/6D2sMCwTJZfbOJz/n+a0a3/MmCvdbVV0cOUVlWicyamT0INXeeDi5zSc5X8E7gtcK1XBeUbl7Qil/oYkmiSdQuTYAHp9gBMGvCHIcfzSmNYZFOLpbIYbGHROicWytAxgJIzVJGhUneEJab7aOxSC018YzkJtdOUJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788729900; c=relaxed/simple; bh=pcjhQGSVfuM8CzMveHI2vIfzY9kUvlXaqbuPPVccsXU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KsAjUCGCuT7AjBHA6+vHjUGFW4ZLO1o+UvLTQ4ONYp73BLzxJd7hlliKdPpOLykB6cPveo6kK86FFDc5TFJgMtu1mB+Wt/yuMhpCmYs/Av4p+kTx4jFy0Gkeba0ib6V5mMq+8Pk1tKQhShUQr4wPw5z/b2+bbOe77zE7VZ2LXN8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=NlQwmOce; arc=none smtp.client-ip=91.218.175.117 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="NlQwmOce" X-Envelope-To: bpf@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=pcjhQGSVfuM8CzMveHI2vIfzY9kUvlXaqbuPPVccsXU=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1788729893; v=1; x=1789334693; b=NlQwmOceV8DgiG4i2ZKRVIqqwPhvNf1sH4h/uL1/6jAngVzRvpEdVKFZGAIC4ImGNtRz/B3R eHcTuXCs8YQeeCoFa6va5ZrDYoWzzZncDv5WCymo9fsHb4K8XngUr/iVr7qhBRUl3XJN7gj9Xan WWgUzbff0itFOMZZwQgilhig= X-Envelope-To: bpf@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 1ebff86c5741b26c; Sun, 06 Sep 2026 21:24:53 +0000 X-Mizu-Trace-ID: 1ebff86c5741b26c X-Migadu-Flow: FLOW_OUT Date: Sun, 6 Sep 2026 21:24:39 +0000 From: "Jose Fernandez (Anthropic)" To: Miguel Ojeda Cc: Steven Rostedt , Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Nathan Chancellor , Nicolas Schier , Nick Desaulniers , Bill Wendling , Justin Stitt , Catalin Marinas , Will Deacon , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Puranjay Mohan , Xu Kuohai , Ard Biesheuvel , Ilias Apalodimas , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur =?utf-8?B?w5Z6a2Fu?= , Sami Tolvanen , Kees Cook , Leon Hwang , Ihor Solodrai , Josh Poimboeuf , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org, linux-efi@vger.kernel.org, rust-for-linux@vger.kernel.org, Ben Cressey , "Florent Revest (Anthropic)" Subject: Re: [PATCH RFC 8/8] arm64: ftrace: Allow CALL_OPS on kCFI kernels built with Rust Message-ID: References: <20260904-b4-arm64-callops-kcfi-v1-0-ce6687739b0c@linux.dev> <20260904-b4-arm64-callops-kcfi-v1-8-ce6687739b0c@linux.dev> Precedence: bulk X-Mailing-List: bpf@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: On Sun, 6 Sep 2026 18:56:47 +0200, Miguel Ojeda wrote: > Now, if we are going to filter this out for Clang, should we just > filter it out for GCC too? i.e. outside the `ifdef`? Yes, that makes it more future proof. For v2 I would filter it on the bindgen_c_flags_final line, after the ifdef, unless you prefer it before. (And to your question on patch 6: yes, the rustc flag comes in this patch.) > By the way, "generates no code" sounds a bit strange, since `bindgen` > generates source code... Ah, yes. How about this, here and in compiler_types.h (patch 3)? # Do not pass -fpatchable-function-entry to bindgen: its libclang may not # support the section argument (Clang >= 21), and parsing does not need it. - Jose