Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1949859rbb; Tue, 27 Feb 2024 06:23:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUTP3HD+YDIUKi+DqqCO7vTG6WUA81zIDY1SFJ3pEhkUjLAzxRRDY7g1osjDgiR6sQs6EnmmNwHxbRj4sKYMIifcFik/EZaCi9pLvMHbg== X-Google-Smtp-Source: AGHT+IGEkfd94zfWFKnaVK850Pi0uv2bMkjQ2HBjVCyBRxGbX0cAyyAUnK/+yOTzP7jS3IcEGWTb X-Received: by 2002:a17:90a:f0c4:b0:29a:795:a132 with SMTP id fa4-20020a17090af0c400b0029a0795a132mr7856126pjb.18.1709043834398; Tue, 27 Feb 2024 06:23:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709043834; cv=pass; d=google.com; s=arc-20160816; b=ksdRUj9ydkwdIwFf6wU0CV26nBEldc+2HlpzPVfu1imWPhPr/LpNvit0TEuC1e9ufd N/otqt+5Vt0eAHQ8y8ywuuQSuk/cHU8mafHEnrC40roP57CPvQdMZgYNsyCTARRJlr0C r0tgJhC2KEbYl06LVJruE6xITEunAHoVrfU3IRnfHgYtxjBJ7QbjSZfhTKAt8gnIFAdm T+Qee2DDOSxL4xUPf8EktA9StCOJxstRvn1Ty5ljfvrwyqkfyQGlp7OTlPVa1z2bqUPC IJ+qI84JgSzq/ZdxsxfoeJc1ZcDMN88Y3wyB3GH+1Ap6tasQb9DXnM/sBGlqabMrPsjV w1Vw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=MoE3Qct5U8+LLRW28dCD9D3KdKx02ozSB8fXqU9GVOY=; fh=Q0kTm2/UZoi7HSzGO+u1xkqdKs8U7ZrRCaZ9/xtBoCg=; b=Sbhw8gLRW6NngpQR2xMO20unIPypKwNwJ2bTCSY9MIxno6X8DWcTJ8/2HWrC6qmXcE ZFKG7Or+LRkC8NaDB2Ii6lZeBUBwfr0g50F22aiaE+B2k6YlshucJ30VMAGbWTUR+5oe lXPjCSRTWVs9ywiP76Rztv6Skt4+FMtoO8MMur8p1QIV5NZ0QH0j4FKnAUKORM4Zivn7 j7bvTh8OuE7ECwz0qRTEghAz0cPyRcYXRKiQxaFMhD2sUEnRlw9pM3rIIcPVei3nqSCo GcYc4k9lj82bL1PAYzZAjSq4QZ8FQ0nyFFAM4BU87e/yTC3C/N9G0jGJ+GpUFWrJYoy9 X+pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-83343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id v5-20020a17090a634500b0029a89117356si6444284pjs.176.2024.02.27.06.23.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:23:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-83343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3F0ECB3190C for ; Tue, 27 Feb 2024 13:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 814A6145FE4; Tue, 27 Feb 2024 13:46:51 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D287E13DB92; Tue, 27 Feb 2024 13:46:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041611; cv=none; b=Uiow/9/52fL7OVx5zvM+wzCHV5vilm24F/2snq9fLDxkj71TX9O8KmXoYrzdLBYa5z2LL+lpH36B8OFt/tCCnf7DZaENy8+GQ3OKHv4AYu7spuPTlPZ4/aq3B5cc25zAad5qrxIuegssEjrNivdyDSxebl0N/PGtjzGUFih8kD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709041611; c=relaxed/simple; bh=Kvh5mtk92pn+GmzhsBj3v6EsxD9iSlLWlQs86SKVnTw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=R9ILh6W56NEBa7dvDQ+OitMrG0rfE9qRy7rVt2hlpt3W61iN1mE63RhxfsdZHvPJz3M0Tq93SkDe8YvHFL1Gy9zO42LJCqt4TAmBhYX5g3KUHP1SwQPSKaz1rfOjv/Mc0iQd8xqkybyA2E7bWWZSFVjQGMUTuh+zGVXXtv/ZKU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CB54C43390; Tue, 27 Feb 2024 13:46:42 +0000 (UTC) Date: Tue, 27 Feb 2024 13:46:40 +0000 From: Catalin Marinas To: Arnd Bergmann Cc: Thomas Gleixner , Vincenzo Frascino , Kees Cook , Anna-Maria Behnsen , Arnd Bergmann , Matt Turner , Vineet Gupta , Russell King , Guo Ren , Brian Cain , Huacai Chen , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , Helge Deller , Michael Ellerman , Christophe Leroy , Palmer Dabbelt , John Paul Adrian Glaubitz , Andreas Larsson , Richard Weinberger , x86@kernel.org, Max Filippov , Andy Lutomirski , Jan Kiszka , Kieran Bingham , Andrew Morton , linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, Linux Kernel Functional Testing Subject: Re: [PATCH 4/4] vdso: avoid including asm/page.h Message-ID: References: <20240226161414.2316610-1-arnd@kernel.org> <20240226161414.2316610-5-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240226161414.2316610-5-arnd@kernel.org> On Mon, Feb 26, 2024 at 05:14:14PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The recent change to the vdso_data_store broke building compat VDSO > on at least arm64 because it includes headers outside of the include/vdso/ > namespace: > > 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; > > Use an open-coded page size calculation based on the new CONFIG_PAGE_SHIFT > Kconfig symbol instead. > > Reported-by: Linux Kernel Functional Testing > Fixes: a0d2fcd62ac2 ("vdso/ARM: Make union vdso_data_store available for all architectures") > Link: https://lore.kernel.org/lkml/CA+G9fYtrXXm_KO9fNPz3XaRxHV7UD_yQp-TEuPQrNRHU+_0W_Q@mail.gmail.com/ > Signed-off-by: Arnd Bergmann Acked-by: Catalin Marinas