From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 483E7C3DA7F for ; Sat, 10 Aug 2024 21:04:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6g4munH2YFF+BO74vOxc741+Wol1bX4dWcx8ksy84Dk=; b=ujFMNdnced9fym rl8WzTmHWvFlzZCgc1B6p2C5suQKMRnvmupmCvlMllybEMZeqrVfd7lLKiXR0MjDFdNbNc74V/Idt 69iBIG7x4ImgogfZ3Z2cvlW6T/d0D5n8+pzhQC2bmNgSVbJwoZXnhMoDI+au4Iu/KnVRWvdt6EWzh lg/GGPuCKwt0qIBetSkx9Cqk+nFZVp+I553upg4VYY3V6wkCMlIwa8Uz3/Y8Vpm32jw2awdNpj8RN 7Ad3RLLs2wZplOnztQY97KX4nE7alik6MKuiPIj7RwvsxRWJioBiCSUnSXQJ04Vywfw4hJYDYGnd4 gZuC7KFbnKqSC31RR0nQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctG3-0000000Eb2s-1wbs; Sat, 10 Aug 2024 21:04:15 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctG1-0000000Eb2H-0LtD; Sat, 10 Aug 2024 21:04:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=L5ZaMkcysgxHBoobfCUH51gejY2SZF51sPwk8BxYjEY=; b=WSyOlZN4Nni7gLJNXzcNaOAvzJ AGptP8rQIgN+f0r3MKaa4DkO8n0uajfvfFHFin2/Bt8kD3YAo9vEUuRl1Bupm9EadiUsbtx7hSql/ a8CkFGhTcyPe5ZoM/Dz28ZIEApK1jA67plyopWOnjdxd8Am17AfJWo7UaF3NqvbZcOn5fRgJ5ikG/ p7WlXxAtLLnWnn/XjjEmwkOEdDCvSLYCRAq1X4fFc4ZgXbYymk4kT6SIvGoQtEcCkjSjqLxp+eKdj acvI13ItRy/3Cn738bv0ltJVQZNhgXszAuribt/HlAdGjnA9yaqgfs/Kf+cSvUsGKtI8rLZwpgI+r WLGtRLyA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sctFn-00000007Fdg-2gux; Sat, 10 Aug 2024 21:04:00 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 3BB1B300729; Sat, 10 Aug 2024 23:03:59 +0200 (CEST) Date: Sat, 10 Aug 2024 23:03:59 +0200 From: Peter Zijlstra To: Alice Ryhl Cc: Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Josh Poimboeuf , Jason Baron , Ard Biesheuvel , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , linux-trace-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , linux-arch@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Sean Christopherson , Uros Bizjak , Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Mark Rutland , Ryan Roberts , Fuad Tabba , linux-arm-kernel@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Anup Patel , Andrew Jones , Alexandre Ghiti , Conor Dooley , Samuel Holland , linux-riscv@lists.infradead.org, Huacai Chen , WANG Xuerui , Bibo Mao , Tiezhu Yang , Andrew Morton , Tianrui Zhao , loongarch@lists.linux.dev Subject: Re: [PATCH v6 5/5] rust: add arch_static_branch Message-ID: <20240810210359.GD11646@noisy.programming.kicks-ass.net> References: <20240808-tracepoint-v6-0-a23f800f1189@google.com> <20240808-tracepoint-v6-5-a23f800f1189@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240808-tracepoint-v6-5-a23f800f1189@google.com> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Thu, Aug 08, 2024 at 05:23:41PM +0000, Alice Ryhl wrote: > +/// Wrapper around `asm!` that uses at&t syntax on x86. > +// Uses a semicolon to avoid parsing ambiguities, even though this does not match native `asm!` > +// syntax. > +#[cfg(target_arch = "x86_64")] > +#[macro_export] > +macro_rules! asm { > + ($($asm:expr),* ; $($rest:tt)*) => { > + ::core::arch::asm!( $($asm)*, options(att_syntax), $($rest)* ) > + }; > +} > + > +/// Wrapper around `asm!` that uses at&t syntax on x86. ^ the above line seems out of place given the 'not' below. > +// For non-x86 arches we just pass through to `asm!`. > +#[cfg(not(target_arch = "x86_64"))] ^^^ > +#[macro_export] > +macro_rules! asm { > + ($($asm:expr),* ; $($rest:tt)*) => { > + ::core::arch::asm!( $($asm)*, $($rest)* ) > + }; > +} _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv