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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92E3C103E191 for ; Wed, 18 Mar 2026 14:41:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/QK6c/aUEEnxhthj7dBWNr8RKn0vjF/z8kwLkGiTyJk=; b=1X/dr+CjCS2fPo HePESj3S3N/vK0llatC46pdxAA0EWcj5BD8No5t7TLcZNlHQiiawOBFtovQblublTcdQ8JzqR8G1s 7FmSFpjVFqHTC4pHERWMp3RE4YdPdPRrkq69p83kt7ij4Vte4+XnM2lJt1oHROtjrBsCFExhT38Sm gd2UhiVNsnDeQ5DAXbuoP6an0DYm31+6fhsCVZ6z+3f87KIfDvn3yNz0MOKCpORJNYJzVyqO2xEtw h/2J+WUKMJSAZK2DlT68mJ5bX105Usjhom1+1cwMHHMk2oqG+gzurNztCnFmkAjpfwaIRkb3NFV+3 b0q6ks2rePnJvUJrSgag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2s51-00000008bxx-0hZA; Wed, 18 Mar 2026 14:41:03 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w2s4x-00000008bwE-2IGD; Wed, 18 Mar 2026 14:41:02 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 773FE432F4; Wed, 18 Mar 2026 14:40:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00F29C2BC87; Wed, 18 Mar 2026 14:40:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773844858; bh=QPe6wXvdAXZ1WsVrzW/I1Ea8rZgbDN6tCubJm34Z2So=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=ngbdPPAxWjFSAiZvMouaeaCI+yNsZe/5Ks8XfwK23bbuJ+JwMl7yKx8wLk1AN3mNT TMgJMbhcekeQl6cZDmfGyt8APhVYsofGCMvUz7w5d4VSUqCEDHmA0FWwHmr908obc6 Ca6I5aFuRQUI1yi4z3tpGvtErfL8rr5nKPdU3xQY3LcDhPRgWknRM3aO06irdxNWBm 2TlgtJ0ipwGbJWHORKvyo/BwbM/qZgR2EjBk9w3ApuIqc+XrUbVpU21pCoE11NYSNq L1oljmENCVJ0s9YwPt8FVfCFDTEwjEsGgigo721LFalxDK0WN06IRwXdh82jFvxUSk UiZTvvvmHDYJQ== Message-ID: <4620167c-bcfe-414b-85f6-a5d28563b9af@kernel.org> Date: Wed, 18 Mar 2026 15:40:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 01/23] mm/vma: add vma_flags_empty(), vma_flags_and(), vma_flags_diff_pair() Content-Language: en-US To: "Lorenzo Stoakes (Oracle)" , Andrew Morton Cc: David Hildenbrand , "Liam R . Howlett" , Jann Horn , Pedro Falcato , Mike Rapoport , Suren Baghdasaryan , Kees Cook , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Brian Cain , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Dinh Nguyen , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Richard Weinberger , Anton Ivanov , Johannes Berg , Alexander Viro , Christian Brauner , Jan Kara , Xu Xin , Chengming Zhou , Michal Hocko , Paul Moore , Stephen Smalley , Ondrej Mosnacek , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-um@lists.infradead.org, linux-fsdevel@vger.kernel.org, selinux@vger.kernel.org References: From: "Vlastimil Babka (SUSE)" In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260318_074059_636507_9218F87E X-CRM114-Status: GOOD ( 15.69 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On 3/16/26 14:07, Lorenzo Stoakes (Oracle) wrote: > Firstly, add the ability to determine if VMA flags are empty, that is no > flags are set in a vma_flags_t value. > > Next, add the ability to obtain the equivalent of the bitwise and of two > vma_flags_t values, via vma_flags_and(). Nit: "two values" is vma_flags_and_mask(), while vma_flags_and() takes one value and list of flags, no? > Next, add the ability to obtain the difference between two sets of VMA > flags, that is the equivalent to the exclusive bitwise OR of the two sets > of flags, via vma_flags_diff_pair(). > > vma_flags_xxx_mask() typically operates on a pointer to a vma_flags_t > value, which is assumed to be an lvalue of some kind (such as a field in a > struct or a stack variable) and an rvalue of some kind (typically a > constant set of VMA flags obtained e.g. via mk_vma_flags() or equivalent). > > However vma_flags_diff_pair() is intended to operate on two lvalues, so use > the _pair() suffix to make this clear. > > Finally, update VMA userland tests to add these helpers. > > We also port bitmap_xor() and __bitmap_xor() to the tools/ headers and > source to allow the tests to work with vma_flags_diff_pair(). > > Signed-off-by: Lorenzo Stoakes (Oracle) Acked-by: Vlastimil Babka (SUSE) _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc