From mboxrd@z Thu Jan 1 00:00:00 1970 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 A27FFC7115C for ; Fri, 20 Jun 2025 18:31:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4758A6B00A2; Fri, 20 Jun 2025 14:31:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4471D6B00A3; Fri, 20 Jun 2025 14:31:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 35CC26B00A4; Fri, 20 Jun 2025 14:31:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 28B0E6B00A2 for ; Fri, 20 Jun 2025 14:31:17 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A6442C1144 for ; Fri, 20 Jun 2025 18:31:16 +0000 (UTC) X-FDA: 83576621352.04.3FC62D5 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by imf05.hostedemail.com (Postfix) with ESMTP id 62531100006 for ; Fri, 20 Jun 2025 18:31:14 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=FeUhZIrL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=UpOOBQAm; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=FeUhZIrL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=UpOOBQAm; spf=pass (imf05.hostedemail.com: domain of pfalcato@suse.de designates 195.135.223.131 as permitted sender) smtp.mailfrom=pfalcato@suse.de; dmarc=pass (policy=none) header.from=suse.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1750444274; 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-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=qmVG12TKwc2QVW0G8ian8AtN9mnqlZh4WCEqhc8pLTY=; b=2RJ8IcHzYtd6yC64+Z23c7+PWMv6RA/XSzoTW5h2DIoi07uUhqr6srlU4w1aoKo0fqm1o0 t/Q3iYhbas43z2kbpzL5CmTT9c0i2vvI52QKl53Wb0PcfPtNBFdj2zZdjoM4UStv4pLwU2 WfaB5beN8xrAGIhXQ+ZSkUZ5/9LYgdU= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=FeUhZIrL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=UpOOBQAm; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=FeUhZIrL; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=UpOOBQAm; spf=pass (imf05.hostedemail.com: domain of pfalcato@suse.de designates 195.135.223.131 as permitted sender) smtp.mailfrom=pfalcato@suse.de; dmarc=pass (policy=none) header.from=suse.de ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1750444274; a=rsa-sha256; cv=none; b=UVh6n91LxCuHWl74CNiv8McjHXlAc/FsfLiR4nzdfka2DAMro56dUF+lEmmRQFhXvbqIZF LgaTzHmMocltNTbuSV2x6GGCaD2unh4frxDQM34eE7oc/8eUgTfkZPhvD9gQ2iP5yeJShH xEmCy9wRKGQ5KbllD7dunTYJDoQrG+w= Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id A74B21F390; Fri, 20 Jun 2025 18:31:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1750444272; h=from:from:reply-to: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=qmVG12TKwc2QVW0G8ian8AtN9mnqlZh4WCEqhc8pLTY=; b=FeUhZIrLYm4/o8S8eNa53r7vMhoRAGFZLex3j4P4J6P9AZkL45f+IeQQIeeaiug+ZzRNFG hARXJHANDh34/IjopPPX5I/xdKap8H63G8FhHa/3gDH6eeKztqNporF0VCesY+e0CanTA5 51aYl4AdOBArxDE3UjQRoagrNSvGRVg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1750444272; h=from:from:reply-to: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=qmVG12TKwc2QVW0G8ian8AtN9mnqlZh4WCEqhc8pLTY=; b=UpOOBQAmFBCtjEINkxipWx6NT/FVaqv9UBV56UH2PdyRFK1+D8Q4qnl2CvuUL/i+Ynj3b+ 2x9kYcDlaPYsWpDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1750444272; h=from:from:reply-to: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=qmVG12TKwc2QVW0G8ian8AtN9mnqlZh4WCEqhc8pLTY=; b=FeUhZIrLYm4/o8S8eNa53r7vMhoRAGFZLex3j4P4J6P9AZkL45f+IeQQIeeaiug+ZzRNFG hARXJHANDh34/IjopPPX5I/xdKap8H63G8FhHa/3gDH6eeKztqNporF0VCesY+e0CanTA5 51aYl4AdOBArxDE3UjQRoagrNSvGRVg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1750444272; h=from:from:reply-to: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=qmVG12TKwc2QVW0G8ian8AtN9mnqlZh4WCEqhc8pLTY=; b=UpOOBQAmFBCtjEINkxipWx6NT/FVaqv9UBV56UH2PdyRFK1+D8Q4qnl2CvuUL/i+Ynj3b+ 2x9kYcDlaPYsWpDw== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 1B93313736; Fri, 20 Jun 2025 18:31:09 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id c8qtA+2oVWgNEwAAD6G6ig (envelope-from ); Fri, 20 Jun 2025 18:31:09 +0000 Date: Fri, 20 Jun 2025 19:31:07 +0100 From: Pedro Falcato To: Lorenzo Stoakes Cc: Andrew Morton , Russell King , Catalin Marinas , Will Deacon , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "David S . Miller" , Andreas Larsson , Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , Andy Lutomirski , Peter Zijlstra , Alexander Viro , Christian Brauner , Jan Kara , Kees Cook , Peter Xu , David Hildenbrand , Zi Yan , Baolin Wang , "Liam R . Howlett" , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Xu Xin , Chengming Zhou , Hugh Dickins , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Rik van Riel , Harry Yoo , Dan Williams , Matthew Wilcox , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jason Gunthorpe , John Hubbard , Muchun Song , Oscar Salvador , Jann Horn , Johannes Weiner , Qi Zheng , Shakeel Butt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org, sparclinux@vger.kernel.org, linux-sgx@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, nvdimm@lists.linux.dev, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mm: change vm_get_page_prot() to accept vm_flags_t argument Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 62531100006 X-Stat-Signature: b8ioaupx83hy7w1mg7hgth76cnsd73uh X-Rspam-User: X-Rspamd-Server: rspam04 X-HE-Tag: 1750444274-650303 X-HE-Meta: U2FsdGVkX18XVAw2SwAXQacuSoeZrEfXgs+8lAZxyP/RZd+gWwLqR6C5WuA9ARaujwEuLX1BF+Nb/VE4atRO9X/fU5pN/nQW7zAmb6OAxvYxPZKwMphNgKmUSwiRq9gTt+Cx3EhlitwG/R1VYBzMt10F8AFtQvTmupHGRJeRpuSMWQnzbo/xbdOx1ol5MeKi4D6cN5HigPHttohNtqCdIZeQNxN+GAPVUpM9YBFN8pIAQHK+zyKGI6e5/SgtzxtDa/m/UeFKl7CyXQ+h3wiKhR+UQG50FJiuY2+CSNEZWCPTuG5R/BU1NnjA08vzNh8+zpGjJ0v/IRW6U05KDzNy0/hRHnkN1R9PvAJGBbTErPzOJKwd6BsTJMJoLOqiy53iL8WRdPJMNNAfX/sqqAjKxEI8dv8+iy2/Em16jXwrCHTAEsNSTMU2xZ09ofuuwNm5EkJ1MH1x7XRywZpGPIUAH1WyAxZ0k3tNKveqgRIJzsjcPAsor2e6YXbqkokBZpGHM8evBJ3U16PGmcBYKjs4asX7imDN/K17AEFcFU/SmiKPmj1vDdivot0KlYdHin8rHqDY32YgaFEpg3UOpKYtKiKRUsSsV1+uUi4HAt1XBallqR4g8B4gfK46jfxN+JlrZZwaBIBz+/Lh0xe2cOth+iMg59BtTzSJ8g7UAmQXhR5qUT6tNdmkbrEZV1MdRVO5dC3RL1hFedHWLcycUf9vGx+ZLTkShMwg3q2jZRjq1Icqy+MBj2dWxBAsXugg24JIs98idX5XOioF8RRJEuuMlcBY2YsUBQOPAh1n0xJTM//1mH0uRTo6LcFsdiDB1Uwj3llfCaFJB6Opk1gm53+mflk1aeOjmpyhGHU2mcMEYs1XZ9wUCRZkgReiYxZDAmz5Oy75NCNv1FxRb9gILjZGfKv9HKYIlPIZlX/Zs0aLfm8ThRJfIO9oncXzrZTR8oI16eNrMrHKuuIbfrpV4hx yv9vJM8L 2lT+O18iKGBe4f5fdorIWLFLYPvYNo8TyRlLm5E7UZVgZmqiYCAM6QElVSKlH288Pc70THAUaMlAC6s4qPmmmBq5Hcwq/mf26y9YNufm+D+MXTwiOpP90DvqN2KgTQGCW5jJLdIQ0MzCp8Pko8VOJe43Ml7UmG0OC0tyC9uuRYffHgOMxh8jVDAt4fyyEuXHPI83xkbzlHhywGe3lSknBDxtDkK4F/4fQ/s31f0mbKBeEgkP9mWsBxgrjJdvwm73B+nPcQvPGJM/fE6O01+262sH6m0oCw9ottg/LegACGB/M2uyG7N5TMf4YJsekfmK04RzHfd1md5ZYuxAIH0kE6yaY4pxw9+KzJj2Y/KOcjqHdyZ1IJFuZJPWoMw== 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: On Wed, Jun 18, 2025 at 08:42:52PM +0100, Lorenzo Stoakes wrote: > We abstract the type of the VMA flags to vm_flags_t, however in may places > it is simply assumed this is unsigned long, which is simply incorrect. > > At the moment this is simply an incongruity, however in future we plan to > change this type and therefore this change is a critical requirement for > doing so. > > Overall, this patch does not introduce any functional change. > > Signed-off-by: Lorenzo Stoakes Nice little cleanup, thanks! Reviewed-by: Pedro Falcato -- Pedro