From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-198.mta1.migadu.com [95.215.58.198]) (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 0ED1038D41F for ; Sun, 6 Sep 2026 21:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788729907; cv=none; b=r6iOZ3oBTuERx8Hu8UkrqnRiISniQIa4be6yb71yEnYkRY1pr6ukJnEE3XI6jMwNoS3TvUwiWGvMcZzBwJXPUgsUsG9F6jWzFMIErQSuhe1hMMTOwlwwZVZe301o8C5hIm+mbnXYKVF5NJdzsbSOniZRxCnJmsY/RvBEgYaKRBM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788729907; c=relaxed/simple; bh=pcjhQGSVfuM8CzMveHI2vIfzY9kUvlXaqbuPPVccsXU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hBWOJ6UIo30OWBXwXa5Emk4Eg7i2M3JUTCW30xhk784mgrZ0DYgSep50xmtw1YuKkjRfODmAnnSbXJp7N8fx50vpziZFS9U69/hbFjm4YKKMj8WGKxAuZ+gEPa1mNIngtrkZPl9LqXZN9GA9N46gFe9ubG7jPeZXZW+YVYZNyCo= 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=DZwEgUHK; arc=none smtp.client-ip=95.215.58.198 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="DZwEgUHK" X-Envelope-To: linux-kernel@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=1788729903; v=1; x=1789334703; b=DZwEgUHKKwYsZpePwjW81ThFPWkbB22R61gZvPivDNujNsx/mWWjWilaN4DtLCzUzOZsLqUv 5k7gkL2VQA4CTOsUYINZIZ8w+y4ExaGNctQwi8xLwFBKeF5KYGQ0V3z7Lh/1rVs1zDJI91sUmM9 BGuCJUBFkPUqPGVAPhfQdjgw= X-Envelope-To: linux-kernel@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: linux-kernel@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