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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6806FEE49A6 for ; Sun, 20 Aug 2023 02:36:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbjHTCgB (ORCPT ); Sat, 19 Aug 2023 22:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjHTCfr (ORCPT ); Sat, 19 Aug 2023 22:35:47 -0400 Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A84355D4C7; Sat, 19 Aug 2023 16:12:57 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 0106B580126; Sat, 19 Aug 2023 19:12:55 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Sat, 19 Aug 2023 19:12:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1692486774; x=1692493974; bh=eF p9xFgSVp+I1HTUH+y+7224okESMQ+VhbU3Am512Uw=; b=GXs5Ux18dB7s0wFIA7 EqEXXEICoPI+MlJNUcsMVjF7KAdxknUeboQC5nn/yYM6tgVpl/0TwWMvATMWmHtZ hkhuQaHdleRtYpTuCi0aIVczwIb5ZMgxlN59ySsDf7vRpemRUuR2fS0+ICwtJJG7 qTqYF0dpBsTOaGt81+niyXp1SOH+gdl2UekcgeMO3ns+Hw/YckLwE91NXkRyH1LK oLIZbt0G8sqGDBiWeWNOsvs48hgFiRT43a31LbgBuSD/BtnQI1UHBVTBXpkxygoW +aMuYaE7TEx2ASCa1kooI7poXJi0tfN1WFo5UrMrfVYL5r+EhBOqC0koyppfKcTW kjDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1692486774; x=1692493974; bh=eFp9xFgSVp+I1 HTUH+y+7224okESMQ+VhbU3Am512Uw=; b=Udursr+emtzG/itOBWyrlF2MXy/uT JC8uydwvvtDYj3J6YYUbAp7hQSYTYVpNZkujBOjtQeedXkQuWLtN3LTll+AVzSwA yECKLkED1sAXwOkHu0SecwJbyYfbTc8vhjKF+YVTplEZpTrz7bQTwjcp0Mfdf75N CO3+YgwY/KEbAAWElpsSZTbhk83SrFMKVl6NFZXDq8LkSFtlTsVzmfZUGOsABvh9 SW8hntLOBpOe9NCE2I99ewFmBrUfl7T1ejFkCvr2ExDNM58bhUMwS2gZ+2cNPrdC cUYhGlwW0psGSQtEJBJF5WtrasD3qV17MD7gOs+JDwzW2EaQ7hfC2ljyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudduiedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id F0FB0B60089; Sat, 19 Aug 2023 19:12:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-624-g7714e4406d-fm-20230801.001-g7714e440 Mime-Version: 1.0 Message-Id: <320be16c-32a2-4f34-9a30-e352f8203671@app.fastmail.com> In-Reply-To: <20230704083022.692368-1-davidgow@google.com> References: <20230704083022.692368-1-davidgow@google.com> Date: Sat, 19 Aug 2023 19:12:29 -0400 From: "Arnd Bergmann" To: "David Gow" , "Richard Weinberger" , "Anton Ivanov" , "Johannes Berg" , "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "Dave Hansen" , "H. Peter Anvin" , "Noah Goldstein" Cc: linux-um@lists.infradead.org, x86@kernel.org, Linux-Arch , "Geert Uytterhoeven" , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] asm-generic: current: Don't include thread-info.h if building asm Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Tue, Jul 4, 2023, at 04:30, David Gow wrote: > asm/current.h is included by some assembly files (either directly, or > indirectly). This works on some architectures (such as x86), as their > implementation of current.h is careful to not include any C, but the > asm-generic version includes linux/thread-info.h unconditionally, which > leads to errors when either C code or non-asm-compatible preprocessor > directives are included. > > Just wrap the contents behind an #ifndef __ASSEMBLY__ to avoid any C > code making its way in. > > Signed-off-by: David Gow Acked-by: Arnd Bergmann