From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 4357E2F83B5 for ; Tue, 25 Aug 2026 01:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787622833; cv=none; b=GFlUsCvNUdtIwZxD071jhl1ePyaR4A1e5TAjZtBDcR/BXwlF3PsksJaJ3ZYdlj3sD3ly/hCVrKjqr/5+xzd+vBvhhEgfcl0t+d2boDinn2lioc9maJ4K3w6oHeTA594lBOT125Ux2C8lK+oCoJuiR4XPkVLgTQhWsLNoULy+mEU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787622833; c=relaxed/simple; bh=5FG3oEGbnS7jFbNgJeTNvINJWctv9KrPd5q2CpxDnLI=; h=Date:To:From:Subject:Message-Id; b=j72LtSxs83mtGctITGg7UR5sg8XCXXsXMF42ZIc5JAmRwRJCenrPjeWJ5DP2/LLGOsXvip7sJNO19es3zIkJg0jDPL6oYMQxWwQJWfO9iHrrxp1xpNBD5rA2FamSJlLtDOOmnnjUKv7h+BAa51M/fgdjGjH8LBzahpvzUIpQ4Ss= 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=1KaCb69D; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="1KaCb69D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C92B1F000E9; Tue, 25 Aug 2026 01:53:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1787622832; bh=AePs3hRymeiwjCAGjLexlnCoDlw80AzAXg23vuzfxIk=; h=Date:To:From:Subject; b=1KaCb69Dzne97rIf0GW2PpW+eaDF8sZq3HmSQ4XYTBbeFRnx8QkxIgqV/RR7TT1Ap YAmi1pU/pSBshqGioK5Z8+NEwwrWQRebPgVdtihZWorzbrXf93YZdAyfRfaLgViOuY DwC/pnxFJhtiMLiIwuz37md/1/UOyP7GF2PQeQ2Y= Date: Mon, 24 Aug 2026 18:53:51 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org,urezki@gmail.com,surenb@google.com,shikemeng@huaweicloud.com,shakeel.butt@linux.dev,rppt@kernel.org,roman.gushchin@linux.dev,osalvador@suse.de,nphamcs@gmail.com,muchun.song@linux.dev,mhocko@kernel.org,liam@infradead.org,kasong@tencent.com,hannes@cmpxchg.org,david@kernel.org,chrisl@kernel.org,baoquan.he@linux.dev,baohua@kernel.org,ljs@kernel.org,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] mm-add-some-missing-includes-to-mm-local-headers.patch removed from -mm tree Message-Id: <20260825015352.1C92B1F000E9@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: mm: add some missing includes to mm-local headers has been removed from the -mm tree. Its filename was mm-add-some-missing-includes-to-mm-local-headers.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: "Lorenzo Stoakes (ARM)" Subject: mm: add some missing includes to mm-local headers Date: Tue, 04 Aug 2026 11:08:59 +0100 There are a number of internal headers local to mm/ which reference functions and data types without including the relevant headers. mm/vma.h is a special case that intentionally does not include additional headers, but the others are not. This breaks tooling like clangd (which is where I noticed this), though the build is OK due to the C files including the headers happening to include required dependencies. It's better to be explicit about dependencies anyway, so add the missing includes and fix clangd as a bonus. Link: https://lore.kernel.org/20260804-fix-some-local-headers-v1-1-a7beb173c116@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) Acked-by: Vlastimil Babka (SUSE) Acked-by: David Hildenbrand (Arm) Acked-by: Zi Yan Reviewed-by: Barry Song Reviewed-by: Baoquan He Cc: Chris Li Cc: Johannes Weiner Cc: Kairui Song Cc: Kemeng Shi Cc: Liam R. Howlett Cc: Michal Hocko Cc: Mike Rapoport Cc: Muchun Song Cc: Nhat Pham Cc: Oscar Salvador Cc: Roman Gushchin Cc: Shakeel Butt Cc: Suren Baghdasaryan Cc: "Uladzislau Rezki (Sony)" Signed-off-by: Andrew Morton --- mm/cma.h | 1 + mm/hugetlb_cma.h | 2 ++ mm/memcontrol-v1.h | 1 + mm/pgalloc-track.h | 3 +++ mm/shuffle.h | 2 ++ mm/swap.h | 1 + mm/vmalloc.h | 2 ++ 7 files changed, 12 insertions(+) --- a/mm/cma.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/cma.h @@ -2,6 +2,7 @@ #ifndef __MM_CMA_H__ #define __MM_CMA_H__ +#include #include #include --- a/mm/hugetlb_cma.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/hugetlb_cma.h @@ -2,6 +2,8 @@ #ifndef _LINUX_HUGETLB_CMA_H #define _LINUX_HUGETLB_CMA_H +#include + #ifdef CONFIG_CMA void hugetlb_cma_free_frozen_folio(struct folio *folio); struct folio *hugetlb_cma_alloc_frozen_folio(int order, gfp_t gfp_mask, --- a/mm/memcontrol-v1.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/memcontrol-v1.h @@ -4,6 +4,7 @@ #define __MM_MEMCONTROL_V1_H #include +#include /* Cgroup v1 and v2 common declarations */ --- a/mm/pgalloc-track.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/pgalloc-track.h @@ -2,6 +2,9 @@ #ifndef _LINUX_PGALLOC_TRACK_H #define _LINUX_PGALLOC_TRACK_H +#include +#include + #if defined(CONFIG_MMU) static inline p4d_t *p4d_alloc_track(struct mm_struct *mm, pgd_t *pgd, unsigned long address, --- a/mm/shuffle.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/shuffle.h @@ -2,7 +2,9 @@ // Copyright(c) 2018 Intel Corporation. All rights reserved. #ifndef _MM_SHUFFLE_H #define _MM_SHUFFLE_H + #include +#include #define SHUFFLE_ORDER MAX_PAGE_ORDER --- a/mm/swap.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/swap.h @@ -5,6 +5,7 @@ #include /* for atomic_long_t */ #include /* for PAGE_SHIFT */ #include /* for mem_cgroup_swappiness() */ +#include /* for MAX_SWAPFILES_SHIFT, struct swap_info_struct */ struct mempolicy; struct swap_iocb; --- a/mm/vmalloc.h~mm-add-some-missing-includes-to-mm-local-headers +++ a/mm/vmalloc.h @@ -5,6 +5,8 @@ #ifndef __MM_VMALLOC_H #define __MM_VMALLOC_H +#include + #ifdef CONFIG_MMU void __init vmalloc_init(void); int __must_check vmap_pages_range_noflush(unsigned long addr, unsigned long end, _ Patches currently in -mm which might be from ljs@kernel.org are