From mboxrd@z Thu Jan 1 00:00:00 1970 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 C89C635DA46; Wed, 25 Mar 2026 16:09:51 +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=1774454991; cv=none; b=SlBPBkF9djCT/6K2pLu2WY+SfuTEKbymR5wENWIRLkHCsJUb+T8Kqo23JT9SGY7J/C4VH46PgbXOzYmpZ9Sm8sbPbuK2TKOExEeZOcgp5133kPhkc3p4n5e8a5dTmMlUqPCFMZ0oxwjGO91cPhaUFnPToqurEatTm+haD3btawM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774454991; c=relaxed/simple; bh=CpwACGnKbmh8bnL86Y86WsKuJUxg5abhUqwLWbX/48s=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=ZMRlEBEEP3Dr9JHGc2/npb4LH/invUrAbiCm+mXFlI2PKuBx2JlwWHaJS/pHKezbSdv7AZvYT08LrxCymTXSVZImEDl+RaeIcPQRSOPusLI7WxNKGb9kI1nr2YdhXSopokB+HGL8FOxBHeZCK+xVbsHGt1Hu3rFZIRN+fTrY5lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=yu2nTqTr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="yu2nTqTr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECBA3C4CEF7; Wed, 25 Mar 2026 16:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1774454991; bh=CpwACGnKbmh8bnL86Y86WsKuJUxg5abhUqwLWbX/48s=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=yu2nTqTr+4Ixa0aIK77JmVd/k21R9kBHnAAnN62dMDBskTZPMj6ItigXaNiPWYaDN owILDdRj9CR94Ne+mlXhFs0xeZET+j+BL7Wc2PyC7Y5JlWmPDlJwczr1b4LsYZy2nY cP83/jsCsjO9VMlXX+z1yugQE+WA+BNaE8wcuZeA= Date: Wed, 25 Mar 2026 09:09:49 -0700 From: Andrew Morton To: "Lorenzo Stoakes (Oracle)" Cc: Pedro Falcato , Arnd Bergmann , Greg Kroah-Hartman , Dan Williams , Vishal Verma , Dave Jiang , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Sandeep Dhavale , Hongbo Li , Chunhai Guo , Muchun Song , Oscar Salvador , David Hildenbrand , Konstantin Komarov , Tony Luck , Reinette Chatre , Dave Martin , James Morse , Babu Moger , Damien Le Moal , Naohiro Aota , Johannes Thumshirn , Matthew Wilcox , Jan Kara , "Liam R . Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Hugh Dickins , Baolin Wang , Jann Horn , Jason Gunthorpe , linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-cxl@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-mm@kvack.org, ntfs3@lists.linux.dev, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 3/6] mm: always inline __mk_vma_flags() and invoked functions Message-Id: <20260325090949.795e06f48ec455053db9ae89@linux-foundation.org> In-Reply-To: References: <241f49c52074d436edbb9c6a6662a8dc142a8f43.1772704455.git.ljs@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 25 Mar 2026 14:58:14 +0000 "Lorenzo Stoakes (Oracle)" wrote: > On Wed, Mar 25, 2026 at 02:54:50PM +0000, Pedro Falcato wrote: > > On Thu, Mar 05, 2026 at 10:50:16AM +0000, Lorenzo Stoakes (Oracle) wrote: > > > Be explicit about __mk_vma_flags() (which is used by the mk_vma_flags() > > > macro) always being inline, as we rely on the compiler converting this > > > function into meaningful. > > meaningful what? > > 'into the equivalent compile-time constant code' probably fine. > > Andrew - could you update that if there's time? np : Be explicit about __mk_vma_flags() (which is used by the mk_vma_flags() : macro) always being inline, as we rely on the compiler converting this : function into the equivalent compile-time constant code. what does "compile-time constant code" actually mean? That constants within the code are evaluated at compile-time?