Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1395844rbb; Mon, 26 Feb 2024 08:02:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWIpVcwQot0Sh6LE32ktTEQETwsfimmcV2nGhmezGTDrwo38SKF5BFWRTQ7tAbR2jF/5LHPCLevVwX82Jl/TNH2tS8BDAVX8bF67e4tCQ== X-Google-Smtp-Source: AGHT+IFevW1C+MwOH+rlx77FfE1c9I3SYEYJiapNI7VNFWikB2/tAKmLK0gOECnb1JLn7e+VCTay X-Received: by 2002:ac8:5c4d:0:b0:42e:897a:cc69 with SMTP id j13-20020ac85c4d000000b0042e897acc69mr2194761qtj.35.1708963328360; Mon, 26 Feb 2024 08:02:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708963328; cv=pass; d=google.com; s=arc-20160816; b=y+oa3GCW+Ta9th0gsUJ8ZSyRDiJiz6LQsPV/5pe3mUZH1erxCH7U+0UBJ2n844+dTD Q8UGmDd1lMgCfgrTNnIElS4k4OsNvPUOJ3ghq7pFz1lijTcRDQV5wmTeB4RxHUhrf3a+ vWO+OBKqK+oAW68mXm0tbXgkt9IpGupCGJjGfYDkeO8NxwpC5mk8dqHLzBNspLK7Yjcn SSziQIRK+8tbOaVM7/6TfC+DOxqaky0bc1cMBVQUqjHZjPELjsEqJ4/ArmPmWr+XX9mV 6wRoMp5Jtrumv0f4wXeGFxgG4e5mu9j3i6RAEq8QpMoLp8qgzJyPrpIqVZjrmP8y3ibF hU6A== 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=WEmhdiiQQbTfuRjiNB7+533BTNvYbMz78iuKIE4w618=; fh=lNbAW+ZnKsZYRRmIb65Yhd/voFfaziAGacu49pzFTv0=; b=zxVdIdL7m+X+xU1axHApS3rXXyRl3zKajkdRUedpPhKkI97YN3go3PzH1A/oafEtKh /HGhS6tNJ1mcUaWSWUqdp/xuWw3UoyF0AMp7+2i3N5f5juBBi1O/pM4zdy8X5YSD+jLQ 7MMpPGwaH/syyzJfv0lAjUJcTtCxsIAPN2fgN+jpFTcMsFGAWIgwWFFyPxbrulMHrkn/ 72+PW4PydktJyw4MsZyNZ1t/YC+9+6bu/LlSomxXZZejhoQzrIRrdpXOpsG/OhF2oaIJ 6vyC0BOKdgXYSvkZnkjiNSucuBb2J+hRaK9GefJsojnvknSFajE/p0oaX5S0bfTp+BxX fU8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=dXqqfxIv; 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-81854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81854-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id js25-20020a05622a809900b0042d918da42dsi5356492qtb.37.2024.02.26.08.02.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:02:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=dXqqfxIv; 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-81854-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81854-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1F2741C29520 for ; Mon, 26 Feb 2024 16:00:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B50D412CDB0; Mon, 26 Feb 2024 16:00:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="dXqqfxIv"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="e36mqOQp" 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 9EC5A12C7F4 for ; Mon, 26 Feb 2024 16:00:22 +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=1708963224; cv=none; b=kXhJ8EGF+EIUd1p0sTICLbQU2nqaOCDX71jsSWcs1Xnt2R/hoMwR0bs+3ByDeUtnHmDDkpUz1gpI5YCD4MNzpSd/wthZ/adKbKkzcOvbPOcd4AAgdbuAOXSs9oD7Ylov0j2zyyDkDlS6cjNc+mLREj7dmL9HbUNIznbNSWAnY/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708963224; c=relaxed/simple; bh=zx5/mIFUTU3yjrLv62x/L8m8qfx6G0kMg3WAxLQv1gI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=cUgnBRyOS/fIPyrvITuo+e6Piizib36asVplcFp2VayrNsdDc00ZDbC3vItV3v0Oima+NwQ9PXibZhcXS4bFjhXVr3+8KL+cxmfJSc2VUmb79pN2laVhfQwQGsgIGIIL+IvMvycTg10MoIwgRiPl3F9CHMifxgXWF11kdLQzFcA= 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=dXqqfxIv; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=e36mqOQp; 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=1708963220; 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=WEmhdiiQQbTfuRjiNB7+533BTNvYbMz78iuKIE4w618=; b=dXqqfxIv9snhj53TLlWIoYnlfb2uv2KCZYP0gst5jHNgf+TacKXsogPHCK0T73IAZ2or8m mDl9B1Z2CIO6m3VBkrVk9rsBXShjB3YAx81XMe9dtHjB9BQ2sLlc2jecIjYL997IxLq87w axZ8ExqOBivLnwBmYIWlSqIN3D0WNBZQWQMGjx7iQFKMFWIq7xuhOSyytNkDBgdxqnqwgl nh+RcVDQj5yWCi0WWHXHl+CgH1h7pNfArIZTNpobXhZB9+8dwbqvhssq0J6auC7qEq+JgA 94qTo83w2ufuYAjAoexK1mQOX/9jFwFJ0gYZmBNDFttXxX7pSRFziG6AMNIX2g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708963220; 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=WEmhdiiQQbTfuRjiNB7+533BTNvYbMz78iuKIE4w618=; b=e36mqOQpOvMbmMukekA46dOhO4E6SSBBK1zQDxRVK/a9JFTFZjjmQuS0YAMjSr3HFeQd6B 3xS/EnFxXx+GZSDA== 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: <0fe0add2-6b17-441f-a0e1-7c1ee9b0ea71@app.fastmail.com> References: <0fe0add2-6b17-441f-a0e1-7c1ee9b0ea71@app.fastmail.com> Date: Mon, 26 Feb 2024 17:00:20 +0100 Message-ID: <871q8zkygb.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 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. But the asm namespace works for the vdso namespace. Only linux headers do not work, or am I wrong? > I think it is only needed because of the PAGE_SIZE macro, > so that constant needs to come from somewhere else. Yes. > 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. 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<--- Thanks, Anna-Maria