From patchwork Wed Sep 25 21:06:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 13812425 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D281CCF9F8 for ; Wed, 25 Sep 2024 21:06:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C025F6B00AB; Wed, 25 Sep 2024 17:06:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B8B216B00AC; Wed, 25 Sep 2024 17:06:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A05056B00AD; Wed, 25 Sep 2024 17:06:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 7E6BC6B00AB for ; Wed, 25 Sep 2024 17:06:48 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E578A1A10D0 for ; Wed, 25 Sep 2024 21:06:47 +0000 (UTC) X-FDA: 82604494854.14.F27138F Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by imf29.hostedemail.com (Postfix) with ESMTP id 37E8912001F for ; Wed, 25 Sep 2024 21:06:45 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ty4V85so; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of arnd@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727298316; a=rsa-sha256; cv=none; b=dDGPLmJLPZIBGyzzfglU850ddYW42Z6KG2BIvP/mOfAdLnhXcOu8LB7D/eStcOE92RX5Hi Ew06bKIuUtY8DktiHr88uNJxB7Q3uOqxTuqrEQzpeU4KI3pO+CCl/c5QJy70UHV2/dumtr mEj7dnuarhlA1Y0P0TUZLVSyLcbA+iQ= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Ty4V85so; dmarc=pass (policy=quarantine) header.from=kernel.org; spf=pass (imf29.hostedemail.com: domain of arnd@kernel.org designates 147.75.193.91 as permitted sender) smtp.mailfrom=arnd@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727298316; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=YBw9debRdj8ZXsLvKxnJvsjFaKwQGvqqVLYIvm1Ct54=; b=BnKb8RlVpFSwhQfCDtRY0WKy72g7YWX+WR3s8+YNyHaWGEJaYURQUhD6yCsIg8LMBFPiz6 FDvpwW26oPxk8v8n6doaqHbZMgRk3R/VYaJSbQ3s27lbObfhmst3nrtPvV2OL/0en0bOK5 TLdTr+jZ6RVtgkv4+lztFPHgRSjZvjg= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 0C0F7A4488D; Wed, 25 Sep 2024 21:06:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B07B6C4CEC3; Wed, 25 Sep 2024 21:06:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1727298402; bh=ov11DCW5fbfEkeXbc3N4tknYqvWLCe6U3JzkfrFWpkU=; h=From:To:Cc:Subject:Date:From; b=Ty4V85soYpqEM8sUDM/PovDueJXmKYgUPZM3jqIVSWscNGO92pmJEBZ1JtV6lKwJu /VNXVBsrBStlI+XfgvZYiro5DKkIxm1ox9IPT+JTFsrByJ7QQm6NjYBoXUBQxPCXLS dj5bSZq++t5pObMmZdgm5I9UMfcwcKwUA1wBFgahGj4alaWxqRSwAUTR4/2d034XBs WfH5LoTr3+nivVv/e+fjWSSrGa4mL16ZuTIMzAQvCXJOw//669VS4xztlBK2UwzGsJ AJOAs+o3b2GwT7zi/iHnQ4PcfCPCbxIqmRkrUIFZPDrXPvg7ncTbC16FbQwGAeeU/r TTlUE0B/JK86A== From: Arnd Bergmann To: linux-mm@kvack.org Cc: Arnd Bergmann , "Jason A. Donenfeld" , Alexander Viro , Alexandre Torgue , Andreas Larsson , Andrew Morton , Ard Biesheuvel , Christian Brauner , Christoph Hellwig , Christophe Leroy , Damien Le Moal , David Hildenbrand , Greg Ungerer , Helge Deller , Kees Cook , "Liam R . Howlett" , Lorenzo Stoakes , Matt Turner , Max Filippov , Michael Ellerman , Michal Hocko , Nicholas Piggin , Richard Henderson , Thomas Bogendoerfer , Vladimir Murzin , Vlastimil Babka , linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org Subject: [PATCH 0/5] asm-generic: clean up asm/mman.h Date: Wed, 25 Sep 2024 21:06:10 +0000 Message-Id: <20240925210615.2572360-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Rspamd-Queue-Id: 37E8912001F X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: q4efzjatg8dsbuwdfmif55icjjwq7gpq X-HE-Tag: 1727298405-234164 X-HE-Meta: U2FsdGVkX1+wEf7pt4Ct9UFmfwxFO0HqtijpTG9wyX8ayCofE2oBhB2Nnie/SdOpBS4jwqyOjNYzhXrq9qkAKUpWD5Ya+ee2Vq+TuiXX25sI2OMs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4bNKXeXUTXvC53VQpv3hWwLB+JqlbXxnF2y0ZWGglutOoqbQguSrGDcUyjIWgLaIqNHWEOABcQ82OI0Ezte4hu6KKZZG0MmekXckkm/o71KDetyugLRvsE1E9RFRiLApPjhZRYkef9kIZ59MIZngbwF5pPZwyTYw/zO9RFCllhT3YD7i5Cmpqj26WG4S1hlBVqSUlllcWg2at3kVqRC0zBuFTE5xWLdLquzHw+ipz1nCEGwmVLgoH1bcF/g1X6dquBRmT6sZm1JIDiZNY9ZtjZBM9OQLA5ku0jz8qc4aETsvmVQRtjAxA/uWKCDFu4Wo2UARWGqsrOHezjRnBBGy6OBltWK8/DWKyQm5NNvxucrS/IcfIb+p5mRsfXSMQYM3luZf8muJ9VFyzH7R5DDQcVf5aCdMykBy096F/xIW2J0GRCXYHRFc0aeP12fF44BC3yramZOckYfDP2LCtdz5+RfbUi1MK/lG6oBE9reQbxauzo/qPpdvt/DOVBFhMthxNFQLibK2ai3MyV2TJ1mWVaTR5hiOnGDMwiOXK/03nPD6uuv+tuyjamBeVkVeabub0dilffUYEGPzZpbFQIVkW/kwBetGx1lpcYP80daWzqQX72MgHYZqVdzu+XLxv6Aich6j+4C4qb1x6/7WEx3b/Dci8GCWf60L3thfVoH+xpGIsLzTaValpsFw6vD8PSSm8wl57zOvUhQX2ezV006HHC6Kf2yuF0e7OkK5QUgGF5xPNxJehgjwvYyvRE2uPHU4oni+L pH6M1WsS cKx5xn2i/QDmpGV0ABvm6LbomZGmph5IXIBEUOncSZWRZUmW8yCGAkJ6jOV1AXLSe42/eOqAbdpwh0XUUvu7s0bKH9pNShNj X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: From: Arnd Bergmann While thinking about the changes to linux/mman.h in https://lore.kernel.org/all/20240923141943.133551-1-vincenzo.frascino@arm.com/ I ended up trying to clean up the duplicate definitions in order to better see what's in there, and then I found a clash between two MAP_* flags. Here is my current state, lightly tested. Please have a look at the last patch in particular. Arnd Arnd Bergmann (5): asm-generic: cosmetic updates to uapi/asm/mman.h asm-generic: move MAP_* flags from mman-common.h to mman.h asm-generic: use asm-generic/mman-common.h on mips and xtensa asm-generic: use asm-generic/mman-common.h on parisc and alpha [RFC] mm: Remove MAP_UNINITIALIZED support Documentation/admin-guide/mm/nommu-mmap.rst | 10 +-- arch/alpha/include/uapi/asm/mman.h | 93 ++++++------------- arch/mips/include/uapi/asm/mman.h | 95 +++----------------- arch/parisc/include/uapi/asm/mman.h | 79 ++++------------- arch/powerpc/include/uapi/asm/mman.h | 11 +++ arch/sh/configs/rsk7264_defconfig | 1 - arch/sparc/include/uapi/asm/mman.h | 12 +++ arch/xtensa/include/uapi/asm/mman.h | 98 +++------------------ fs/binfmt_elf_fdpic.c | 3 +- include/linux/mman.h | 4 - include/uapi/asm-generic/mman-common.h | 31 +++---- include/uapi/asm-generic/mman.h | 17 ++++ include/uapi/linux/mman.h | 5 ++ mm/Kconfig | 22 ----- mm/nommu.c | 4 +- 15 files changed, 125 insertions(+), 360 deletions(-)