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 4AD24C48BC4 for ; Fri, 23 Feb 2024 09:31:45 +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:Subject:Cc:To:From:Date:References: In-Reply-To:Message-Id:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5M3vQXhpqFgWE1zYisBGKvhwTZM6PN11ZlQ1WRnU99M=; b=mGSY1AIWtuokCn O/t+5KfLagUDxWDyQ4aciqjeX/CJTNU+Y05zgPtwbpY9mzKQ9G6GcvlsPhLQzS2U92X0iSR/CmZIB o/3t1RrhegdtG+QxvC5r6AqWaZTuJfsHHwTAhruZBhP+7OGxWsmTZuBM5YB4M990SIHkhZCyktvKo 8EiOhGbmXvUt8ThywUW0XaOsEymBRSuj0FXlkd+oYi8x3oT3DXkYGkx8HncWaqL/HBBG8XBF9g3Wc N/VBBS0V/mRCPKBmbTsBBSQNYsZZwEtoxK9QQmb0UDK/L1CLy7lBDrimsBu4H1AF8HgQrAudy/xvg Zok91yLSTtg/j7SvKuRg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdRtu-00000008gCW-3XI4; Fri, 23 Feb 2024 09:31:26 +0000 Received: from fout5-smtp.messagingengine.com ([103.168.172.148]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdRoy-00000008fLz-3JWz for linux-arm-kernel@lists.infradead.org; Fri, 23 Feb 2024 09:26:26 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id B2A6413800D9; Fri, 23 Feb 2024 04:26:14 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 23 Feb 2024 04:26:14 -0500 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:subject :subject:to:to; s=fm3; t=1708680374; x=1708766774; bh=/QlPIDjVVl zKBideWNCbnn92dUK56p9N16qOUVbhOBk=; b=xngZSMKr2OjIyfLEslGLzM9xim XF4XxPu8th+8wnShqf/plTT89jqNGYjx4qGeNoaKV1Rjh8J2WRAGbrj678G2MiMy tNkfwz2Fl5jAaZgRDDU93O7Hhr7UryyZJ3WsIQuDDfGG5/EeEOlM0qIOEQXDjvQ6 ek3FUMiWswXPaCQWZM5SIfVeTvT78svlODF5dQ57NOv87fEzlaye9cW6fqlnWQ+0 Wvr+/jrFJFe/0sM/D4LfMRpntcxTlwwF4IKqYrYSd9+pIv+5EBV6M84ZqnRok6f1 NaV/RQ4H/yZ8kB2TBkz3mWn2SVUFbxQb9Y97aHeYdeGrIrXZQwCENtnTBKnw== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1708680374; x=1708766774; bh=/QlPIDjVVlzKBideWNCbnn92dUK5 6p9N16qOUVbhOBk=; b=YK/bGgC969cFZ+quPp+slt4s5c8fLFDkrVLCkgx78vYM wjz3+S5gvCAltV2MskaDhjBLxzoRyAM0hWIVlbSWTAa5+1Udh2c8K9LkuQqEqpNA 4z65V+rtipYxb29V/lpByAeLj4c51gzwuxFscTwdCsktkd6Q3ObhPfv2KpNHNaRl rlJjShKsYe1jM58Oqbla6eZwfnqQ32ZpfErZSGuK5S0yyfCLm02qQHaA1lEKwDEy njEgrCs7dnrTB+W3jPxcagcY3Ir7SqCErUVV/JbaTmaUhBD596EcJClHLabNrKj9 fHfgEFuInBVZDGu5jdu2WPEhhJsEQH1cUAabZqLzeg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeigddtgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 314D6B6008D; Fri, 23 Feb 2024 04:26:13 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-153-g7e3bb84806-fm-20240215.007-g7e3bb848 MIME-Version: 1.0 Message-Id: <0fe0add2-6b17-441f-a0e1-7c1ee9b0ea71@app.fastmail.com> In-Reply-To: References: Date: Fri, 23 Feb 2024 10:25:49 +0100 From: "Arnd Bergmann" To: "Naresh Kamboju" , "open list" , lkft-triage@lists.linaro.org, "Linux ARM" , "Anna-Maria Behnsen" , "Thomas Gleixner" , "Vincenzo Frascino" Cc: "Ard Biesheuvel" , "Catalin Marinas" , "Kees Cook" Subject: Re: arch/arm64/include/asm/atomic_ll_sc.h:298:9: error: unknown type name 'u128' X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_012623_037659_923F540D X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Feb 23, 2024, at 10:10, Naresh Kamboju wrote: > In file included from arch/arm64/include/asm/lse.h:5, > from arch/arm64/include/asm/cmpxchg.h:14, > from arch/arm64/include/asm/atomic.h:16, > from include/linux/atomic.h:7, > from include/asm-generic/bitops/atomic.h:5, > from arch/arm64/include/asm/bitops.h:25, > from include/linux/bitops.h:68, > from arch/arm64/include/asm/memory.h:209, > from arch/arm64/include/asm/page.h:46, > from include/vdso/datapage.h:22, > from lib/vdso/gettimeofday.c:5, > > from : > arch/arm64/include/asm/atomic_ll_sc.h:298:9: error: unknown type name 'u128' > 298 | u128 full; > | ^~~~ > arch/arm64/include/asm/atomic_ll_sc.h:305:24: error: unknown type name 'u128' > 305 | static __always_inline u128 The problem here is the separation of vdso/*.h headers and linux/*.h headers. Commit a0d2fcd62ac2 ("vdso/ARM: Make union vdso_data_store available for all architectures") introduced a reference to the asm/page.h in include/vdso/datapage.h, but this is outside of the vdso/*.h namespace and doesn't work in the compat vdso. I think it is only needed because of the PAGE_SIZE macro, so that constant needs to come from somewhere else. I have an older patch that I never merged to unify the page size configuration in Kconfig, and could try to dig that out if nobody has a better idea. If we do that, we could introduce a CONFIG_PAGE_SIZE. Arnd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel