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: 13812419 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 EAE5613E02E; Wed, 25 Sep 2024 21:06:42 +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=1727298403; cv=none; b=NRAkC7Q0cFUSMBnTaOOyIIledD9Iag0DlewbsJ2HStO5SYJ8YtctSc7JlEcXvsYLlrEncpOQaP9idUrd6uZcV38lHKHOWjvXYPNqT0Dty3WfU/XLddkyPf9IhZI6xf3drcr/iZK4ch3keNPOJjhK2wYDBOHoYIeyZOgkjCp/dfw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727298403; c=relaxed/simple; bh=ov11DCW5fbfEkeXbc3N4tknYqvWLCe6U3JzkfrFWpkU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sMlh/Df+xbZb7LfQOkzBeQayWqBDRBZNvJEiIHtV+JelViyEsdy5+fgtSp60qc6h1ONx468d+CC2762ukDUUb1Xw1AdJOIa54JXgJweANz2oDz6usOPUp672SXX5gz1YPEbgIGAVGl3MTuDJzCXjRj4SPs65KytjiPo+rnl22so= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Ty4V85so; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Ty4V85so" 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 Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)