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 B6C27C48BF6 for ; Mon, 26 Feb 2024 17:19:23 +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:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aihGnZoEdNvS7cTIBBPYLDrkQsxtXOquVZ2L3PP7jWk=; b=x6rvyX1E8CN2/c wwKetmSSTML8K1KfATjKnoHf5d2gq1v8a+WyreOntkqKX0wReoqFKfuXFdcJg0eI4EGFpFe/uqo8K enlIkdTYxe4KEUsKMHB91B4dE//uqF3vDk2R/m6POA74pv/eVbgzCvbAYP9lEEE7FBSzc2hFZujOv SCZvPKit3S4+mq1yCpoMpkaPln3PLJCpqbFqb54kw47awkjYSShfo8hDzCpiP1RN9I/wJXU/FHQPX oRAJNLNBn+73PVo6hcIuKJieSGPIkPPok6v8+fgZE8iH1XfcjjLBbdFoAZxtDPeWcSVZnFxb8o3Yb RZxz0miLFf2SxHDp6fkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1reedF-00000001uJt-2hX1; Mon, 26 Feb 2024 17:19:13 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1reed9-00000001uHj-3fEd for linux-arm-kernel@lists.infradead.org; Mon, 26 Feb 2024 17:19:12 +0000 From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708967945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V3vn3rLr5G2NqalvLJxxGRPMV5b+Ax+IZGLTu4ZEzgI=; b=eNhTIo/2o/RWZs1pVkfZG/4iSYj+Fq4lfpzGaiNGzKPenf5WsKnoNIN/N+ToalNrqOFzUi B3qG725EMvlSkwhNmA7oDgkiuf2oJnWc8uThdWvlz2UN9jfHouxmF4xFTMEKWlD66zciO6 fM/g4/uWJ6JP/CWQTa5vzUjif07bN9BydW5Nv7rqH+3Lmosx4LrWxy+SUOhitZ76GJ9vYE 6TxrbUNq8u6UXtIn0OIdNibFimGIe8tVYKJpwaRaodcctqspYDml2mqah3l1y1DY0w7mdm kq6OXdX4BcPMCl4JCm/nYpFW82AC5F/PvAHVeRiPQ9WaZm/wva08WTvuGPVt4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708967945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V3vn3rLr5G2NqalvLJxxGRPMV5b+Ax+IZGLTu4ZEzgI=; b=wJ7UNBSeICW3VDibCMDLFvkAv2zCuzVWNl9Gbg368H8OVoZJxmReNGCIcT+MDGt7WB4qRP 1r9yQnfY3kOsDQAA== To: Arnd Bergmann , Naresh Kamboju , open list , lkft-triage@lists.linaro.org, Linux ARM , 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' In-Reply-To: <23e6b40b-deb4-4e94-b454-cb2af0543af1@app.fastmail.com> References: <0fe0add2-6b17-441f-a0e1-7c1ee9b0ea71@app.fastmail.com> <871q8zkygb.fsf@somnus> <23e6b40b-deb4-4e94-b454-cb2af0543af1@app.fastmail.com> Date: Mon, 26 Feb 2024 18:19:04 +0100 Message-ID: <87wmqrjg8n.fsf@somnus> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240226_091908_107113_0E88F014 X-CRM114-Status: GOOD ( 15.65 ) 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 "Arnd Bergmann" writes: > On Mon, Feb 26, 2024, at 17:00, Anna-Maria Behnsen wrote: >> "Arnd Bergmann" writes: >>> 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. >> >> But the asm namespace works for the vdso namespace. Only linux headers >> do not work, or am I wrong? > > The vdso namespace was added to have something that works for > userspace code in both compat 32-bit mode and native (32 or > 64) bit mode, while anything outside of include/vdso may not > work here. > >> PAGE_SIZE is defined in asm/page-def.h for arm64. So this could be a >> fast fix (tested with clang-14): >> >> ---8<---- >> --- a/include/vdso/datapage.h >> +++ b/include/vdso/datapage.h >> @@ -19,7 +19,11 @@ >> #include >> #include >> >> +#ifdef CONFIG_ARM64 >> +#include >> +#else >> #include >> +#endif >> >> #ifdef CONFIG_ARCH_HAS_VDSO_DATA >> #include >> ---8<--- > > I've sent my own patch now, which is something we probably want > anyway, but is obviously much more invasive thank your four-line > patch. Yes I saw it already. > Maybe we can put your quick fix in the tip tree for the moment > and I put my patches into the asm-generic tree, then > we can do the trivial cleanup from my final patch later. > I'll send a quick fix and reference there to your future cleanup queue. Thanks, Anna-Maria _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17AEA12C7E1 for ; Mon, 26 Feb 2024 17:19:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708967952; cv=none; b=TIoKBQnkqDMBqqCogFY3IJHm/yJAmDWQXC27xix4lhcdrPEZhoQsoWhfkonrRzZGfWEUZEMXx0qxlviA4o2e3oWRi8kTAiuY3sr3dDPTpnlxq9u5VXmGGXeIWNpOA4IV5Fg1IE8Vx60dUOk/T1Wy1J2bvumQkHKHrsBPwrMnch4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708967952; c=relaxed/simple; bh=HD230qnCazUJ0VkUYF/KpSDIa6u84SjbwrA7bGZsANE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=iPTXh+YOXo/FfQl41aqu1NOapGS0mopnf2DNpdrHBS1RIKcwakC/11AG91mMiQNbs9w/yNjpIZ4KLkG+nru6Y+Qh4AZci9CA5EMapRYoNkgdiaL3fw0cXZxLdp/D8TmTr5bJIISV+Oj/Bk/sZaXnr6uxgyR8q5qcF7NdIQ1A7lw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=eNhTIo/2; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=wJ7UNBSe; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="eNhTIo/2"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="wJ7UNBSe" From: Anna-Maria Behnsen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708967945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V3vn3rLr5G2NqalvLJxxGRPMV5b+Ax+IZGLTu4ZEzgI=; b=eNhTIo/2o/RWZs1pVkfZG/4iSYj+Fq4lfpzGaiNGzKPenf5WsKnoNIN/N+ToalNrqOFzUi B3qG725EMvlSkwhNmA7oDgkiuf2oJnWc8uThdWvlz2UN9jfHouxmF4xFTMEKWlD66zciO6 fM/g4/uWJ6JP/CWQTa5vzUjif07bN9BydW5Nv7rqH+3Lmosx4LrWxy+SUOhitZ76GJ9vYE 6TxrbUNq8u6UXtIn0OIdNibFimGIe8tVYKJpwaRaodcctqspYDml2mqah3l1y1DY0w7mdm kq6OXdX4BcPMCl4JCm/nYpFW82AC5F/PvAHVeRiPQ9WaZm/wva08WTvuGPVt4g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708967945; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V3vn3rLr5G2NqalvLJxxGRPMV5b+Ax+IZGLTu4ZEzgI=; b=wJ7UNBSeICW3VDibCMDLFvkAv2zCuzVWNl9Gbg368H8OVoZJxmReNGCIcT+MDGt7WB4qRP 1r9yQnfY3kOsDQAA== To: Arnd Bergmann , Naresh Kamboju , open list , lkft-triage@lists.linaro.org, Linux ARM , 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' In-Reply-To: <23e6b40b-deb4-4e94-b454-cb2af0543af1@app.fastmail.com> References: <0fe0add2-6b17-441f-a0e1-7c1ee9b0ea71@app.fastmail.com> <871q8zkygb.fsf@somnus> <23e6b40b-deb4-4e94-b454-cb2af0543af1@app.fastmail.com> Date: Mon, 26 Feb 2024 18:19:04 +0100 Message-ID: <87wmqrjg8n.fsf@somnus> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain "Arnd Bergmann" writes: > On Mon, Feb 26, 2024, at 17:00, Anna-Maria Behnsen wrote: >> "Arnd Bergmann" writes: >>> 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. >> >> But the asm namespace works for the vdso namespace. Only linux headers >> do not work, or am I wrong? > > The vdso namespace was added to have something that works for > userspace code in both compat 32-bit mode and native (32 or > 64) bit mode, while anything outside of include/vdso may not > work here. > >> PAGE_SIZE is defined in asm/page-def.h for arm64. So this could be a >> fast fix (tested with clang-14): >> >> ---8<---- >> --- a/include/vdso/datapage.h >> +++ b/include/vdso/datapage.h >> @@ -19,7 +19,11 @@ >> #include >> #include >> >> +#ifdef CONFIG_ARM64 >> +#include >> +#else >> #include >> +#endif >> >> #ifdef CONFIG_ARCH_HAS_VDSO_DATA >> #include >> ---8<--- > > I've sent my own patch now, which is something we probably want > anyway, but is obviously much more invasive thank your four-line > patch. Yes I saw it already. > Maybe we can put your quick fix in the tip tree for the moment > and I put my patches into the asm-generic tree, then > we can do the trivial cleanup from my final patch later. > I'll send a quick fix and reference there to your future cleanup queue. Thanks, Anna-Maria