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 E20821FDD for ; Sun, 14 Sep 2025 00:07:18 +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=1757808440; cv=none; b=dtnpOzDTMO5kBIdMMLQA9PwXy9TZjFHqvFBTIEKncSR75YuJY5s33v2BjT4Ld1yxjn/P65R0kcOpKa9SwYh7UkvFlDapx2yDV2/Mat2GROo4d0UJ2Cw0er2b7IG1En36gozlqQYQrie8xtpJdFejRFNOI5uR4XcWAMt8V37AVLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757808440; c=relaxed/simple; bh=0VT4q7Y5c02FeZvG+AUQ571sjhYCDpBudWzyNt3mfOI=; h=Date:To:From:Subject:Message-Id; b=ERasv3FJSurOEGZ9GZCOVW/PUjPpOo48iIiq5EwCpVFm8qMMSAnflEAhv4CqWXRqRIs4LUwBsb59undYBKQZ2z1OptsI0q8k7934xhZeydFVo4dBowNlNTeHFhEtuyeKZ/OLtwHurTMnmkU/hBQ1w92baZTSwuz9fx2FZcvMvAU= 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=nkFUgWFg; 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="nkFUgWFg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D563C4CEEB; Sun, 14 Sep 2025 00:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1757808438; bh=0VT4q7Y5c02FeZvG+AUQ571sjhYCDpBudWzyNt3mfOI=; h=Date:To:From:Subject:From; b=nkFUgWFgisyNle1ZBjvuvmp2A522bsp2RtQuSG8OrZ2vmsrZh1bpmyQASPutIX5qy lYyLeEwsCcAsE1cyak93Ram6vqoM+Jvk9QojGfmnEJwcT4ZYLEGotNZtdEnDzI/Hrm /mArzdFWzLRPHx9b0j1skK3fJDwH3lwvzFNWNwRw= Date: Sat, 13 Sep 2025 17:07:17 -0700 To: mm-commits@vger.kernel.org,balbirs@nvidia.com,akpm@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton Subject: + include-linux-pgtableh-convert-arch_enter_lazy_mmu_mode-and-friends-to-static-inlines.patch added to mm-new branch Message-Id: <20250914000718.5D563C4CEEB@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: include/linux/pgtable.h: convert arch_enter_lazy_mmu_mode() and friends to static inlines has been added to the -mm mm-new branch. Its filename is include-linux-pgtableh-convert-arch_enter_lazy_mmu_mode-and-friends-to-static-inlines.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/include-linux-pgtableh-convert-arch_enter_lazy_mmu_mode-and-friends-to-static-inlines.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Andrew Morton Subject: include/linux/pgtable.h: convert arch_enter_lazy_mmu_mode() and friends to static inlines Date: Sat Sep 13 05:03:39 PM PDT 2025 For all the usual reasons, plus a new one. Calling (void)arch_enter_lazy_mmu_mode(); deservedly blows up. Cc: Balbir Singh Signed-off-by: Andrew Morton --- include/linux/pgtable.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/include/linux/pgtable.h~include-linux-pgtableh-convert-arch_enter_lazy_mmu_mode-and-friends-to-static-inlines +++ a/include/linux/pgtable.h @@ -232,9 +232,9 @@ static inline int pmd_dirty(pmd_t pmd) * and the mode cannot be used in interrupt context. */ #ifndef __HAVE_ARCH_ENTER_LAZY_MMU_MODE -#define arch_enter_lazy_mmu_mode() do {} while (0) -#define arch_leave_lazy_mmu_mode() do {} while (0) -#define arch_flush_lazy_mmu_mode() do {} while (0) +static inline void arch_enter_lazy_mmu_mode(void) {} +static inline void arch_leave_lazy_mmu_mode(void) {} +static inline void arch_flush_lazy_mmu_mode(void) {} #endif #ifndef pte_batch_hint _ Patches currently in -mm which might be from akpm@linux-foundation.org are kasan-fix-warnings-caused-by-use-of-arch_enter_lazy_mmu_mode-fix.patch memfd-move-mfd_all_flags-definition-to-memfdh.patch mm-constify-highmem-related-functions-for-improved-const-correctness-fix.patch mm-filemap-align-last_index-to-folio-size-fix-fix.patch mm-re-enable-kswapd-when-memory-pressure-subsides-or-demotion-is-toggled-fix.patch include-linux-pgtableh-convert-arch_enter_lazy_mmu_mode-and-friends-to-static-inlines.patch panic-remove-redundant-panic-cpu-backtrace-fix.patch crash-add-kunit-tests-for-crash_exclude_mem_range-fix.patch