Message ID | 20240226161414.2316610-1-arnd@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2179120dyb; Mon, 26 Feb 2024 08:14:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqqS5/WbdXfp1I2nGmK4NrpUGS8jLrd5CoS2ia5/zdDoJepdOmLOZNsko86YBywjfvwOwNOLB0l9Zj628rt8GPay7o0w== X-Google-Smtp-Source: AGHT+IGmeal7LZP2DvPFH0pFPPWKx7LTXQ122LtSUpewZj9j6wuykkrf/JBLbB8QG5OsU67ajR1/ X-Received: by 2002:a17:906:ae93:b0:a43:4876:9842 with SMTP id md19-20020a170906ae9300b00a4348769842mr2267520ejb.47.1708964094483; Mon, 26 Feb 2024 08:14:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708964094; cv=pass; d=google.com; s=arc-20160816; b=hjqNFVA5WFSv+eBZ5DFh7tpgvyOfqjDepgC7mtU3GswA4j6Srw7kM2CgdnJJE8kfOt TI0U84XO5euAv3TOcM+UelR2EuZdDE9s+SGxmd9UOLiZey4ITH7GWEKkE399HXyaGLBf 5lexNTEqRQPnMhR5Z9m53cMi6JKaG2dyDbnZ0gsvH+3rPbujAZb3gD2V/N4GBTDRGtdZ kpQ6PLwfzyLcVGPtBMYyDPMloEnye1HbmlRAaXgMONKB1dkZwL366FcklM2wYDYro+JO dz4lILp+seSLP6hrG2tdLMbeXZwDhPzx6oByS57LQZf+zIdl9Hrd2n2HJJJSRXGfB1XR wmxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=SZ/JLh/NSacC9JehElzjN/XIJz1UVIO+puJM10GPPSI=; fh=z4y7kjuk5z+YTAeXkD+6mbCUksBYTMDhg4qLYBEBhVI=; b=xCj6/RNlCxHlhYp32weeohUYUdlz/ag95Aut7FSaNr+6jB3NI6VmSwNuzIZqzd3oJ1 ocy5oIC9V74UfhtcN1X/GgOT6BN0FhrQjy2cJstgQeSB3Jd3C+WSV69cPlvTDKbqipFM sTXyHtbpUOAfRQGgrgGZgLJ9x2p6yCjCccOC/CyRnr/x6gsMwT1s84Jp0pQZX+5fmiZo cCVwUTzmVl+6NRjtJ4SkUzgqfVyl9hl1hUdIXlswy6xEZi8GHvt4mDaidubNsvi4HhyX boyBze3f2peWypprGG4BpUbKSPFL63a3YE3GDuR2AZPoeFLnVt89RxHbiO3zWW1UwbK1 A8qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ouv+E5W1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q10-20020a170906144a00b00a3ee6998ee2si2282545ejc.441.2024.02.26.08.14.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:14:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ouv+E5W1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81877-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id DFFD31F2C298 for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 16:14:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67C2B12C81D; Mon, 26 Feb 2024 16:14:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ouv+E5W1" 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 DBEE7604A7; Mon, 26 Feb 2024 16:14:33 +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=1708964074; cv=none; b=SKNsP3AB76Z27dRKQvJMO194jmhCMGQoMoPq7tazGgSWXNLktisWG6+S5GaVJB9bNvcNdyPEJDCxWAa1c6NQAgr5e8vJCLc6Nd3XSWFLSChfSUO49QTKcJhwzhDy9poGL9fBuV/+N/B1Hrgo4c7E9gkjDokX2dD8uTN4DYw0kO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708964074; c=relaxed/simple; bh=zxbqCp3xg1MTZv6nVkuYc0VOPy7Z/0KoLu5xdBZOcDY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Y4iChQ2UuZf25lq9UumAyHHLuSd8Ri+0IcLnRkWadsISLl70JgGMzwAHsA3oqUXZFQO2pfETieol5457UVZvwy4XwdoEgoh9BIMfLdi013iX/Kfj0bHJaCZc3T66mqby6yQUBs6vdqp6eQb23gk55bUach6ffqnz8Birv+R/NBk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ouv+E5W1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5D63C433C7; Mon, 26 Feb 2024 16:14:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708964073; bh=zxbqCp3xg1MTZv6nVkuYc0VOPy7Z/0KoLu5xdBZOcDY=; h=From:To:Cc:Subject:Date:From; b=ouv+E5W1cQ1zHWEvJshxERHNgYSjJzR7JdvZMtKsmjTnnYsjb50xz7yQ6NNDLjL+R zIivYPxRBLqLiotGJhvVTBVfzRjkLFR+UKz+Blle7mLm83hZaxjZLxJiSIm8KsFpk8 T2yQYC7g3LmUbscrU9t5jUZdMHfRtyoT7a/p66cZn/Wi8wvAOCFlueNWvORfaCli+Z S5t1BgjPEeJ3eGf1KMTEe7SIO0Rv5QLKXRaKqNQXL1yQWzRzHXLOOgf0gh7VMNEgGS /h/uyIFz30OGZTAygrSMurYRpnmZAOjoQMG9QUrFxlxLnbjp2UPK2IvIxVWUAhRAM9 8PLY/d6Nx9Yzg== From: Arnd Bergmann <arnd@kernel.org> To: Thomas Gleixner <tglx@linutronix.de>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Kees Cook <keescook@chromium.org>, Anna-Maria Behnsen <anna-maria@linutronix.de> Cc: Arnd Bergmann <arnd@arndb.de>, Matt Turner <mattst88@gmail.com>, Vineet Gupta <vgupta@kernel.org>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Guo Ren <guoren@kernel.org>, Brian Cain <bcain@quicinc.com>, Huacai Chen <chenhuacai@kernel.org>, Geert Uytterhoeven <geert@linux-m68k.org>, Michal Simek <monstr@monstr.eu>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, Helge Deller <deller@gmx.de>, Michael Ellerman <mpe@ellerman.id.au>, Christophe Leroy <christophe.leroy@csgroup.eu>, Palmer Dabbelt <palmer@dabbelt.com>, John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, Andreas Larsson <andreas@gaisler.com>, Richard Weinberger <richard@nod.at>, x86@kernel.org, Max Filippov <jcmvbkbc@gmail.com>, Andy Lutomirski <luto@kernel.org>, Jan Kiszka <jan.kiszka@siemens.com>, Kieran Bingham <kbingham@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, 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 Subject: [PATCH 0/4] arch: mm, vdso: consolidate PAGE_SIZE definition Date: Mon, 26 Feb 2024 17:14:10 +0100 Message-Id: <20240226161414.2316610-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791978734289620603 X-GMAIL-MSGID: 1791978734289620603 |
Series |
arch: mm, vdso: consolidate PAGE_SIZE definition
|
|
Message
Arnd Bergmann
Feb. 26, 2024, 4:14 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de>
Naresh noticed that the newly added usage of the PAGE_SIZE macro in
include/vdso/datapage.h introduced a build regression. I had an older
patch that I revived to have this defined through Kconfig rather than
through including asm/page.h, which is not allowed in vdso code.
I rebased and tested on top of the tip/timers/core branch that
introduced the regression. If these patches get added, the
compat VDSOs all build again, but the changes are a bit invasive.
Arnd
Link: https://lore.kernel.org/lkml/CA+G9fYtrXXm_KO9fNPz3XaRxHV7UD_yQp-TEuPQrNRHU+_0W_Q@mail.gmail.com/
Link: https://lore.kernel.org/all/65dc6c14.170a0220.f4a3f.91dd@mx.google.com/
Arnd Bergmann (4):
arch: consolidate existing CONFIG_PAGE_SIZE_*KB definitions
arch: simplify architecture specific page size configuration
arch: define CONFIG_PAGE_SIZE_*KB on all architectures
vdso: avoid including asm/page.h
arch/Kconfig | 58 ++++++++++++++++++++++++++++--
arch/alpha/Kconfig | 1 +
arch/alpha/include/asm/page.h | 2 +-
arch/arc/Kconfig | 3 ++
arch/arc/include/uapi/asm/page.h | 6 ++--
arch/arm/Kconfig | 1 +
arch/arm/include/asm/page.h | 2 +-
arch/arm64/Kconfig | 29 +++++++--------
arch/arm64/include/asm/page-def.h | 2 +-
arch/csky/Kconfig | 1 +
arch/csky/include/asm/page.h | 2 +-
arch/hexagon/Kconfig | 25 +++----------
arch/hexagon/include/asm/page.h | 6 +---
arch/loongarch/Kconfig | 21 ++++-------
arch/loongarch/include/asm/page.h | 10 +-----
arch/m68k/Kconfig | 3 ++
arch/m68k/Kconfig.cpu | 2 ++
arch/m68k/include/asm/page.h | 6 +---
arch/microblaze/Kconfig | 1 +
arch/microblaze/include/asm/page.h | 2 +-
arch/mips/Kconfig | 58 +++---------------------------
arch/mips/include/asm/page.h | 16 +--------
arch/nios2/Kconfig | 1 +
arch/nios2/include/asm/page.h | 2 +-
arch/openrisc/Kconfig | 1 +
arch/openrisc/include/asm/page.h | 2 +-
arch/parisc/Kconfig | 3 ++
arch/parisc/include/asm/page.h | 10 +-----
arch/powerpc/Kconfig | 31 ++++------------
arch/powerpc/include/asm/page.h | 2 +-
arch/riscv/Kconfig | 1 +
arch/riscv/include/asm/page.h | 2 +-
arch/s390/Kconfig | 1 +
arch/s390/include/asm/page.h | 2 +-
arch/sh/include/asm/page.h | 13 +------
arch/sh/mm/Kconfig | 42 +++++++---------------
arch/sparc/Kconfig | 2 ++
arch/sparc/include/asm/page_32.h | 2 +-
arch/sparc/include/asm/page_64.h | 3 +-
arch/um/Kconfig | 1 +
arch/um/include/asm/page.h | 2 +-
arch/x86/Kconfig | 1 +
arch/x86/include/asm/page_types.h | 2 +-
arch/xtensa/Kconfig | 1 +
arch/xtensa/include/asm/page.h | 2 +-
include/vdso/datapage.h | 4 +--
scripts/gdb/linux/constants.py.in | 2 +-
scripts/gdb/linux/mm.py | 2 +-
48 files changed, 153 insertions(+), 241 deletions(-)