Received: by 2002:ab2:644:0:b0:1ec:cbc4:63fb with SMTP id 4csp1163758lqn; Mon, 26 Feb 2024 09:22:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUmjHpmkQI7+CtOwJLim2vVf/QO+m+U5jDKQbqTl7Y/9bNs3tolwD7hjMFxQqrrap74tpHuESUvzGFkfymQOu9D8jlawJMr1sZQ33lCLQ== X-Google-Smtp-Source: AGHT+IGcVB59pRY3DEC1y/+Ta+6FL4odJzVx43PzHOMM9WGjpVgJBS/EhKfOl1qp8xFpzk3ZnDGQ X-Received: by 2002:a17:903:2342:b0:1dc:30d7:ff37 with SMTP id c2-20020a170903234200b001dc30d7ff37mr10132627plh.42.1708968155661; Mon, 26 Feb 2024 09:22:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708968155; cv=pass; d=google.com; s=arc-20160816; b=vnFC1s7Vyy0hjX/vgSsVZtkuK0y/arqlpO5AHDQoEZCuxMqKIScQ45AuuMGsk8ogmm 6K+3/49q0MvFzuK9ARqd5kDS836mbBarrkFsVshPuz+fWxXuaPeCWGoxSboVgj70Cwkf +x77wA5ftaGgmdKLZEaZQBcwg/+Q36UwZ4xrzw7R8AbQHj2TQ8bhrPAJZqOqREkEO22R PX2ste+zXHxCjXBA7Sz3R48GFXDkDlXL2LZt99KvjHWMQkvUt7B4fVPWNU7WMz7zZWQK HPb4WBjfutygb/pox1zqhle1SBtfFBaVkCHrZNMDD+GaNkwHvWc0E1GFOC1vs9c7dDQu iKiA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=V3vn3rLr5G2NqalvLJxxGRPMV5b+Ax+IZGLTu4ZEzgI=; fh=lNbAW+ZnKsZYRRmIb65Yhd/voFfaziAGacu49pzFTv0=; b=cPRoJNxhw/FVyEZDYWhfOuEIDLBj4/Ee/5IvB4zK9w7RqLhhnduO4EGbeGaLAo31ZV Ceb2v5PoJj1uEsPz9v6FeVPdbVB7pVI/xEdS4N4Bs8W4ajwGBb2eq3YJavURiUzm1WjR EEQl8qmIkmTKPWrBYXDrSudNfUvE0WdUqKtzpBgrkHRo257YFdLCGLYuHdv3ln6HA3gf mcN9mSmCK5n2SAgug3zDCCF3OD3RFzAPxHvFGcDb3Po5+eE8kmNpNArrAWmzqq6oU4F9 gkPeWNr5wJi9doNQEO3O5FiK9ptcqbFVzhYW0vaIDH3WIpGdkuZqjOt4QEobruYJ6ZGo LVXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="eNhTIo/2"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h17-20020a170902f55100b001dc6cf4594esi4088637plf.96.2024.02.26.09.22.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:22:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="eNhTIo/2"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-82041-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82041-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 55350292381 for ; Mon, 26 Feb 2024 17:21:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60D0B12FF8C; Mon, 26 Feb 2024 17:19:13 +0000 (UTC) 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" 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 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